diff options
author | Roald de Vries <rdevries@thoughtworks.com> | 2016-12-07 15:26:10 +0100 |
---|---|---|
committer | Roald de Vries <rdevries@thoughtworks.com> | 2016-12-07 15:26:10 +0100 |
commit | d10f607a4d40587510b0dc31b31fe4750bf4a3a3 (patch) | |
tree | db016bb0878989249e0f329e2162d11067b0f8b7 /web-ui/public/templates/mails/full_view.hbs | |
parent | c28abba2f5b1186c671ebef508d40ffaae6d5bc5 (diff) | |
parent | eaf2019b6e977d1191e0ee12f694a02bb9612f83 (diff) |
[#801] Merge branch 'signup'
Diffstat (limited to 'web-ui/public/templates/mails/full_view.hbs')
-rw-r--r-- | web-ui/public/templates/mails/full_view.hbs | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/web-ui/public/templates/mails/full_view.hbs b/web-ui/public/templates/mails/full_view.hbs new file mode 100644 index 00000000..40bfd4a2 --- /dev/null +++ b/web-ui/public/templates/mails/full_view.hbs @@ -0,0 +1,83 @@ +<button class="close-mail-button"> + <i class="fa fa-times"></i> +</button> + +<div id="fullView-{{ ident }}" class="mail-read-view {{statuses}}"> + <header class="mail-read-view__header row"> + + <!-- TODO --> + <div class="column large-12 no-padding security-status"> + {{#if signatureStatus}} + <span class="security-status__label {{ signatureStatus.cssClass }}"> + {{t signatureStatus.label }} + </span> + {{/if}} + {{#if encryptionStatus}} + <span class="security-status__label {{ encryptionStatus.cssClass }}"> + {{t encryptionStatus.label }} + </span> + {{/if}} + </div> + + <div class="mail-read-view__header-recipients"> + <span class="mail-read-view__header-recipients--highlight-sender"> + {{#if header.from }} + {{ header.from }} + {{else}} + {{t 'you'}} + {{/if}} + </span> + <i class="fa fa-long-arrow-right"></i> + {{{formatRecipients header}}} + </div> + + <div class="mail-read-view__header-date"> + {{ formatDate header.date }} + </div> + + <hr> + + <div class="mail-read-view__header-subject"> + <h3>{{ header.subject }}</h3> + </div> + + <nav id="mail-actions" class="mail-read-view__header-actions"></nav> + + <ul class="mail-read-view__header-tags"> + <li class="mail-read-view__header-tags-label"> + <i class="fa fa-tags"></i> + </li> + + {{#each tags }} + <li class="mail-read-view__header-tags-tag" data-tag="{{this}}">{{ this }}</li> + {{/each }} + + <li class="mail-read-view__header-tags-name-input"> + <input type="text" id="new-tag-input" placeholder="{{t 'add-tag-placeholder'}}" + /> + </li> + + <li class="mail-read-view__header-tags-new-button"> + <button id="new-tag-button" class="no-style"><i class="fa fa-plus"></i></button> + </li> + </ul> + </header> + + <iframe class="mail-read-view__body" id="read-sandbox" sandbox="allow-popups allow-scripts" src="sandbox/sandbox.html" scrolling="no"></iframe> + + {{#if attachments}} + <hr> + + <div id="attachmentsArea" class="mail-read-view__attachments"> + <p class="mail-read-view__attachments-header"><i class="fa fa-paperclip"></i> {{ attachments.length }} attachment(s):</p> + <ul> + {{#each attachments }} + <li class="mail-read-view__attachments-item"> + <a class="mail-read-view__attachments-item-label" href="/attachment/{{ this.ident }}?content_type={{ this.content-type }}&encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }} ({{ formatSize this.size}}) + <i class="fa fa-arrow-down mail-read-view__attachments-item-download"></i></a> + </li> + {{/each }} + </ul> + </div> + {{/if}} +</div> |