Skip to content

Commit 2806de3

Browse files
committed
tweak style for vote stats beta feature
1 parent 413f1a7 commit 2806de3

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

client/src/components/vote-edit/vote-edit.tpl.html

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,6 @@ <h2 class="md-headline">
1616
<small class="muted">part of {{$ctrl.round.campaign.name}}</small>
1717
</h2>
1818
<span flex></span>
19-
<span ng-if="$ctrl.round.show_stats && $ctrl.data.method == 'yesno'">
20-
<small style="font-size: 12pt">
21-
Your votes:
22-
{{$ctrl.data.stats.yes}}&nbsp;<md-icon>thumb_up</md-icon>
23-
{{$ctrl.data.stats.no}}&nbsp;<md-icon>thumb_down</md-icon>
24-
</small>
25-
</span>
26-
<span ng-if="$ctrl.round.show_stats && $ctrl.data.method == 'rating'">
27-
<small style="font-size: 12pt">
28-
Your votes:
29-
5 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[5]}} |
30-
4 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[4]}} |
31-
3 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[3]}} |
32-
2 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[2]}} |
33-
1 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[1]}} |
34-
</small>
35-
</span>
3619
<md-button aria-label="Sort"
3720
ng-if="!$ctrl.isVoting('ranking')"
3821
ng-disabled="true">
@@ -88,6 +71,29 @@ <h2 class="md-headline">
8871
<md-icon>save</md-icon>
8972
Save Changes
9073
</md-button>
74+
<div class="round__stats" layout="row" layout-align="start center">
75+
<span ng-if="$ctrl.round.show_stats && $ctrl.data.method == 'yesno'">
76+
<small style="font-size: 12pt">
77+
<h3 class="md-headline">Your votes:</h3>
78+
<ul>
79+
<li>{{$ctrl.data.stats.yes}}&nbsp;<md-icon>thumb_up</md-icon></li>
80+
<li>{{$ctrl.data.stats.no}}&nbsp;<md-icon>thumb_down</md-icon></li>
81+
</ul>
82+
</small>
83+
</span>
84+
<span ng-if="$ctrl.round.show_stats && $ctrl.data.method == 'rating'">
85+
<small style="font-size: 12pt">
86+
<h3 class="md-headline">Your votes:</h3>
87+
<ul>
88+
<li>5 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[5]}}</li>
89+
<li>4 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[4]}}</li>
90+
<li>3 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[3]}}</li>
91+
<li>2 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[2]}}</li>
92+
<li>1 <md-icon>star_rate</md-icon>: {{$ctrl.data.stats[1]}}</li>
93+
</ul>
94+
</small>
95+
</span>
96+
</div>
9197
</div>
9298

9399
<grid-list class="gallery" sv-root sv-part="$ctrl.votes">

0 commit comments

Comments
 (0)