starring support (#43)

This commit is contained in:
Athou
2013-04-30 11:29:02 +02:00
parent 2cbf51c287
commit bfde9241eb
8 changed files with 55 additions and 6 deletions

View File

@@ -1,6 +1,12 @@
<div class="css-treeview" ng-controller="CategoryTreeCtrl">
<ul>
<category node="CategoryService.subscriptions"
<category node="CategoryService.subscriptions" show-label="true" show-children="false"
selected-type="selectedType" selected-id="selectedId"
unread-count="unreadCount(category)"> </category>
<category node="starred" show-label="true" show-children="false"
selected-type="selectedType" selected-id="selectedId"
unread-count="unreadCount(category)"> </category>
<category node="CategoryService.subscriptions" show-label="false" show-children="true"
selected-type="selectedType" selected-id="selectedId"
unread-count="unreadCount(category)"> </category>
</ul>

View File

@@ -9,6 +9,10 @@
<a href="{{entry.url}}" target="_blank" class="entry-heading" ng-click="noop($event)" ng-mouseup="entryClicked(entry, $event)"
ng-class="{open: current == entry, closed: current != entry}">
<span class="feed-name">
<span class="star" ng-mouseup="star(entry, !entry.starred, $event)">
<i ng-class="{'icon-star icon-star-yellow': entry.starred, 'icon-star-empty': !entry.starred}"
class="pointer"></i>
</span>
<favicon url="entry.feedUrl" />
{{entry.feedName}}
</span>