\r
<!-- PATCHSET FRAGMENT -->\r
<wicket:fragment wicket:id="patchsetFragment">\r
- <div class="row" style="padding: 0px 0px 20px;">\r
+ <div class="row" style="padding: 0px;">\r
<div class="span12 attribution-border">\r
- <div wicket:id="panel"></div> \r
+ <div wicket:id="mergePanel" style="margin-bottom: 10px;"></div>\r
+ <div wicket:id="panel"></div>\r
</div>\r
</div>\r
\r
\r
<!-- COLLAPSIBLE PATCHSET (temp) -->\r
<wicket:fragment wicket:id="collapsiblePatchsetFragment">\r
-<div wicket:id="mergePanel" style="margin-bottom: 10px;"></div>\r
<div class="accordion" id="accordionPatchset" style="clear:both;margin: 0px;">\r
-<div class="patch-group">\r
+<div class="patch-group" style="margin-bottom: 20px;">\r
<div class="accordion-heading">\r
<div class="attribution-patch-pullright"> \r
<div style="padding-bottom: 2px;"> \r
Fragment patchsetFrag = new Fragment("patchset", "patchsetFragment", this);\r
patchsetFrag.add(new Label("commitsInPatchset", MessageFormat.format(getString("gb.commitsInPatchsetN"), currentPatchset.number)));\r
\r
- // current revision\r
- MarkupContainer panel = createPatchsetPanel("panel", repository, user);\r
- patchsetFrag.add(panel);\r
- addUserAttributions(patchsetFrag, currentRevision, avatarWidth);\r
- addUserAttributions(panel, currentRevision, 0);\r
- addDateAttributions(panel, currentRevision);\r
+ patchsetFrag.add(createMergePanel(user, repository));\r
+\r
+ if (ticket.isOpen()) {\r
+ // current revision\r
+ MarkupContainer panel = createPatchsetPanel("panel", repository, user);\r
+ patchsetFrag.add(panel);\r
+ addUserAttributions(patchsetFrag, currentRevision, avatarWidth);\r
+ addUserAttributions(panel, currentRevision, 0);\r
+ addDateAttributions(panel, currentRevision);\r
+ } else {\r
+ // current revision\r
+ patchsetFrag.add(new Label("panel").setVisible(false));\r
+ }\r
\r
// commits\r
List<RevCommit> commits = JGitUtils.getRevLog(getRepository(), currentPatchset.base, currentPatchset.tip);\r
\r
addPtCheckoutInstructions(user, repository, panel);\r
addGitCheckoutInstructions(user, repository, panel);\r
- panel.add(createMergePanel(user, repository));\r
\r
return panel;\r
}\r