From 9b8d8c46326a6d381f0440c37f7e8a91deec49c6 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Wed, 23 Mar 2016 13:55:25 +0100 Subject: Issue #648: Refactor mail-list --- web-ui/app/templates/mails/draft.hbs | 66 ++++++++++++++++++++--------------- web-ui/app/templates/mails/sent.hbs | 65 +++++++++++++++++----------------- web-ui/app/templates/mails/single.hbs | 49 ++++++++++++++------------ web-ui/app/templates/mails/trash.hbs | 52 +++++++++++++++------------ 4 files changed, 128 insertions(+), 104 deletions(-) (limited to 'web-ui/app/templates/mails') diff --git a/web-ui/app/templates/mails/draft.hbs b/web-ui/app/templates/mails/draft.hbs index 675f1481..9f4192cc 100644 --- a/web-ui/app/templates/mails/draft.hbs +++ b/web-ui/app/templates/mails/draft.hbs @@ -1,31 +1,41 @@ - - - - - - {{ formatDate header.date }} - {{#if attachments}} -
- -
- {{/if}} -
+
+ +
+ +
+
+
+ {{t 'to:'}} + {{#if header.to }} + {{ header.to }} + {{else}} + {{t 'no_recipient'}} + {{/if}} +
-
- {{t 'to:'}} - {{#if header.to }} - {{ header.to }} - {{else}} - {{t 'no_recipient'}} - {{/if}} + {{ formatDate header.date }}
-
- - {{#if header.subject }} - {{header.subject}} - {{else}} - {{t 'no_subject'}} - {{/if}} +
+
+ + {{#if header.subject }} + {{header.subject}} + {{else}} + {{t 'no_subject'}} + {{/if}} +
+ + {{#if attachments}} +
+ {{/if}}
-
- +
    + {{#each tagsForListView }} +
  • {{ this }}
  • + {{/each }} +
+ + + + + diff --git a/web-ui/app/templates/mails/sent.hbs b/web-ui/app/templates/mails/sent.hbs index 86b6e607..a637e3d2 100644 --- a/web-ui/app/templates/mails/sent.hbs +++ b/web-ui/app/templates/mails/sent.hbs @@ -1,35 +1,36 @@ - - - - - - {{ formatDate header.date }} +
+ +
+
+
+
+ {{t 'to:'}} + {{#if header.to }} + {{ header.to }} + {{else}} + {{t 'no_recipient'}} + {{/if}} +
+ + {{ formatDate header.date }} +
+
+
+ {{#if header.subject }} + {{header.subject}} + {{else}} + {{t 'no_subject'}} + {{/if}} +
+ {{#if attachments}} -
- -
+
{{/if}} - +
+
    + {{#each tagsForListView }} +
  • {{ this }}
  • + {{/each }} +
+
-
- {{t 'to:'}} - {{#if header.to }} - {{ header.to }} - {{else}} - {{t 'no_recipient'}} - {{/if}} -
-
- {{#if header.subject }} - {{header.subject}} - {{else}} - {{t 'no_subject'}} - {{/if}} -
-
    - {{#each tagsForListView }} -
  • {{ this }}
  • - {{/each }} -
- -
diff --git a/web-ui/app/templates/mails/single.hbs b/web-ui/app/templates/mails/single.hbs index 95f9adb7..aaede844 100644 --- a/web-ui/app/templates/mails/single.hbs +++ b/web-ui/app/templates/mails/single.hbs @@ -1,23 +1,28 @@ - - - - - - {{ formatDate header.date }} - {{#if attachments}} -
- -
- {{/if}} -
-
{{#if header.from }}{{ header.from }}{{else}}{{t "you"}}{{/if}}
-
- {{ header.subject }} +
+ +
+
+
+
+ {{#if header.from }} + {{ header.from }} + {{else}} + {{t "you"}} + {{/if}} +
+ + {{ formatDate header.date }}
-
    - {{#each tagsForListView }} -
  • {{ this }}
  • - {{/each }} -
-
- +
+
{{ header.subject }}
+ + {{#if attachments}} +
+ {{/if}} +
+
    + {{#each tagsForListView }} +
  • {{ this }}
  • + {{/each }} +
+ diff --git a/web-ui/app/templates/mails/trash.hbs b/web-ui/app/templates/mails/trash.hbs index ea8fe07f..b822d12f 100644 --- a/web-ui/app/templates/mails/trash.hbs +++ b/web-ui/app/templates/mails/trash.hbs @@ -1,24 +1,32 @@ - - - - - - {{ header.formattedDate }} - {{#if attachments}} -