summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 21:36:00 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 21:36:00 +0200
commite9d37abf6d5b250d282f86c17a4d68939dce0e4f (patch)
treef07e0b3bce7c7dbe3b7c46ad49a25b349a271baf /templates
parentdaaf87749dae9c70ccd46911a08c6da1d9ad8150 (diff)
add title ellipsis, fix #442
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.expand.php39
1 files changed, 24 insertions, 15 deletions
diff --git a/templates/part.content.expand.php b/templates/part.content.expand.php
index 2d7aaa550..a995b3daa 100644
--- a/templates/part.content.expand.php
+++ b/templates/part.content.expand.php
@@ -6,27 +6,36 @@
<div class="utils">
<ul>
- <li ng-click="Content.toggleStar(item.id)">
+ <li ng-click="Content.toggleStar(item.id)" class="util">
<button class="star svg" ng-class="{'starred': item.starred}" title="<?php p($l->t('Star')); ?>"></button>
</li>
- <li ng-click="Content.toggleKeepUnread(item.id)">
- <button class="star svg" ng-class="{'starred': item.keepUnread}" title="<?php p($l->t('Keep unread')); ?>"></button>
+ <li class="util">
+ <a class="external icon-link"
+ target="_blank"
+ ng-href="{{ item.url }}"
+ title="<?php p($l->t('Open website')) ?>">
+ </a>
+ </li>
+ <li ng-click="Content.toggleKeepUnread(item.id)" class="util">
+ <button class="icon-toggle" ng-class="{'keep-unread': item.keepUnread}" title="<?php p($l->t('Keep unread')); ?>"></button>
+ </li>
+ <li class="title">
+ <h1>
+ <a target="_blank" ng-click="item.hide=!item.hide">
+ {{ item.title }}
+ </a>
+ </h1>
+ </li>
+ <li class="date">
+ <time 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>
</li>
</ul>
</div>
- <div class="article">
- <time 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>
-
- <h1 class="title">
- <a target="_blank" ng-href="{{ item.url }}">
- {{ item.title }}
- </a>
- </h1>
-
+ <div class="article" ng-hide="item.hide">
<h2 class="author">
<span>
<?php p($l->t('from')) ?>