mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
favicon directive
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a ng-click="feedClick({id: feed.id})" class="feed-link"
|
<a ng-click="feedClick({id: feed.id})" class="feed-link"
|
||||||
ng-class="{selected: (feed.id == selectedId && selectedType == 'feed'), unread: feed.unread }">
|
ng-class="{selected: (feed.id == selectedId && selectedType == 'feed'), unread: feed.unread }">
|
||||||
<img ng-src="favicon?url={{feed.feedUrl}}" width="16" height="16"></img>
|
<favicon url="feed.feedUrl" />
|
||||||
{{formatFeedName({feed:feed})}}
|
{{formatFeedName({feed:feed})}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
var module = angular.module('commafeed.directives', []);
|
var module = angular.module('commafeed.directives', []);
|
||||||
|
|
||||||
app.directive('ngBlur', function() {
|
module.directive('favicon', function() {
|
||||||
|
return {
|
||||||
|
restrict : 'E',
|
||||||
|
scope : {
|
||||||
|
url : '='
|
||||||
|
},
|
||||||
|
replace : true,
|
||||||
|
template : '<img ng-src="favicon?url={{url}}" width="16" height="16"></img>'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
module.directive('ngBlur', function() {
|
||||||
return {
|
return {
|
||||||
restrict : 'A',
|
restrict : 'A',
|
||||||
link : function(scope, elm, attrs) {
|
link : function(scope, elm, attrs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user