summaryrefslogtreecommitdiffstats
path: root/templates/part.content.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-26 02:01:59 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-26 02:01:59 +0200
commit6dc363a14a1d2b09d72a3f0d3e7bdfd362bad41c (patch)
tree24f789d1357b15fe5d68ec6452eaa682995204ef /templates/part.content.php
parent0b22611a929fc317c6ad073d2ddf5f198ee836f3 (diff)
render items
Diffstat (limited to 'templates/part.content.php')
-rw-r--r--templates/part.content.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index eaf8d925a..18351d453 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -7,6 +7,30 @@
</ul>
<ul ng-if="!isCompactView()">
+ <li class="article"
+ ng-repeat="item in Content.getItems() | orderBy:[Content.orderBy()] track by item.id"
+ ng-click="Content.markRead(item.id)"
+ ng-class="{read: !item.unread}">
+ <h2 class="date">
+ <span class="timeago" title="{{item.pubDate*1000|date:'dd-MM-yyyy'}}">
+ {{ getRelativeDate(item.pubDate) }}
+ </span>
+ </h2>
+
+ <button class="star"
+ ng-click="Content.toggleStar(item.id)"
+ ng-class="{starred: item.starred}"></button>
+
+ <h1 class="title">
+ <a target="_blank" ng-href="{{ item.url }}">
+ {{ item.title }}
+ </a>
+ </h1>
+
+ <div class="item_body" news-bind-html-unsafe="item.body"></div>
+
+
+ </li>
</ul>
</div>