From 5cf1451bf3512affb9d84bc9370e250de7793d3f Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Fri, 29 Apr 2016 12:02:50 +0200 Subject: Issue #679: Fix CSS and markup for attachments --- web-ui/app/templates/compose/attachment_item.hbs | 13 +++--------- .../templates/compose/attachment_upload_item.hbs | 7 ++++--- web-ui/app/templates/compose/attachments_list.hbs | 24 ++++++++-------------- web-ui/app/templates/compose/compose_box.hbs | 4 ++-- web-ui/app/templates/compose/inline_box.hbs | 4 ++-- .../templates/compose/upload_attachment_failed.hbs | 8 ++++---- 6 files changed, 24 insertions(+), 36 deletions(-) (limited to 'web-ui/app/templates/compose') diff --git a/web-ui/app/templates/compose/attachment_item.hbs b/web-ui/app/templates/compose/attachment_item.hbs index 6fefda2f..7a64f6f5 100644 --- a/web-ui/app/templates/compose/attachment_item.hbs +++ b/web-ui/app/templates/compose/attachment_item.hbs @@ -1,11 +1,4 @@ -
  • - - {{ this.name }} ({{ formatSize this.size}}) - {{#if received}} - - {{/if}} - {{#if removable}} - - {{/if}} - +
  • + {{ this.name }} ({{ formatSize this.size}}) + {{#if removable}}{{/if}}
  • diff --git a/web-ui/app/templates/compose/attachment_upload_item.hbs b/web-ui/app/templates/compose/attachment_upload_item.hbs index ff783267..eb6c4ba6 100644 --- a/web-ui/app/templates/compose/attachment_upload_item.hbs +++ b/web-ui/app/templates/compose/attachment_upload_item.hbs @@ -1,4 +1,5 @@ -
  • -
    - {{ this.name }} ({{ formatSize this.size}}) +
  • +
    + {{ this.name }} ({{ formatSize this.size}}) +
  • diff --git a/web-ui/app/templates/compose/attachments_list.hbs b/web-ui/app/templates/compose/attachments_list.hbs index 4d3f1cac..6f34df9e 100644 --- a/web-ui/app/templates/compose/attachments_list.hbs +++ b/web-ui/app/templates/compose/attachments_list.hbs @@ -1,20 +1,14 @@ -
    - - - - +
    + -
    -
    -
      - {{#each attachments }} - {{> attachment_item this }} - {{/each }} -
    -
      -
      +
      +
        + {{#each attachments }} + {{> attachment_item this }} + {{/each }} +
      +
        -
        diff --git a/web-ui/app/templates/compose/compose_box.hbs b/web-ui/app/templates/compose/compose_box.hbs index b88138b5..f69cb542 100644 --- a/web-ui/app/templates/compose/compose_box.hbs +++ b/web-ui/app/templates/compose/compose_box.hbs @@ -22,9 +22,9 @@ {{> attachments_list }} -
        +
        - +
        diff --git a/web-ui/app/templates/compose/inline_box.hbs b/web-ui/app/templates/compose/inline_box.hbs index 59dc67bc..543e69de 100644 --- a/web-ui/app/templates/compose/inline_box.hbs +++ b/web-ui/app/templates/compose/inline_box.hbs @@ -12,9 +12,9 @@ {{> attachments_list }} -
        +
        - +
        diff --git a/web-ui/app/templates/compose/upload_attachment_failed.hbs b/web-ui/app/templates/compose/upload_attachment_failed.hbs index 33ac1aac..dbb1437b 100644 --- a/web-ui/app/templates/compose/upload_attachment_failed.hbs +++ b/web-ui/app/templates/compose/upload_attachment_failed.hbs @@ -1,6 +1,6 @@ -
        - - Upload failed. This file exceeds the 1MB limit. +
        + + Upload failed. This file exceeds the 1MB limit. Choose another file Dismiss -
        +
        -- cgit v1.2.3