From 04cf441c5ae18400c6b4865b0b37a71718dc9d46 Mon Sep 17 00:00:00 2001 From: Ola Bini Date: Thu, 31 Jul 2014 19:29:33 -0300 Subject: Add web-ui based on previous code --- web-ui/app/templates/mails/full_view.hbs | 87 +++++++++++++++++++++++++++++ web-ui/app/templates/mails/mail_actions.hbs | 6 ++ web-ui/app/templates/mails/sent.hbs | 23 ++++++++ web-ui/app/templates/mails/single.hbs | 19 +++++++ 4 files changed, 135 insertions(+) create mode 100644 web-ui/app/templates/mails/full_view.hbs create mode 100644 web-ui/app/templates/mails/mail_actions.hbs create mode 100644 web-ui/app/templates/mails/sent.hbs create mode 100644 web-ui/app/templates/mails/single.hbs (limited to 'web-ui/app/templates/mails') 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..a466308d --- /dev/null +++ b/web-ui/app/templates/mails/full_view.hbs @@ -0,0 +1,87 @@ + +
+ +
+ + + + +
+ +
+ + {{t signatureStatus }} + + + {{t encryptionStatus }} + +
+
+ {{ header.formattedDate }} +
+
+ + {{#if header.from }} + {{ header.from }} + {{else}} + {{t 'you'}} + {{/if}} + + + {{{formatRecipients header}}} +
+ +
+

+ {{ header.subject }} + +
+
    + {{#each tags }} +
  • {{ this }}
  • + {{/each }} + +
  • + +
  • +
  • + +
  • +
+
+

+ +
+ +
+
+ +
+

{{t 'You are trying to delete the last tag on this message.'}}

+ +

{{t 'What would you like to do?'}}

+ + + × + {{t 'Trash:'}} {{t 'we will keep this message for 30 days, then delete it forever.'}} + + + {{t 'Archive:'}} {{t 'we will remove all the tags, but keep it in your account in case you need it.'}} + +
+ +
+ {{#each body }} +

{{ this }}

+ {{/each }} +
+
+ diff --git a/web-ui/app/templates/mails/mail_actions.hbs b/web-ui/app/templates/mails/mail_actions.hbs new file mode 100644 index 00000000..8933db79 --- /dev/null +++ b/web-ui/app/templates/mails/mail_actions.hbs @@ -0,0 +1,6 @@ + + + diff --git a/web-ui/app/templates/mails/sent.hbs b/web-ui/app/templates/mails/sent.hbs new file mode 100644 index 00000000..826a66d5 --- /dev/null +++ b/web-ui/app/templates/mails/sent.hbs @@ -0,0 +1,23 @@ + + + + + + {{ header.formattedDate }} + +
{{t 'to:'}} {{#if header.to }}{{ + header.to }}{{else}}{{t 'no_recipient'}}{{/if}}
+
+
    + {{#each tagsForListView }} +
  • {{ this }}
  • + {{/each }} +
+ {{#if header.subject }} + {{header.subject}} + {{else}} + {{t 'no_subject'}} + {{/if}} +
+
+
diff --git a/web-ui/app/templates/mails/single.hbs b/web-ui/app/templates/mails/single.hbs new file mode 100644 index 00000000..9a054c79 --- /dev/null +++ b/web-ui/app/templates/mails/single.hbs @@ -0,0 +1,19 @@ + + + + + + {{ header.formattedDate }} + +
{{#if header.from }}{{ header.from }}{{else}}{{t "you"}}{{/if}}
+
+
    + {{#each tagsForListView }} +
  • {{ this }}
  • + {{/each }} +
+ + {{ header.subject }} +
+
+
-- cgit v1.2.3