Merge pull request #1852 from normanjaeckel/AssignmentFixes
Fixed several things in assignment app. See #1838.
This commit is contained in:
commit
ffe80e8da3
@ -171,7 +171,8 @@ class AssignmentShortPollSerializer(AssignmentAllPollSerializer):
|
||||
'options',
|
||||
'votesvalid',
|
||||
'votesinvalid',
|
||||
'votescast',)
|
||||
'votescast',
|
||||
'has_votes',)
|
||||
|
||||
|
||||
class AssignmentFullSerializer(ModelSerializer):
|
||||
|
@ -73,7 +73,7 @@
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<p os-perm="assignments.can_nominate_self">
|
||||
<p os-perms="assignments.can_nominate_self">
|
||||
<button ng-if="!isCandidate()" ng-click="addMe()" class="btn btn-default">
|
||||
<i class="fa fa-plus"></i>
|
||||
<translate>Add me</translate>
|
||||
@ -91,7 +91,7 @@
|
||||
</button>
|
||||
|
||||
<uib-tabset class="spacer">
|
||||
<uib-tab ng-repeat="poll in assignment.polls" heading="Ballot {{$index+1}}">
|
||||
<uib-tab ng-repeat="poll in assignment.polls | orderBy:'-id'" heading="Ballot {{ assignment.polls.length - $index }}">
|
||||
<div os-perms="assignments.can_manage" class="spacer">
|
||||
<!-- angular requires to open the link in new tab with "target='_blank'".
|
||||
Otherwise the pdf url can't be open in same window; angular redirects to "/". -->
|
||||
|
Loading…
Reference in New Issue
Block a user