plugins: use buttons to display additional content

This commit is contained in:
David Cormier 2013-10-13 14:55:38 -04:00
parent 3f56c80f56
commit 41b0684c82
1 changed files with 2 additions and 2 deletions

View File

@ -124,12 +124,12 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
<div ng-repeat="metadata in bufferline.metadata"> <div ng-repeat="metadata in bufferline.metadata">
<div ng-show="metadata.visible"> <div ng-show="metadata.visible">
<div ng-bind-html="metadata.content"></div> <div ng-bind-html="metadata.content"></div>
<a ng-click="metadata.visible = false">Hide additional content</a> <button class="btn btn-primary" ng-click="metadata.visible = false">Hide additional content</button>
</div> </div>
<div ng-hide="metadata.visible"> <div ng-hide="metadata.visible">
<a ng-click="metadata.visible = true">Show additional content</a> <span ng-show="metadata.nsfw">(possibly nsfw)</span> <button class="btn" ng-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show additional content</button>
</div> </div>
</div> </div>
</td> </td>