Skip to content

Commit

Permalink
Merge pull request #704 from ubc/#695-fix-comparisons-answer-name
Browse files Browse the repository at this point in the history
Use user fullname for answer in comparisons tab
  • Loading branch information
andrew-gardener authored Feb 6, 2018
2 parents b05d5f4 + a4d5af4 commit 2c85f2c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h2>All answers
</div>

<!-- Instructor Answer -->
<div class="content instructor-answer">
<div class="instructor-answer">
<rich-content content="answer.content" attachment="answer.file"></rich-content>
</div>

Expand Down Expand Up @@ -272,7 +272,7 @@ <h2>All answers
</div>

<!-- Student Answer -->
<div class="content {{answer.id}}" get-height>
<div class="{{answer.id}}" get-height>
<rich-content content="answer.content" attachment="answer.file" ng-click="revealContent(answer)"></rich-content>
</div>
<!-- Student Answer Read More Button (not used for instructor answers) -->
Expand Down Expand Up @@ -393,7 +393,7 @@ <h2>Your answer and its feedback</h2>
</div>

<!-- Student Answer -->
<div class="content {{answer.id}}">
<div class="{{answer.id}}">
<rich-content content="answer.content" attachment="answer.file" ng-click="revealContent(answer)"></rich-content>
</div>

Expand Down
2 changes: 1 addition & 1 deletion compair/static/modules/comment/answer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div ng-if="answer">
<compair-avatar user-id="answer.user_id" avatar="answer.user.avatar" display-name="answer.user.displayname"></compair-avatar>
<compair-avatar user-id="answer.user_id" avatar="answer.user.avatar" display-name="answer.user.fullname"></compair-avatar>
<strong>answered</strong> on {{ answer.created | amDateFormat: 'MMM D @ h:mm a'}}:
<rich-content content="answer.content" attachment="answer.file"></rich-content>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ <h4 class="text-center evaluator-heading" ng-if="$first">
<p class="content"><a href="" ng-click="loadAnswerByAuthor(comparison.user_id);showMyAnswer = !showMyAnswer;">
<i ng-show="showMyAnswer" class="fa fa-chevron-down"></i>
<i ng-hide="showMyAnswer" class="fa fa-chevron-right"></i>
<em ng-if="isInstructional(comparison.user_id)">Show instructor/TA's answer</em>
<em ng-if="!isInstructional(comparison.user_id)">Show student's answer</em>
<span ng-if="isInstructional(comparison.user_id)">Show instructor/TA's answer</span>
<span ng-if="!isInstructional(comparison.user_id)">Show student's answer</span>
</a></p>
<compair-student-answer class="answer" answer="(answers | filter:{user_id:comparison.user_id}:true)[0]" ng-show="showMyAnswer"></compair-student-answer>
<br />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div dynamic-rich-content="richContent" class="rich-content"></div>
<div dynamic-rich-content="richContent" class="rich-content content"></div>

<div ng-if="attachmentContent.length > 0" class="rich-content-attachments">
<strong class="h5">{{attachmentContent.length}} Attachment<span ng-if="attachmentContent.length > 1">s</span>:</strong>
Expand Down

0 comments on commit 2c85f2c

Please sign in to comment.