From 3503a247d63e5cd116263d63acddec9842eb717c Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 28 Jan 2019 13:07:05 -0500 Subject: Update Inbox Featureset Inbox now supports marking unread, marking for deletion, and has a new UI Change-Id: Ia684056f70ecca31bbd71634f4d1d5415f7e5428 Signed-off-by: Sawyer Bergeron --- dashboard/src/templates/notifier/inbox.html | 34 ++++++++--- dashboard/src/templates/notifier/notification.html | 65 ++++++++++++++++++---- .../src/templates/workflow/viewport-base.html | 1 - 3 files changed, 80 insertions(+), 20 deletions(-) (limited to 'dashboard/src/templates') diff --git a/dashboard/src/templates/notifier/inbox.html b/dashboard/src/templates/notifier/inbox.html index 471eae4..4184d1d 100644 --- a/dashboard/src/templates/notifier/inbox.html +++ b/dashboard/src/templates/notifier/inbox.html @@ -9,7 +9,7 @@ .inbox-panel { display: grid; - grid-template-columns: 30% 70%; + grid-template-columns: 30% 5% 65%; } .section-panel { @@ -22,7 +22,8 @@ } .card-container { - box-shadow: 0 0 5px 2px #cccccc; + border: 1px solid #cccccc; + border-bottom: 0px; } .card { height: 50px; @@ -43,7 +44,7 @@ } #inbox-iframe { - height: calc(100vh - 130px); + height: calc(100vh - 57px); } .half_width { @@ -51,29 +52,45 @@ } .card-wrapper { } + + #page-wrapper{ + padding: 0px; + } + + .read_notification{ + background-color: #efefef; + }
+

New:

- {% for notification in notifications %} + {% for notification in unread_notifications %}
{{ notification }}
{% endfor %}
+

Read:

+
+ {% for notification in read_notifications %} +
+ {{ notification }} +
+ {% endfor %} +
+
+
- +
- {% endblock %} diff --git a/dashboard/src/templates/notifier/notification.html b/dashboard/src/templates/notifier/notification.html index 65d26c9..0eafa60 100644 --- a/dashboard/src/templates/notifier/notification.html +++ b/dashboard/src/templates/notifier/notification.html @@ -2,19 +2,55 @@ {% block extrahead %} {% endblock %} + {% block basecontent %} -
-

{{notification.title}}

-

-
-{{notification.content|safe}}
-
+ +
+

{{notification.title}} +
+ + +
+

+

+ +{% if not notification.is_html %} +
+{% endif %}
+    {{notification.content|safe}}
+{% if not notification.is_html %}
+
+{% endif %} +
+ {% csrf_token %} +
+ {% endblock %} diff --git a/dashboard/src/templates/workflow/viewport-base.html b/dashboard/src/templates/workflow/viewport-base.html index 9ddb4b8..f78bc01 100644 --- a/dashboard/src/templates/workflow/viewport-base.html +++ b/dashboard/src/templates/workflow/viewport-base.html @@ -419,7 +419,6 @@ var page_rect = document.getElementById("wrapper").getBoundingClientRect(); var title_rect = document.getElementById("iframe_header").getBoundingClientRect(); var iframe_height = page_rect.bottom - title_rect.bottom; - console.log("setting height to " + iframe_height); document.getElementById("viewport-iframe").height = iframe_height; } -- cgit 1.2.3-korg