Added creator to work card

This commit is contained in:
Kenneth Jao 2016-09-10 14:13:00 -04:00
parent cb17d7e2ea
commit c82ceb9afa
3 changed files with 14 additions and 1 deletions

View File

@ -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%;
}

View File

@ -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>

View File

@ -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;
}