1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-10 21:18:02 -05:00

hide cyphertext from dom

This commit is contained in:
Felix Hammerl 2014-02-18 12:37:10 +01:00
parent 250aa4b886
commit f770b52566
2 changed files with 12 additions and 5 deletions

View File

@ -85,7 +85,7 @@
height: 100%;
overflow-y: scroll;
div {
&.line {
word-wrap: break-word;
&.empty-line {

View File

@ -36,10 +36,17 @@
</div><!--/.ng-switch-->
<div class="body">
<!-- Render lines of a text-email in divs for easier styling -->
<div ng-repeat="line in state.mailList.selected.body.split('\n') track by $index" ng-class="{'empty-line': lineEmpty(line)}">
{{line}}<br>
<div class="body" ng-switch="state.mailList.selected.encrypted === false || state.mailList.selected.decrypted === true">
<div class="line">
<div ng-switch-when="true">
<!-- Render lines of a text-email in divs for easier styling -->
<div ng-repeat="line in state.mailList.selected.body.split('\n') track by $index" ng-class="{'empty-line': lineEmpty(line)}">
{{line}}<br>
</div>
</div>
<div ng-switch-when="false">
This message contains encrypted content.
</div>
</div>
</div><!--/.body-->