diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-19 15:32:27 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-19 15:32:27 +0200 |
commit | 3dfd17204dc0ff4b6339ab3170e44ad1609460a5 (patch) | |
tree | 23043b4c45f3a22408bdd5236073079b3d79d96b /templates/part.content.php | |
parent | 57c819a14906d6b2d7130c653f22d9aeb8c6eebc (diff) |
correctly toggle title of keep unread and star
Diffstat (limited to 'templates/part.content.php')
-rw-r--r-- | templates/part.content.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index 545c24b87..ddf878364 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -30,10 +30,12 @@ </time> </li> <li ng-click="Content.toggleStar(item.id)" class="util" news-stop-propagation> - <button class="star svg" ng-class="{'starred': item.starred}" title="<?php p($l->t('Star')); ?>"></button> + <button class="star svg" ng-hide="item.starred" title="<?php p($l->t('Star article')); ?>"></button> + <button class="starred svg" ng-show="item.starred" title="<?php p($l->t('Unstar article')); ?>"></button> </li> <li ng-click="Content.toggleKeepUnread(item.id)" class="util" news-stop-propagation> - <button class="icon-toggle toggle-keep-unread" ng-class="{'keep-unread': item.keepUnread}" title="<?php p($l->t('Keep article unread')); ?>"></button> + <button class="icon-toggle toggle-keep-unread" ng-hide="item.keepUnread" title="<?php p($l->t('Keep article unread')); ?>"></button> + <button class="icon-toggle toggle-keep-unread keep-unread" ng-show="item.keepUnread" title="<?php p($l->t('Remove keep article unread')); ?>"></button> </li> <li class="util only-in-compact"> <a class="external icon-link" |