Added creator to work card
This commit is contained in:
parent
cb17d7e2ea
commit
c82ceb9afa
@ -445,6 +445,14 @@ input, textarea {
|
||||
box-shadow: 2px 2px 5px 3px #666, inset 0 0 0 99999px rgba(0,0,0,0.09);
|
||||
}
|
||||
|
||||
.cWorkTop {
|
||||
margin: 0 0 5% 0;
|
||||
}
|
||||
|
||||
.cWorkCreator {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.cWorkCont {
|
||||
padding: 5%;
|
||||
}
|
||||
|
||||
@ -281,7 +281,10 @@
|
||||
<div class="workCard" workid="{{_id}}" classid="{{classid}}">
|
||||
<div class="cWorkType" style="background-color:{{typeColor}}"></div>
|
||||
<div class="cWorkCont">
|
||||
<p class="cWorkName">{{name}}</p>
|
||||
<div class="cWorkTop">
|
||||
<span class="cWorkName">{{name}}</span>
|
||||
<span class="cWorkCreator">{{creator}}</span>
|
||||
</div>
|
||||
<span class="cWorkDate" style="font-weight:{{cardDate}}">{{dueDate}}</span>
|
||||
<div style="float:right">
|
||||
<i class="fa fa-thumbs-up" aria-hidden="true"></i>
|
||||
|
||||
@ -160,6 +160,8 @@ Template.registerHelper('myClasses', () => { // Gets all classes and respective
|
||||
|
||||
thisWork[j].confirmationLength = thisWork[j].confirmations.length; // Counts the number of confirmations and reports for a particular work.
|
||||
thisWork[j].reportLength = thisWork[j].reports.length;
|
||||
|
||||
thisWork[j].creator = Meteor.users.findOne({_id: thisWork[j].creator}).profile.name;
|
||||
}
|
||||
array[i].thisClassWork = thisWork;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user