James Moger
2011-04-07 1e47ab18a003df93e749211271554981e3af7689
src/com/gitblit/wicket/panels/TreeLinksPanel.java
@@ -1,21 +1,19 @@
package com.gitblit.wicket.panels;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import com.gitblit.wicket.LinkPanel;
import com.gitblit.wicket.models.PathModel;
import com.gitblit.wicket.pages.TreePage;
public class TreeLinksPanel extends Panel {
public class TreeLinksPanel extends BasePanel {
   private static final long serialVersionUID = 1L;
   public TreeLinksPanel(String id, String repositoryName, PathModel path) {
      super(id);
      add(new LinkPanel("link", null, "tree", TreePage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
      add(new Label("history", "history"));
      add(new BookmarkablePageLink<Void>("tree", TreePage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
      add(new BookmarkablePageLink<Void>("history", TreePage.class, new PageParameters()).setEnabled(false));
   }
}