summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
blob: ea17d0f409dd98b4950b87f166cdade6d66ad186 (plain)
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
<ul>
	<li class="feed_item"
		ng-repeat="item in itemBl.getAll() | orderBy:'id':true "
		ng-class="{ read: item.isRead() }"
		data-id="{{ item.id }}"
    	data-feed="{{ item.feedId }}">
		<h2 class="item_date">
			<time class="timeago" datetime="">{{ item.getRelativeDate() }}</time>
		</h2>
		
		<div class="utils">
			<ul class="primary_item_utils">
				<li ng-class="{ important: item.isStarred() }"
					ng-click="itemBl.toggleStarred(item.id)"
					class="star" 
					title="{{ item.isStarred() }}">
				</li>
			</ul>
		</div>

		<h1 class="item_title">
			<a ng-click="itemBl.setRead(item.id)" 
				target="_blank" href="{{ item.url }}">{{ item.title }}</a>
		</h1>

		<h2 class="item_author">
			<?php p($l->t('from')) ?>
			<a href="#"
				ng-show="itemBl.noFeedActive()"
				class="from_feed">{{ itemBl.getFeedTitle(item.id) }}</a> 
			<span ui-if="item.author">
				<?php p($l->t('by')) ?>
				{{ item.author }}
			</span>
	</h2>

		<div class="enclosure" ui-if="item.enclosureLink">
			<audio controls="controls" ng-src="{{ item.enclosureLink }}" 
					type="{{ item.enclosureType }}">
				<?php p($l->t('Cant play audio format')) ?> {{item.enclosureType}}
			</audio>
		</div>
		
		<div class="body" 
				ng-click="setRead(item.id)" 
				ng-bind-html-unsafe="item.body">
		</div>

		<div class="bottom_utils">
			<ul class="secondary_item_utils"
				ng-class="{ show_keep_unread: itemBl.isKeptUnread(item.id) }">
				<li ng-click="itemBl.toggleKeepUnread(item.id)" 
					class="keep_unread"><?php p($l->t('Keep unread')); ?>
					<input type="checkbox" ng-checked="itemBl.isKeptUnread(item.id)"/>
				</li>
			</ul>
		</div>
	</li>
</ul>