glowingbear-mainbox/directives/plugin.html
2014-08-23 12:26:04 +01:00

18 lines
555 B
HTML

<div ng-show="plugin.visible">
<button class="btn btn-primary btn-sm pull-right"
ng-click="hideContent()">
Hide {{ ::plugin.name }}
</button>
<div ng-bind-html="displayedContent" class="embed" ng-class="::('embed_' + plugin.$$hashKey)"></div>
</div>
<div ng-hide="plugin.visible">
<button class="btn btn-sm pull-right"
ng-class="::{
'btn-warning': plugin.nsfw,
'btn-primary': !plugin.nsfw}"
ng-click="showContent()">
Show {{ ::plugin.name }}
</button>
</div>