]> source.dussan.org Git - gitblit.git/commitdiff
Eliminated redundant "view" links (issue 168)
authorJames Moger <james.moger@gitblit.com>
Tue, 27 Nov 2012 23:00:56 +0000 (18:00 -0500)
committerJames Moger <james.moger@gitblit.com>
Tue, 27 Nov 2012 23:00:56 +0000 (18:00 -0500)
src/com/gitblit/wicket/panels/HistoryPanel.html
src/com/gitblit/wicket/panels/HistoryPanel.java
src/com/gitblit/wicket/panels/LogPanel.html
src/com/gitblit/wicket/panels/LogPanel.java

index 2fe6f050e62fe165093e9618e6883c39bda8ceb9..3da731ff3ead803bf253c058bfadf2f13d6dad81 100644 (file)
@@ -19,8 +19,8 @@
                        <td class="date"><span wicket:id="commitDate">[commit date]</span></td>\r
                        <td class="icon"><img wicket:id="commitIcon" /></td>\r
                        <td class="hidden-phone author"><span wicket:id="commitAuthor">[commit author]</span></td>\r
-                       <td class="hidden-phone hidden-tablet"><span wicket:id="commitHash">[commit hash]</span></td>\r
                        <td class="message"><table class="nestedTable"><tr><td><span style="vertical-align:middle;" wicket:id="commitShortMessage">[commit short message]</span></td><td><div style="text-align:right;" wicket:id="commitRefs">[commit refs]</div></td></tr></table></td>\r
+                       <td class="hidden-phone hidden-tablet"><span wicket:id="commitHash">[commit hash]</span></td>\r
                        <td class="hidden-phone rightAlign">\r
                                <span wicket:id="historyLinks">[history links]</span>\r
                                </td>\r
        <!--  tree links -->\r
        <wicket:fragment wicket:id="treeLinks">\r
                <span class="link">\r
-                       <a wicket:id="tree"><wicket:message key="gb.tree"></wicket:message></a> | <a wicket:id="commitdiff"><wicket:message key="gb.commitdiff"></wicket:message></a>\r
+                       <a wicket:id="commitdiff"><wicket:message key="gb.commitdiff"></wicket:message></a>\r
                </span>\r
        </wicket:fragment>\r
        \r
        <!-- blob links -->\r
        <wicket:fragment wicket:id="blobLinks">\r
                <span class="link">\r
-                       <a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="commitdiff"><wicket:message key="gb.commitdiff"></wicket:message></a> | <a wicket:id="difftocurrent"><wicket:message key="gb.difftocurrent"></wicket:message></a>\r
+                       <a wicket:id="commitdiff"><wicket:message key="gb.commitdiff"></wicket:message></a> | <a wicket:id="difftocurrent"><wicket:message key="gb.difftocurrent"></wicket:message></a>\r
                </span> \r
        </wicket:fragment>\r
        \r
index 838f103e5ed2fb1aa9bd7eb692df63ae8c85d379..2ad09438aa074edf6ca7234818d1448dd51f68ef 100644 (file)
@@ -180,8 +180,6 @@ public class HistoryPanel extends BasePanel {
                                        item.add(links);\r
                                } else {\r
                                        Fragment links = new Fragment("historyLinks", "blobLinks", this);\r
-                                       links.add(new BookmarkablePageLink<Void>("view", BlobPage.class, WicketUtils\r
-                                                       .newPathParameter(repositoryName, entry.getName(), path)));\r
                                        links.add(new BookmarkablePageLink<Void>("commitdiff", CommitDiffPage.class,\r
                                                        WicketUtils.newObjectParameter(repositoryName, entry.getName())));\r
                                        links.add(new BookmarkablePageLink<Void>("difftocurrent", BlobDiffPage.class,\r
index f6c2327e3fb3fc1d62b27d9d3324ef4b32757800..3c3da74547e9a55c8db6cb235b429894e7f0f287 100644 (file)
                        <tr wicket:id="commit">\r
                        <td class="date" style="width:6em;"><span wicket:id="commitDate">[commit date]</span></td>\r
                        <td class="hidden-phone author"><span wicket:id="commitAuthor">[commit author]</span></td>\r
-                       <td class="hidden-phone hidden-tablet"><span wicket:id="commitHash">[commit hash]</span></td>\r
                        <td class="hidden-phone icon"><img wicket:id="commitIcon" /></td>\r
                        <td class="message"><table class="nestedTable"><tr><td><span style="vertical-align:middle;" wicket:id="commitShortMessage">[commit short message]</span></td><td><div style="text-align:right;" wicket:id="commitRefs">[commit refs]</div></td></tr></table></td>\r
+                       <td class="hidden-phone hidden-tablet"><span wicket:id="commitHash">[commit hash]</span></td>\r
                        <td class="hidden-phone hidden-tablet rightAlign">\r
                                <span class="link">\r
-                                               <a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <a wicket:id="diff"><wicket:message key="gb.diff"></wicket:message></a> | <a wicket:id="tree"><wicket:message key="gb.tree"></wicket:message></a>\r
+                                               <a wicket:id="diff"><wicket:message key="gb.diff"></wicket:message></a> | <a wicket:id="tree"><wicket:message key="gb.tree"></wicket:message></a>\r
                                        </span>\r
                                </td>\r
                        </tr>\r
index 6d06e7b852899a1682ed3676a897b9201e9a8110..0a56b31523598ce77c1a746c342e48d6c7bd1eba 100644 (file)
@@ -135,8 +135,6 @@ public class LogPanel extends BasePanel {
 \r
                                item.add(new RefsPanel("commitRefs", repositoryName, entry, allRefs));\r
 \r
-                               item.add(new BookmarkablePageLink<Void>("view", CommitPage.class, WicketUtils\r
-                                               .newObjectParameter(repositoryName, entry.getName())));\r
                                item.add(new BookmarkablePageLink<Void>("diff", CommitDiffPage.class, WicketUtils\r
                                                .newObjectParameter(repositoryName, entry.getName())).setEnabled(entry\r
                                                .getParentCount() > 0));\r