Skip to content

Commit

Permalink
Allow users to see their own answer during the answer period
Browse files Browse the repository at this point in the history
  • Loading branch information
lenglund committed Sep 2, 2014
1 parent 4c65492 commit db0627e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions acj/static/modules/question/question-view-partial.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h2><i class="fa fa-comments"></i> {{question.title}}</h2>
<!-- Tabs -->
<ul class="nav nav-tabs" role="tablist">
<li id="answers" class="active">
<a href="#answers-tab">Answers ({{question.answers_count}})</a>
<a href="#answers-tab">Answers <span ng-show="canManagePosts || !question.answer_period">({{question.answers_count}})</span></a>
</li>
<li id="comments">
<a href="#comments-tab">Comments ({{question.comments_count}})</a>
Expand Down Expand Up @@ -114,10 +114,10 @@ <h2>Answers</h2>
</p>
</div>

<div class="all-answers" ng-if="judged_req_met || canManagePosts">
<div class="all-answers">

<!-- Instructor Answers Section -->
<div class="each-answer clearfix" ng-repeat="answer in instructor_answers" ng-show="canManagePosts">
<div class="each-answer clearfix" ng-repeat="answer in instructor_answers" ng-if="judged_req_met || canManagePosts">

<!-- Answer Metadata Header -->
<a ng-href="#/user/{{answer.post.user.id}}">
Expand Down Expand Up @@ -204,8 +204,8 @@ <h3 class="reply-heading" ng-if="answer.comments.length">
</div><!-- closes each-answer (instructor) -->

<!-- Student Answers Section -->
<!-- <div class="each-answer clearfix" ng-repeat="answer in answers | orderBy:order:reverse | notScoredEnd:sortby" ng-hide="instructors[answer.post.user.id]"> -->
<div class="each-answer clearfix" ng-repeat="answer in answers" ng-if="!instructors[answer.post.user.id]">
<!-- <div class="each-answer clearfix" ng-repeat="answer in answers | orderBy:order:reverse | notScoredEnd:sortby" ng-if="instructors[answer.post.user.id]"> -->
<div class="each-answer clearfix" ng-repeat="answer in answers" ng-if="!instructors[answer.post.user.id] && (judged_req_met || (answer.post.user.id == loggedInUserId && question.answer_period) || canManagePosts)">

<!-- Answer Metadata Header -->
<a ng-href="#/user/{{answer.post.user.id}}">
Expand Down

3 comments on commit db0627e

@mwytang
Copy link
Contributor

@mwytang mwytang commented on db0627e Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we allow users to see their own answers during the judging period?

@lenglund
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my understanding is they don't want users to see answers until they've evaluated, but after that it is fine.

@mwytang
Copy link
Contributor

@mwytang mwytang commented on db0627e Sep 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clarification.

Please sign in to comment.