proposal-list.html
2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div class="proposal-list">
<div class="table-responsive" ng-if="vm.loading">
<div class="table-responsive">Carregando...</div>
</div>
<div class="table-responsive" ng-if="!vm.loading && vm.proposalsPerPage">
<table class="table table-striped">
<thead>
<tr>
<th>
Colocação
<a tabindex="0" class="btn btn-link btn-question" role="button" data-toggle="popover" data-trigger="focus">?</a>
</th>
<th>{{vm.proposals.length}} PROPOSTAS</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="proposal in vm.proposalsPerPage">
<td class="color-theme-fg">
<span class="position">{{::($index+1)}}º</span>
</td>
<td>
<div class="row">
<div class="col-xs-12">
<div class="abstract" ng-bind-html="proposal.abstract"></div>
</div>
</div>
<div class="row row-actions">
<div class="col-md-9">
<button type="button" class="btn btn-link btn-rate color-theme-common-fg">
Avalie esta proposta
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
</button>
</div>
<div class="col-md-3">
<proposal-stats views="{{::proposal.hits}}" up="{{::proposal.votes_for}}" down="{{::proposal.votes_against}}"></proposal-stats>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<nav>
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<li><a href="#" ng-click="vm.showPage(1)">1</a></li>
<li><a href="#" ng-click="vm.showPage(2)">2</a></li>
<li><a href="#" ng-click="vm.showPage(3)">3</a></li>
<li><a href="#" ng-click="vm.showPage(4)">4</a></li>
<li><a href="#" ng-click="vm.showPage(5)">5</a></li>
<li>
<a href="#" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>
</div>
</div>