public void populateItem(final Item<RevCommit> item) {\r
final RevCommit entry = item.getModelObject();\r
final Date date = JGitUtils.getCommitDate(entry);\r
+ final boolean isMerge = entry.getParentCount() > 1;\r
\r
item.add(WicketUtils.createDateLabel("commitDate", date, getTimeZone(), getTimeUtils()));\r
\r
item.add(authorLink);\r
\r
// merge icon\r
- if (entry.getParentCount() > 1) {\r
+ if (isMerge) {\r
item.add(WicketUtils.newImage("commitIcon", "commit_merge_16x16.png"));\r
} else {\r
item.add(WicketUtils.newBlankImage("commitIcon"));\r
} else {\r
trimmedMessage = StringUtils.trimString(shortMessage, Constants.LEN_SHORTLOG);\r
}\r
- LinkPanel shortlog = new LinkPanel("commitShortMessage", "list subject",\r
+ LinkPanel shortlog = new LinkPanel("commitShortMessage", "list subject" + (isMerge ? " merge" : ""),\r
trimmedMessage, CommitPage.class, WicketUtils.newObjectParameter(\r
repositoryName, entry.getName()));\r
if (!shortMessage.equals(trimmedMessage)) {\r
color: white; \r
}\r
\r
+.merge {\r
+ opacity: 0.5;\r
+}\r
+\r
+.merge:hover {\r
+ opacity: 1;\r
+}\r
+\r
td.author {\r
font-style: italic !important;\r
white-space: nowrap;\r
font-size: 9px;\r
font-weight: normal;\r
border: 1px solid;\r
- color: black; \r
+ color: black;\r
}\r
\r
.tagRef a, .headRef a, .localBranch a, .remoteBranch a, .otherRef a, .pullRef a {\r