From 1e47ab18a003df93e749211271554981e3af7689 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 07 Apr 2011 17:59:56 -0400 Subject: [PATCH] Localized all strings for translation. Removed old resources. --- src/com/gitblit/wicket/panels/TreeBlobLinksPanel.java | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/com/gitblit/wicket/panels/TreeBlobLinksPanel.java b/src/com/gitblit/wicket/panels/TreeBlobLinksPanel.java index 9c7eb58..c8277ae 100644 --- a/src/com/gitblit/wicket/panels/TreeBlobLinksPanel.java +++ b/src/com/gitblit/wicket/panels/TreeBlobLinksPanel.java @@ -1,22 +1,20 @@ 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.BlobPage; -public class TreeBlobLinksPanel extends Panel { +public class TreeBlobLinksPanel extends BasePanel { private static final long serialVersionUID = 1L; public TreeBlobLinksPanel(String id, String repositoryName, PathModel path) { super(id); - add(new LinkPanel("link", null, "view", BlobPage.class, new PageParameters("p=" + repositoryName + ",h=" + path.commitId + ",f=" + path.path))); - add(new Label("raw", "raw")); - add(new Label("history", "history")); + 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)); } } \ No newline at end of file -- Gitblit v1.9.1