Pony.fm/public/templates/directives/favourite-button.html
2015-08-31 16:31:45 +01:00

10 lines
No EOL
418 B
HTML

<a href="#" class="btn btn-small favourite-button" ng-class="{'is-favourited': resource.is_favourited, disabled: isWorking}" pfm-eat-click ng-click="toggleFavourite()" ng-show="auth.isLogged">
<span ng-hide="resource.user_data.is_favourited">
Favourite This!
<i class="icon-star-empty"></i>
</span>
<span ng-show="resource.user_data.is_favourited">
In Your Favourites
<i class="icon-star"></i>
</span>
</a>