-
Notifications
You must be signed in to change notification settings - Fork 0
/
caps.list.html
68 lines (66 loc) · 4.01 KB
/
caps.list.html
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
63
64
65
66
67
68
<div class="row">
<div class="col-xs-9 col-xs-offset-1">
<div class="row">
<div class="col-md-2 pageNum hidden-xs hidden-sm" ng-click="$emit('newPage', page + 1)">
<span class="glyphicon glyphicon-chevron-left" ng-class="{disabled: page == pagestotal}" aria-hidden="true"></span>
</div>
<div class="col-md-8 ">
<div class="col-md-12 pageNum header" ng-click="$emit('newPage', pagestotal)">
<h1>CAPS — code and post scripts</h1>
</div>
<div class="col-xs-12 xs-padding visible-xs-block"></div>
<div class="col-xs-12">
<div class="row">
<div class="col-xs-6 col-sm-2 centered">
<a ng-click="$emit('newPage', pagestotal)" class="pageNum" ng-class="{selected: page == pagestotal}">Самое новое</a>
</div>
<div class="col-xs-6 visible-xs-block centered">
<a ng-click="$emit('newPage', 1)" class="pageNum" ng-class="{selected: page == 1}" >Самое старое</a>
</div>
<div class="col-xs-12 xs-padding visible-xs-block"></div>
<div class="col-xs-12 col-sm-8">
<div class="row">
<div class="col-xs-1 visible-xs-block" ></div>
<b class="col-sm-1 hidden-xs" ng-class="{hidden:(!$first || !(pg < pagestotal))}" ng-repeat-start="pg in [page - 2, page + 2] | to_range">...</b>
<!--div class="col-xs-1 visible-lg-block visible-xs-block" ng-show="$first && (! (pg < pagestotal))"></div-->
<a class="col-xs-2 col-sm-2 pageNum" ng-class="{invisible: pg > pagestotal || pg < 1, selected: pg == page}" ng-click="$emit('newPage', pg)">{{pg}}</a>
<b class="col-sm-1 hidden-xs" ng-class="{hidden: (!$last || pg < 2)}" ng-repeat-end>...</b>
</div>
</div>
<div class="col-sm-2 hidden-xs centered">
<a ng-click="$emit('newPage', 1)" class="pageNum" ng-class="{selected: page == 1}" >Самое старое</a>
</div>
</div>
</div>
</div>
<div class="col-md-2 hidden-xs hidden-sm pageNum" ng-click="$emit('newPage', page - 1)">
<span class="glyphicon glyphicon-chevron-right" ng-class="{disabled: page == 1}" aria-hidden="true"></span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-9 col-sm-offset-1 ">
<div class="caps row" itemscope itemtype="http://schema.org/Article" ng-repeat="c in show_caps | filter:query" >
<span itemprop="name" style="visibility:false; display:none;">Цитата {{c.author}} </span>
<div class="ts col-xs-6 col-sm-4 col-md-3 col-lg-2">
<a itemprop="sameAs" href="http://chatlogs.jabber.ru/[email protected]/{{c.date | date:'yyyy/MM/dd\'.html#\'HH:mm:ss.sss':'UTC' }}{{c.us}}">{{c.date | date:'yyyy/MM/dd HH:mm':'UTC' }}</a>
<span style="visibility:false; display:none;" itemprop="datePublished">{{ c.date | date:'yyyy-MM-dd\'T\'HH:mm':'UTC'}}</span></a>
</div>
<div class="visible-xs-block col-xs-3 col-sm-4"></div>
<div class="col-xs-3 col-sm-2 voting" style="text-align:right;">
<a ng-click="$emit('vote', c.date, c.us, 1)" class="vote" ><span class="glyphicon glyphicon-plus"></span></a>
{{c.votes}}
<a ng-click="$emit('vote', c.date, c.us, -1)" class="vote"><span class="glyphicon glyphicon-minus"></a>
</div>
<div class="col-xs-6 col-sm-2" itemscope itemtype="http://schema.org/Person" itemprop="author">
<span itemprop="name">{{c.author}}</span>
</div>
<div class="col-xs-6 col-sm-4 pull-right yashare" >
<div class="pull-right">[<a class="persistent-link" href="/items/{{c.date}}{{c.us}}/"><span class="glyphicon glyphicon-link" aria-hidden='true'></span></a>]</div>
<div id='yas{{c.date}}{{c.us}}' class="pull-right yash" ng-init="createShare(c)"> </div>
</div>
<div class="text col-xs-12" itemprop="description"> <span itemprop="articleBody" ng-bind-html="c.text | rawHtml"></span></div>
</div>
</div>
</div>