moved "show html" button to the right

This commit is contained in:
Synox 2017-03-21 11:59:21 +01:00
parent 93b8a099e7
commit 27756d881c

View File

@ -69,10 +69,18 @@
<div ng-if="$ctrl.username" ng-repeat="mail in $ctrl.mails | orderBy:'-date' track by $index"
class="email-table">
<section class="email">
<section class="email" ng-init="htmlTabActive=false">
<div class="row sticky-header" ec-stickyfill>
<div class="col-sm-12 email-summary">{{mail.subject}}
<form class="form-inline float-xs-right">
<button ng-show="htmlTabActive" class="btn btn-outline-info btn-sm"
ng-click="htmlTabActive=false">show text
</button>
<button ng-show="mail.textHtml && !htmlTabActive" class="btn btn-outline-info btn-sm"
ng-click="htmlTabActive=true">show html
</button>
<a role="button" class="btn btn-sm btn-outline-primary"
href="{{$ctrl.backend_url}}?download_email_id={{mail.id}}&username={{$ctrl.username}}"
download="true">Download
@ -102,14 +110,7 @@
</div>
</div>
<div class="row mail-content" ng-init="htmlTabActive=false">
<button ng-show="htmlTabActive" class="btn btn-outline-info btn-sm"
ng-click="htmlTabActive=false">show text
</button>
<button ng-show="mail.textHtml && !htmlTabActive" class="btn btn-outline-info btn-sm"
ng-click="htmlTabActive=true">show html
</button>
<div class="row mail-content">
<div ng-if="!htmlTabActive" class="mail-content"
ng-bind-html="mail.textPlain | nl2br | autolink "></div>
<div ng-if="htmlTabActive" class="mail-content" ng-bind-html="mail.textHtml"></div>