summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/panels/PathLinksPanel.java
blob: fa8bdca672612b8a94128f6385d3fbc6228ce3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 com.gitblit.wicket.LinkPanel;
import com.gitblit.wicket.models.PathModel;
import com.gitblit.wicket.pages.BlobPage;


public class PathLinksPanel extends Panel {

	private static final long serialVersionUID = 1L;

	public PathLinksPanel(String id, String repositoryName, PathModel path) {
		super(id);
		add(new Label("diff", "diff"));
		add(new LinkPanel("blob", null, "blob", BlobPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
		add(new Label("history", "history"));
	}
}