James Moger
2012-10-03 cf265a320d82c67772a9ce6e75f08e0fdfb0c899
Show fork indicator on the repositories page
3 files modified
12 ■■■■ changed files
src/com/gitblit/wicket/GitBlitWebApp.properties 3 ●●●● patch | view | raw | blame | history
src/com/gitblit/wicket/panels/RepositoriesPanel.html 2 ●●● patch | view | raw | blame | history
src/com/gitblit/wicket/panels/RepositoriesPanel.java 7 ●●●●● patch | view | raw | blame | history
src/com/gitblit/wicket/GitBlitWebApp.properties
@@ -336,4 +336,5 @@
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...
gb.preparingFork = preparing your fork...
gb.isFork = is fork
src/com/gitblit/wicket/panels/RepositoriesPanel.html
@@ -79,7 +79,7 @@
        <td class="left" style="padding-left:3px;" ><b><span class="repositorySwatch" wicket:id="repositorySwatch"></span></b> <span style="padding-left:3px;" wicket:id="repositoryName">[repository name]</span></td>
        <td class="hidden-phone"><span class="list" wicket:id="repositoryDescription">[repository description]</span></td>
        <td class="hidden-tablet hidden-phone author"><span wicket:id="repositoryOwner">[repository owner]</span></td>
        <td class="hidden-phone" style="text-align: right;padding-right:10px;"><img class="inlineIcon" wicket:id="ticketsIcon" /><img class="inlineIcon" wicket:id="docsIcon" /><img class="inlineIcon" wicket:id="frozenIcon" /><img class="inlineIcon" wicket:id="federatedIcon" /><img class="inlineIcon" wicket:id="accessRestrictionIcon" /></td>
        <td class="hidden-phone" style="text-align: right;padding-right:10px;"><img class="inlineIcon" wicket:id="forkIcon" /><img class="inlineIcon" wicket:id="ticketsIcon" /><img class="inlineIcon" wicket:id="docsIcon" /><img class="inlineIcon" wicket:id="frozenIcon" /><img class="inlineIcon" wicket:id="federatedIcon" /><img class="inlineIcon" wicket:id="accessRestrictionIcon" /></td>
        <td><span wicket:id="repositoryLastChange">[last change]</span></td>
        <td class="hidden-phone" style="text-align: right;padding-right:15px;"><span style="font-size:0.8em;" wicket:id="repositorySize">[repository size]</span></td>
        <td class="rightAlign">
src/com/gitblit/wicket/panels/RepositoriesPanel.java
@@ -224,6 +224,13 @@
                            .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")));