Files
Athou_commafeed/src/main/webapp/templates/feeds.html
Jeremie Panzer 054be51c9c bypass angular sanitization, doing it with jsoup and allowing embedded videos
add html content to dom only when entry is opened
2013-03-27 16:42:05 +01:00

29 lines
1.2 KiB
HTML

<div ng-controller="FeedListCtrl">
<div class="entrylist-header">
<h3><span>{{entryList.name}}&nbsp;</span><span ng-show="entryList.name && selectedType == 'category'"> &#187;</span></h3>
</div>
<div id="feed-accordion" infinite-scroll="loadMoreEntries()" infinite-scroll-disabled="busy" infinite-scroll-distance="1">
<accordion close-others="true">
<accordion-group ng-repeat="entry in entryList.entries" class="entry">
<accordion-heading>
<div class="entry-heading" ng-click="toggle(entry)" ng-class="{unread: entry.read == false, open: current == entry, closed: current != entry}">
<span ng-show="selectedType == 'category'">{{entry.feedName}}
- </span>{{entry.title}} <span class="pull-right">{{entry.date}}</span>
</div>
</accordion-heading>
<div class="entry-body">
<div>
<h4>
<a href="{{entry.url}}" target="_blank">{{entry.title}}</a>
</h4>
</div>
<div ng-bind-html-unsafe="entry.content" ui-if="isOpen && current == entry"></div>
</div>
</accordion-group>
</accordion>
<div class="no-entries" ng-show="entryList.entries.length == 0">"{{entryList.name}}" has no unread items.</div>
<div ng-show="busy">Loading data...</div>
</div>
</div>