summaryrefslogtreecommitdiff
path: root/web-ui/app/templates/mails/full_view.hbs
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-12-08 16:59:09 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-12-08 16:59:09 +0100
commitfafac3b4128a0993b0de1c6e8ca3062bf1ccc14e (patch)
tree3b9a446e4c82bb8ba94c1cd0adec57c0042dae28 /web-ui/app/templates/mails/full_view.hbs
parent521bce7eff5cf921156efe74c91a0499ade43619 (diff)
Revert "[#801] Merge branch 'signup'"
This reverts commit d10f607a4d40587510b0dc31b31fe4750bf4a3a3, reversing changes made to c28abba2f5b1186c671ebef508d40ffaae6d5bc5.
Diffstat (limited to 'web-ui/app/templates/mails/full_view.hbs')
-rw-r--r--web-ui/app/templates/mails/full_view.hbs83
1 files changed, 83 insertions, 0 deletions
diff --git a/web-ui/app/templates/mails/full_view.hbs b/web-ui/app/templates/mails/full_view.hbs
new file mode 100644
index 00000000..40bfd4a2
--- /dev/null
+++ b/web-ui/app/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>