Added short commit id column to log and history tables (issue-168)
| | |
| | |
|
| | | #### changes
|
| | |
|
| | | - Added short commit id column to log and history tables (issue 168)
|
| | | - Teams can now specify the *admin*, *create*, and *fork* roles to simplify user administration
|
| | | - Use https Gravatar urls to avoid browser complaints
|
| | | - Added frm to default pretty print extensions (issue 156)
|
| | |
| | | <td class="date"><span wicket:id="commitDate">[commit date]</span></td>
|
| | | <td class="icon"><img wicket:id="commitIcon" /></td>
|
| | | <td class="hidden-phone author"><span wicket:id="commitAuthor">[commit author]</span></td>
|
| | | <td class="hidden-phone hidden-tablet"><span wicket:id="commitHash">[commit hash]</span></td>
|
| | | <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>
|
| | | <td class="hidden-phone rightAlign">
|
| | | <span wicket:id="historyLinks">[history links]</span>
|
| | |
| | | // breadcrumbs
|
| | | add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, path, objectId));
|
| | |
|
| | | final int hashLen = GitBlit.getInteger(Keys.web.shortCommitIdLength, 6);
|
| | | ListDataProvider<RevCommit> dp = new ListDataProvider<RevCommit>(commits);
|
| | | DataView<RevCommit> logView = new DataView<RevCommit>("commit", dp) {
|
| | | private static final long serialVersionUID = 1L;
|
| | |
| | | setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR);
|
| | | item.add(authorLink);
|
| | |
|
| | | // commit hash link
|
| | | LinkPanel commitHash = new LinkPanel("commitHash", null, entry.getName().substring(0, hashLen),
|
| | | CommitPage.class, WicketUtils.newObjectParameter(
|
| | | repositoryName, entry.getName()));
|
| | | WicketUtils.setCssClass(commitHash, "sha1");
|
| | | WicketUtils.setHtmlTooltip(commitHash, entry.getName());
|
| | | item.add(commitHash);
|
| | | |
| | | // merge icon
|
| | | if (entry.getParentCount() > 1) {
|
| | | item.add(WicketUtils.newImage("commitIcon", "commit_merge_16x16.png"));
|
| | |
| | | <tr wicket:id="commit">
|
| | | <td class="date" style="width:6em;"><span wicket:id="commitDate">[commit date]</span></td>
|
| | | <td class="hidden-phone author"><span wicket:id="commitAuthor">[commit author]</span></td>
|
| | | <td class="hidden-phone hidden-tablet"><span wicket:id="commitHash">[commit hash]</span></td>
|
| | | <td class="hidden-phone icon"><img wicket:id="commitIcon" /></td>
|
| | | <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>
|
| | | <td class="hidden-phone hidden-tablet rightAlign">
|
| | |
| | | WicketUtils.newRepositoryParameter(repositoryName)));
|
| | | }
|
| | |
|
| | | final int hashLen = GitBlit.getInteger(Keys.web.shortCommitIdLength, 6);
|
| | | ListDataProvider<RevCommit> dp = new ListDataProvider<RevCommit>(commits);
|
| | | DataView<RevCommit> logView = new DataView<RevCommit>("commit", dp) {
|
| | | private static final long serialVersionUID = 1L;
|
| | |
| | | objectId, author, Constants.SearchType.AUTHOR));
|
| | | setPersonSearchTooltip(authorLink, author, Constants.SearchType.AUTHOR);
|
| | | item.add(authorLink);
|
| | | |
| | | // commit hash link
|
| | | LinkPanel commitHash = new LinkPanel("commitHash", null, entry.getName().substring(0, hashLen),
|
| | | CommitPage.class, WicketUtils.newObjectParameter(
|
| | | repositoryName, entry.getName()));
|
| | | WicketUtils.setCssClass(commitHash, "sha1");
|
| | | WicketUtils.setHtmlTooltip(commitHash, entry.getName());
|
| | | item.add(commitHash);
|
| | |
|
| | | // merge icon
|
| | | if (entry.getParentCount() > 1) {
|