| | |
| | | import com.gitblit.wicket.LinkPanel;
|
| | | import com.gitblit.wicket.models.PathModel;
|
| | | import com.gitblit.wicket.pages.BlobPage;
|
| | | import com.gitblit.wicket.pages.DiffPage;
|
| | |
|
| | |
|
| | | public class PathLinksPanel extends Panel {
|
| | |
| | |
|
| | | public PathLinksPanel(String id, String repositoryName, PathModel path) {
|
| | | super(id);
|
| | | add(new Label("diff", "diff"));
|
| | | add(new LinkPanel("diff", null, "diff", DiffPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
|
| | | add(new LinkPanel("blob", null, "view", BlobPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
|
| | | add(new Label("history", "history"));
|
| | | }
|