summaryrefslogtreecommitdiff
path: root/web-ui/app/templates/mails/full_view.hbs
blob: cf797ce66bc36d15e22a4e7aa672b308d9aabb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

<div id="fullView-{{ ident }}" class="{{statuses}}">

    <header class="msg-header row">

        <button class="close-mail-button">
            <i class="fa fa-times"></i>
        </button>


      <div class="full-view-header">

        <div class="column large-12 no-padding security-status">
            {{#if signatureStatus}}
            <span class="{{signatureStatus}}">
              {{t signatureStatus }}
            </span>
            {{/if}}
            {{#if encryptionStatus}}
            <span class="{{encryptionStatus}}">
              {{t encryptionStatus }}
            </span>
            {{/if}}
        </div>
        <div class="recipients column large-10 no-padding">
            <span class="from">
              {{#if header.from }}
                {{ header.from }}
              {{else}}
                {{t 'you'}}
              {{/if}}
            </span>
            <i class="fa fa-long-arrow-right"></i>
            {{{formatRecipients header}}}
        </div>
        <div class="recipients column large-2 text-right">
            <span class="received-date">{{ formatDate header.date }}</span>
        </div>
        <div class="headline-area">
            <h3 class="subjectArea column large-10 no-padding">
                <span class="subject">{{ header.subject }}</span>

                <div class="tagsArea">
                    <ul class="tags">
                    <i class="tags-label fa fa-tags"></i>
                        {{#each tags }}
                          <li class="tag" data-tag="{{this}}">{{ this }}</li>
                        {{/each }}

                        <li class="new-tag">
                            <input type="text" id="new-tag-input" placeholder="{{t 'Press Enter to add tag'}}"/>
                        </li>
                        <li class="add-new">
                            <button id="new-tag-button" class="no-style"><i class="fa fa-plus"></i></button>
                        </li>
                    </ul>
                </div>
            </h3>
            <nav id="mail-actions" class="column large-2 no-padding">
            </nav>
        </div>

      </div>
    </header>

    <div class="bodyArea column large-12">
    </div>

    {{#if attachments}}
      <div class="attachmentsAreaWrap">
        <div class="attachmentsArea column large-12">
        <p><strong><i class="fa fa-paperclip"></i> {{ attachments.length }} attachment(s):</strong></p>
          <ul>
          {{#each attachments }}
            <li>
              <a href="/attachment/{{ this.ident }}?encoding={{ this.encoding }}&filename={{ this.name }}">{{ this.name }} ({{ formatSize this.size}})<i class="fa fa-arrow-down download-icon"></i></a>
            </li>
          {{/each }}
          </ul>
        </div>
      </div>
    {{/if}}
</div>