From 929c16090b94a2cbc1751e3b0976e8d4c2c055e2 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 30 Sep 2015 14:27:18 -0700 Subject: [PATCH] Move error messages to message detail view Change how message errors are rendered. Errors associated with a number will be shown under that number in the detail view rather than piling up in the message bubble. // FREEBIE --- background.html | 15 +++++++++++++-- js/models/messages.js | 6 ++++++ js/views/message_detail_view.js | 9 +++++++-- js/views/message_view.js | 16 +++++----------- stylesheets/_conversation.scss | 19 ++++++++++++++++--- stylesheets/manifest.css | 22 +++++++++++++++++----- 6 files changed, 64 insertions(+), 23 deletions(-) diff --git a/background.html b/background.html index fc78138d..9a130de9 100644 --- a/background.html +++ b/background.html @@ -142,12 +142,18 @@
- - + + + {{ #errors }} + + + + + {{ /errors }}
Sent {{ sent_at }}
Received {{ received_at }}
Sent {{ sent_at }}
Received {{ received_at }}
{{ tofrom }}
Error {{message}}
@@ -240,6 +246,11 @@ {{ #conflict }} {{ /conflict }} + {{ #errors }} +
+ {{message}} +
+ {{ /errors }}