<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 class="link" wicket:id="hashLabel">[hash label]</span><span wicket:id="hashLink">[hash link]</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
import com.gitblit.wicket.pages.BlobPage;\r
import com.gitblit.wicket.pages.CommitDiffPage;\r
import com.gitblit.wicket.pages.CommitPage;\r
-import com.gitblit.wicket.pages.HistoryPage;\r
import com.gitblit.wicket.pages.GitSearchPage;\r
+import com.gitblit.wicket.pages.HistoryPage;\r
import com.gitblit.wicket.pages.TreePage;\r
\r
public class HistoryPanel extends BasePanel {\r
setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR);\r
item.add(authorLink);\r
\r
- // commit hash link\r
- LinkPanel commitHash = new LinkPanel("commitHash", null, entry.getName().substring(0, hashLen),\r
- CommitPage.class, WicketUtils.newObjectParameter(\r
- repositoryName, entry.getName()));\r
- WicketUtils.setCssClass(commitHash, "sha1");\r
- WicketUtils.setHtmlTooltip(commitHash, entry.getName());\r
- item.add(commitHash);\r
- \r
// merge icon\r
if (entry.getParentCount() > 1) {\r
item.add(WicketUtils.newImage("commitIcon", "commit_merge_16x16.png"));\r
item.add(new RefsPanel("commitRefs", repositoryName, entry, allRefs));\r
\r
if (isTree) {\r
+ // tree\r
+ item.add(new Label("hashLabel", getString("gb.tree") + "@"));\r
+ LinkPanel commitHash = new LinkPanel("hashLink", null, entry.getName().substring(0, hashLen),\r
+ TreePage.class, WicketUtils.newObjectParameter(\r
+ repositoryName, entry.getName()));\r
+ WicketUtils.setCssClass(commitHash, "sha1");\r
+ WicketUtils.setHtmlTooltip(commitHash, entry.getName()); \r
+ item.add(commitHash);\r
+ \r
Fragment links = new Fragment("historyLinks", "treeLinks", this);\r
- links.add(new BookmarkablePageLink<Void>("tree", TreePage.class, WicketUtils\r
- .newObjectParameter(repositoryName, entry.getName())));\r
links.add(new BookmarkablePageLink<Void>("commitdiff", CommitDiffPage.class,\r
WicketUtils.newObjectParameter(repositoryName, entry.getName())));\r
item.add(links);\r
- } else {\r
+ } else { \r
+ // commit\r
+ item.add(new Label("hashLabel", getString("gb.blob") + "@"));\r
+ LinkPanel commitHash = new LinkPanel("hashLink", null, entry.getName().substring(0, hashLen),\r
+ BlobPage.class, WicketUtils.newPathParameter(\r
+ repositoryName, entry.getName(), path));\r
+ WicketUtils.setCssClass(commitHash, "sha1");\r
+ WicketUtils.setHtmlTooltip(commitHash, entry.getName());\r
+ item.add(commitHash);\r
+ \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
<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="hashLink">[hash link]</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
setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR);\r
item.add(authorLink);\r
\r
- // commit hash link\r
- LinkPanel commitHash = new LinkPanel("commitHash", null, entry.getName().substring(0, hashLen),\r
- CommitPage.class, WicketUtils.newObjectParameter(\r
- repositoryName, entry.getName()));\r
- WicketUtils.setCssClass(commitHash, "sha1");\r
- WicketUtils.setHtmlTooltip(commitHash, entry.getName());\r
- item.add(commitHash);\r
-\r
// merge icon\r
if (entry.getParentCount() > 1) {\r
item.add(WicketUtils.newImage("commitIcon", "commit_merge_16x16.png"));\r
\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
+ // commit hash link\r
+ LinkPanel commitHash = new LinkPanel("hashLink", null, entry.getName().substring(0, hashLen),\r
+ CommitPage.class, WicketUtils.newObjectParameter(\r
+ repositoryName, entry.getName()));\r
+ WicketUtils.setCssClass(commitHash, "sha1");\r
+ WicketUtils.setHtmlTooltip(commitHash, entry.getName());\r
+ item.add(commitHash);\r
+ \r
item.add(new BookmarkablePageLink<Void>("diff", CommitDiffPage.class, WicketUtils\r
.newObjectParameter(repositoryName, entry.getName())).setEnabled(entry\r
.getParentCount() > 0));\r