summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-10 18:39:30 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-10 18:39:30 +0200
commitd8a83b85292a5309576afd1c0325f6103a7d2502 (patch)
tree8e828b06b1e44e703302d89fe53c1008fa495880 /templates
parent36bacfcc0f53799ba07391bdb44004e9020a2f20 (diff)
stylez em hard
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 459ffb88e..34269dc1d 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -7,7 +7,7 @@
<li class="item {{ Content.getFeed(item.feedId).cssClass }}"
ng-repeat="item in Content.getItems() | orderBy:[Content.orderBy()] track by item.id"
ng-click="Content.markRead(item.id)"
- ng-class="{read: !item.unread}"
+ ng-class="{read: !item.unread, expanded: !Content.isCompactView() || item.show}"
data-id="{{ item.id }}">
<div class="utils" ng-click="Content.toggleItem(item)">
@@ -38,11 +38,12 @@
</ul>
</div>
- <div class="article" ng-show="!Content.isCompactView() || item.show">
+ <div class="article">
<div class="subtitle">
- <span class="author" ng-show="item.author"><?php p($l->t('By')) ?> {{ item.author }}</span>
- <time class="date" title="{{ item.pubDate*1000|date:'yyyy-MM-dd HH:mm:ss' }}"
+ <span class="author" ng-show="item.author"><?php p($l->t('by')) ?> {{ item.author }}</span>
+ <?php p($l->t('from')) ?> <a ng-href="#/items/feeds/{{ item.feedId }}">{{ Content.getFeed(item.feedId).title }}</a>
+ <time class="date" class="date" title="{{ item.pubDate*1000|date:'yyyy-MM-dd HH:mm:ss' }}"
datetime="{{ item.pubDate*1000|date:'yyyy-MM-ddTHH:mm:ssZ' }}">
{{ Content.getRelativeDate(item.pubDate) }}
</time>