highlight search results

This commit is contained in:
Athou
2013-07-31 11:02:39 +02:00
parent 54e5621267
commit c17cc5bd1c
3 changed files with 31 additions and 4 deletions

View File

@@ -32,7 +32,7 @@
{{entry.feedName}}
</span>
<span class="entry-date">{{entry.date | entryDate}}</span>
<span class="entry-name" ng-class="{shrink: true, rtl: entry.rtl}" ng-bind-html-unsafe="entry.title"></span>
<span class="entry-name" ng-class="{shrink: true, rtl: entry.rtl}" ng-bind-html-unsafe="entry.title | highlight:keywords"></span>
</a>
<a href="{{entry.url}}" target="_blank" class="entry-external-link" ng-click="mark(entry, true)">
<i class="icon-external-link"></i>
@@ -42,7 +42,7 @@
ng-class="{rtl: entry.rtl}">
<div class="entry-header">
<div class="entry-title">
<a href="{{entry.url}}" target="_blank" ng-bind-html-unsafe="entry.title"></a>
<a href="{{entry.url}}" target="_blank" ng-bind-html-unsafe="entry.title | highlight:keywords"></a>
<div class="entry-subtitle">
<span class="entry-source" ui-if="selectedType == 'category'">
<span class="entry-source-prefix">${view.entry_source}</span>
@@ -57,7 +57,7 @@
</div>
<div class="entry-body-content">
<div ng-bind-html-unsafe="entry.content"></div>
<div ng-bind-html-unsafe="entry.content | highlight:keywords"></div>
<div class="entry-enclosure" ui-if="entry.enclosureType">
<video controls ui-if="entry.enclosureType && entry.enclosureType.indexOf('video') == 0">
<source src="{{entry.enclosureUrl}}" type="{{entry.enclosureType}}" />