glowingbear-mainbox/directives/plugin.html
Lorenz Hübschle-Schneider 93f40c64e9 Fix embed DOM classes
Classes, IDs and Names in the DOM have to begin with a letter. The $$hashKey
however might not, so prefix it with embed_. This also makes the classes more
unique, which is a good thing. Additionally, don't scroll on undefined should that
ever happen.

Fixes #45
2014-02-16 16:55:27 -05:00

19 lines
531 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" bo-class="'embed_' + plugin.$$hashKey"></div>
</div>
<div ng-hide="plugin.visible">
<button class="btn btn-sm pull-right"
bo-class="{
'btn-warning': plugin.nsfw,
'btn-primary': !plugin.nsfw}"
ng-click="showContent()">
Show {{ plugin.name }}
</button>
</div>