Pony.fm/public/templates/directives/favourite-button.html
2016-05-20 16:46:44 +01:00

10 lines
459 B
HTML

<a href="#" class="btn btn-default 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="fa fa-star-empty"></i>
</span>
<span ng-show="resource.user_data.is_favourited">
In Your Favourites
<i class="fa fa-star"></i>
</span>
</a>