confirm indication on workcard
This commit is contained in:
parent
bc1381cba3
commit
70717dbeae
@ -230,10 +230,10 @@
|
||||
<div class="cWorkBottom">
|
||||
<span class="cWorkDate" style="font-weight:{{cardDate}}">{{dateWord}}</span>
|
||||
<div style="color:{{doneRatio}}">
|
||||
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
|
||||
<span>{{confirmationLength}}</span>
|
||||
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
|
||||
<span>{{reportLength}}</span>
|
||||
<i class="fa fa-thumbs-up" aria-hidden="true" style="color:{{confirmed}}"></i>
|
||||
<span style="color:{{confirmed}}">{{confirmationLength}}</span>
|
||||
<i class="fa fa-exclamation-triangle" aria-hidden="true" style="color:{{reported}}"></i>
|
||||
<span style="color:{{reported}}">{{reportLength}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1065,6 +1065,8 @@ updateWork = function(id, fields, type) {
|
||||
|
||||
workObj.confirmationLength = workObj.confirmations.length; // Counts the number of confirmations and reports for a particular work.
|
||||
workObj.reportLength = workObj.reports.length;
|
||||
workObj.confirmed = (_.contains(workObj.confirmations, Meteor.userId())) ? "#27A127" : "";
|
||||
workObj.reported = (_.contains(workObj.reports, Meteor.userId())) ? "#FF1A1A" : "";
|
||||
|
||||
workObj.typeColor = workColors[workObj.type];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user