Skip to content

Commit e994a8b

Browse files
committed
#14 Add merge summary in to the open cases list
1 parent cfd3845 commit e994a8b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

ui/app/styles/case.css

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ span.link-id {
2323
text-align: center;
2424
}
2525

26+
.merge-hints {
27+
padding-left: 35px;
28+
}
29+
2630
.indicent-header h2.background {
2731
position: relative;
2832
z-index: 1;

ui/app/views/partials/index-closedcases.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<td>
1515
<tlp value="closedCase.tlp"></tlp>
1616
<a ui-sref="app.case.details({caseId: closedCase.id})">#{{closedCase.caseId}} - {{closedCase.title}}</a>
17-
<div class="text-danger" ng-if="closedCase.mergeInto">
18-
<small>Merged into <a href ui-sref="app.case.details({caseId: closedCase.mergedInto})"> case #{{closedCase.stats.mergeInto.caseId}}</a></small>
17+
<div class="merge-hints text-danger" ng-if="closedCase.mergeInto">
18+
<small>Merged into <a href ui-sref="app.case.details({caseId: closedCase.mergedInto})"> Case #{{closedCase.stats.mergeInto.caseId}}</a></small>
1919
</div>
2020
</td>
2121
<td>

ui/app/views/partials/index-currentcases.html

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
<a ui-sref="app.case.details({caseId: currentCase.id})">#{{currentCase.caseId}}
1717
-
1818
{{currentCase.title}}</a>
19+
<div class="merge-hints text-danger" ng-if="currentCase.mergeFrom">
20+
<small>
21+
Merged from <a href ui-sref="app.case.details({caseId: currentCase.mergeFrom[0]})"> Case #{{currentCase.stats.mergeFrom[0].caseId}}</a> and
22+
<a href ui-sref="app.case.details({caseId: currentCase.mergeFrom[1]})"> Case #{{currentCase.stats.mergeFrom[1].caseId}}</a>
23+
</small>
24+
</div>
1925
</td>
2026
<td>
2127
<span ng-repeat="tag in currentCase.tags">

0 commit comments

Comments
 (0)