diff options
author | James Moger <james.moger@gitblit.com> | 2011-04-16 16:47:14 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-04-16 16:47:14 -0400 |
commit | 01bd346efe98af0f05f23f897c0819d2df8d856c (patch) | |
tree | ef6e04f7afc72d2211758239b1fb0eb71d54058c /src | |
parent | f602a2f552e1389ee465307723b492b1af378fd5 (diff) | |
download | gitblit-01bd346efe98af0f05f23f897c0819d2df8d856c.tar.gz gitblit-01bd346efe98af0f05f23f897c0819d2df8d856c.zip |
Replaced three history placeholder labels with real links.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/wicket/pages/BlobDiffPage.html | 2 | ||||
-rw-r--r-- | src/com/gitblit/wicket/pages/BlobDiffPage.java | 2 | ||||
-rw-r--r-- | src/com/gitblit/wicket/pages/BlobPage.html | 2 | ||||
-rw-r--r-- | src/com/gitblit/wicket/pages/BlobPage.java | 2 | ||||
-rw-r--r-- | src/com/gitblit/wicket/pages/TreePage.html | 2 | ||||
-rw-r--r-- | src/com/gitblit/wicket/pages/TreePage.java | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/com/gitblit/wicket/pages/BlobDiffPage.html b/src/com/gitblit/wicket/pages/BlobDiffPage.html index 2267b37d..a20b24ca 100644 --- a/src/com/gitblit/wicket/pages/BlobDiffPage.html +++ b/src/com/gitblit/wicket/pages/BlobDiffPage.html @@ -12,7 +12,7 @@ <!-- blob nav links -->
<div class="page_nav2">
- <span wicket:id="blameLink">[blame link]</span> | <span wicket:id="historyLink">[history link]</span> | <a wicket:id="patchLink"><wicket:message key="gb.patch"></wicket:message></a> | <a wicket:id="commitLink"><wicket:message key="gb.commit"></wicket:message></a> | <a wicket:id="commitDiffLink"><wicket:message key="gb.commitdiff"></wicket:message></a>
+ <span wicket:id="blameLink">[blame link]</span> | <a wicket:id="historyLink"><wicket:message key="gb.history"></wicket:message></a> | <a wicket:id="patchLink"><wicket:message key="gb.patch"></wicket:message></a> | <a wicket:id="commitLink"><wicket:message key="gb.commit"></wicket:message></a> | <a wicket:id="commitDiffLink"><wicket:message key="gb.commitdiff"></wicket:message></a>
</div>
<!-- shortlog header -->
diff --git a/src/com/gitblit/wicket/pages/BlobDiffPage.java b/src/com/gitblit/wicket/pages/BlobDiffPage.java index 21127bc4..de49b3cf 100644 --- a/src/com/gitblit/wicket/pages/BlobDiffPage.java +++ b/src/com/gitblit/wicket/pages/BlobDiffPage.java @@ -28,7 +28,7 @@ public class BlobDiffPage extends RepositoryPage { // diff page links
add(new Label("blameLink", getString("gb.blame")));
- add(new Label("historyLink", getString("gb.history")));
+ add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));
diff --git a/src/com/gitblit/wicket/pages/BlobPage.html b/src/com/gitblit/wicket/pages/BlobPage.html index 393470a0..2ca76e3b 100644 --- a/src/com/gitblit/wicket/pages/BlobPage.html +++ b/src/com/gitblit/wicket/pages/BlobPage.html @@ -21,7 +21,7 @@ <!-- blob nav links -->
<div class="page_nav2">
- <span wicket:id="blameLink">[blame link]</span> | <span wicket:id="historyLink">[history link]</span> | <a wicket:id="rawLink"><wicket:message key="gb.raw"></wicket:message></a> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>
+ <span wicket:id="blameLink">[blame link]</span> | <a wicket:id="historyLink"><wicket:message key="gb.history"></wicket:message></a> | <a wicket:id="rawLink"><wicket:message key="gb.raw"></wicket:message></a> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>
</div>
<!-- shortlog header -->
diff --git a/src/com/gitblit/wicket/pages/BlobPage.java b/src/com/gitblit/wicket/pages/BlobPage.java index 51eadf33..e535199a 100644 --- a/src/com/gitblit/wicket/pages/BlobPage.java +++ b/src/com/gitblit/wicket/pages/BlobPage.java @@ -31,7 +31,7 @@ public class BlobPage extends RepositoryPage { // blob page links
add(new Label("blameLink", getString("gb.blame")));
- add(new Label("historyLink", getString("gb.history")));
+ add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
add(new BookmarkablePageLink<Void>("rawLink", RawPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
add(new BookmarkablePageLink<Void>("headLink", BlobPage.class, WicketUtils.newPathParameter(repositoryName, Constants.HEAD, blobPath)));
diff --git a/src/com/gitblit/wicket/pages/TreePage.html b/src/com/gitblit/wicket/pages/TreePage.html index add03ebd..f72792fc 100644 --- a/src/com/gitblit/wicket/pages/TreePage.html +++ b/src/com/gitblit/wicket/pages/TreePage.html @@ -12,7 +12,7 @@ <!-- blob nav links -->
<div class="page_nav2">
- <span wicket:id="historyLink">[history link]</span> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>
+ <a wicket:id="historyLink"><wicket:message key="gb.history"></wicket:message></a> | <a wicket:id="headLink"><wicket:message key="gb.head"></wicket:message></a>
</div>
<!-- shortlog header -->
diff --git a/src/com/gitblit/wicket/pages/TreePage.java b/src/com/gitblit/wicket/pages/TreePage.java index 2ab164da..2177761e 100644 --- a/src/com/gitblit/wicket/pages/TreePage.java +++ b/src/com/gitblit/wicket/pages/TreePage.java @@ -33,7 +33,7 @@ public class TreePage extends RepositoryPage { List<PathModel> paths = JGitUtils.getFilesInPath(r, path, commit);
// tree page links
- add(new Label("historyLink", getString("gb.history")));
+ add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, commit.getName(), path)));
add(new BookmarkablePageLink<Void>("headLink", TreePage.class, WicketUtils.newPathParameter(repositoryName, Constants.HEAD, path)));
add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));
|