You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PathLinksPanel.java 733B

12345678910111213141516171819202122
  1. package com.gitblit.wicket.panels;
  2. import org.apache.wicket.PageParameters;
  3. import org.apache.wicket.markup.html.basic.Label;
  4. import org.apache.wicket.markup.html.panel.Panel;
  5. import com.gitblit.wicket.LinkPanel;
  6. import com.gitblit.wicket.models.PathModel;
  7. import com.gitblit.wicket.pages.BlobPage;
  8. public class PathLinksPanel extends Panel {
  9. private static final long serialVersionUID = 1L;
  10. public PathLinksPanel(String id, String repositoryName, PathModel path) {
  11. super(id);
  12. add(new Label("diff", "diff"));
  13. add(new LinkPanel("blob", null, "blob", BlobPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
  14. add(new Label("history", "history"));
  15. }
  16. }