James Moger
2011-04-07 1e47ab18a003df93e749211271554981e3af7689
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.gitblit.wicket.panels;
 
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
 
import com.gitblit.wicket.models.PathModel;
import com.gitblit.wicket.pages.BlobPage;
 
 
public class TreeBlobLinksPanel extends BasePanel {
 
    private static final long serialVersionUID = 1L;
 
    public TreeBlobLinksPanel(String id, String repositoryName, PathModel path) {
        super(id);
        add(new BookmarkablePageLink<Void>("view", BlobPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path)));
        add(new BookmarkablePageLink<Void>("raw", BlobPage.class, new PageParameters()).setEnabled(false));
        add(new BookmarkablePageLink<Void>("history", BlobPage.class, new PageParameters()).setEnabled(false));
    }
}