Pony.fm/public/templates/directives/favourite-button.html
2013-08-18 22:39:29 -05: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>