From: James Moger Date: Wed, 3 Oct 2012 21:12:14 +0000 (-0400) Subject: Show fork indicator on the repositories page X-Git-Tag: v1.2.0~191 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf265a320d82c67772a9ce6e75f08e0fdfb0c899;p=gitblit.git Show fork indicator on the repositories page --- diff --git a/src/com/gitblit/wicket/GitBlitWebApp.properties b/src/com/gitblit/wicket/GitBlitWebApp.properties index 0478448b..16606427 100644 --- a/src/com/gitblit/wicket/GitBlitWebApp.properties +++ b/src/com/gitblit/wicket/GitBlitWebApp.properties @@ -336,4 +336,5 @@ gb.forksProhibitedWarning = this repository forbids forks gb.noForks = {0} has no forks gb.forkNotAuthorized = sorry, you are not authorized to fork {0} gb.forkInProgress = fork in progress -gb.preparingFork = preparing your fork... \ No newline at end of file +gb.preparingFork = preparing your fork... +gb.isFork = is fork \ No newline at end of file diff --git a/src/com/gitblit/wicket/panels/RepositoriesPanel.html b/src/com/gitblit/wicket/panels/RepositoriesPanel.html index 6c19fc51..ddf1656e 100644 --- a/src/com/gitblit/wicket/panels/RepositoriesPanel.html +++ b/src/com/gitblit/wicket/panels/RepositoriesPanel.html @@ -79,7 +79,7 @@ [repository name] [repository description] [repository owner] - + [last change] [repository size] diff --git a/src/com/gitblit/wicket/panels/RepositoriesPanel.java b/src/com/gitblit/wicket/panels/RepositoriesPanel.java index 3a62d8fd..02ebf4f4 100644 --- a/src/com/gitblit/wicket/panels/RepositoriesPanel.java +++ b/src/com/gitblit/wicket/panels/RepositoriesPanel.java @@ -224,6 +224,13 @@ public class RepositoriesPanel extends BasePanel { .setEscapeModelStrings(false)); } + if (entry.isFork()) { + row.add(WicketUtils.newImage("forkIcon", "commit_divide_16x16.png", + getString("gb.isFork"))); + } else { + row.add(WicketUtils.newClearPixel("forkIcon").setVisible(false)); + } + if (entry.useTickets) { row.add(WicketUtils.newImage("ticketsIcon", "bug_16x16.png", getString("gb.tickets")));