\r
#### changes\r
\r
+- Added short commit id column to log and history tables (issue 168)\r
- Teams can now specify the *admin*, *create*, and *fork* roles to simplify user administration\r
- Use https Gravatar urls to avoid browser complaints\r
- Added frm to default pretty print extensions (issue 156)\r
<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 rightAlign">\r
<span wicket:id="historyLinks">[history links]</span>\r
// breadcrumbs\r
add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, path, objectId));\r
\r
+ final int hashLen = GitBlit.getInteger(Keys.web.shortCommitIdLength, 6);\r
ListDataProvider<RevCommit> dp = new ListDataProvider<RevCommit>(commits);\r
DataView<RevCommit> logView = new DataView<RevCommit>("commit", dp) {\r
private static final long serialVersionUID = 1L;\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
<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 rightAlign">\r
WicketUtils.newRepositoryParameter(repositoryName)));\r
}\r
\r
+ final int hashLen = GitBlit.getInteger(Keys.web.shortCommitIdLength, 6);\r
ListDataProvider<RevCommit> dp = new ListDataProvider<RevCommit>(commits);\r
DataView<RevCommit> logView = new DataView<RevCommit>("commit", dp) {\r
private static final long serialVersionUID = 1L;\r
objectId, author, Constants.SearchType.AUTHOR));\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