glowingbear-mainbox/directives/plugin.html

18 lines
488 B
HTML
Raw Normal View History

2014-02-07 02:59:50 +01:00
<div ng-show="data.visible">
<button class="btn btn-primary btn-sm pull-right"
ng-click="data.visible = false">
Hide {{ data.name }}
</button>
<div ng-bind-html="data.content"></div>
</div>
<div ng-hide="data.visible">
<button class="btn btn-sm pull-right"
bo-class="{
'btn-warning': data.nsfw,
'btn-primary': !data.nsfw}"
ng-click="data.visible = true">
Show {{ data.name }}
</button>
</div>