Merge pull request #102 from lorenzhs/fixembeds

Fix content embedding
This commit is contained in:
David Cormier 2013-12-20 06:27:03 -08:00
commit 7520eca74e

View file

@ -287,13 +287,13 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
<span bindonce ng-repeat="part in bufferline.content" class="text" bo-class="part.classes" bo-html="part.text|linky:'_blank'"></span> <span bindonce ng-repeat="part in bufferline.content" class="text" bo-class="part.classes" bo-html="part.text|linky:'_blank'"></span>
<div bindonce ng-repeat="metadata in bufferline.metadata"> <div bindonce ng-repeat="metadata in bufferline.metadata">
<div bo-show="metadata.visible"> <div ng-show="metadata.visible">
<button class="btn btn-primary pull-right" bo-click="metadata.visible = false" bo-text="'Hide ' + metadata.name">Hide {{ metadata.name }}</button> <button bindonce class="btn btn-primary pull-right" ng-click="metadata.visible = false">Hide {{ metadata.name }}</button>
<div bo-html="metadata.content"></div> <div ng-bind-html="metadata.content"></div>
</div> </div>
<div bo-hide="metadata.visible"> <div ng-hide="metadata.visible">
<button class="btn pull-right" bo-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show {{ metadata.name }}</button> <button bindonce class="btn pull-right" bo-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show {{ metadata.name }}</button>
</div> </div>
</div> </div>
</td> </td>