Add glyphicons to show/hide header buttons

This commit is contained in:
Ian Kent 2014-04-24 19:19:19 +01:00
parent ec5d6a4572
commit 7e467afbe6

View file

@ -120,7 +120,7 @@ func Index() string {
<tr> <tr>
<th>To</th> <th>To</th>
<td> <td>
<button ng-click="$parent.previewAllHeaders = true" type="button" class="btn btn-default pull-right btn-xs">Show headers</button> <button ng-click="$parent.previewAllHeaders = true" type="button" class="btn btn-default pull-right btn-xs">Show headers <span class="glyphicon glyphicon-chevron-down"></span></button>
{{ preview.Content.Headers["To"].join(', ') }} {{ preview.Content.Headers["To"].join(', ') }}
</td> </td>
</tr> </tr>
@ -131,7 +131,7 @@ func Index() string {
{{ header }} {{ header }}
</th> </th>
<td> <td>
<button ng-if="$last" ng-click="$parent.$parent.$parent.previewAllHeaders = false" type="button" class="btn btn-default pull-right btn-xs">Hide headers</button> <button ng-if="$last" ng-click="$parent.$parent.$parent.previewAllHeaders = false" type="button" class="btn btn-default pull-right btn-xs">Hide headers <span class="glyphicon glyphicon-chevron-up"></span></button>
<div ng-repeat="v in value">{{ v }}</div> <div ng-repeat="v in value">{{ v }}</div>
</td> </td>
</tr> </tr>