forked from Archives/Athou_commafeed
favicon directive
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<a ng-click="feedClick({id: feed.id})" class="feed-link"
|
||||
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})}}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
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 {
|
||||
restrict : 'A',
|
||||
link : function(scope, elm, attrs) {
|
||||
|
||||
Reference in New Issue
Block a user