Skip to content

Commit

Permalink
Add page_notifications for feedback from /Auth
Browse files Browse the repository at this point in the history
+ The dashboard pages didn't display feedback from authorization
  resources, e.g., /Auth/login or /Auth/reset_password

+ Now they do!
  • Loading branch information
tanzer committed Jun 10, 2015
1 parent 82f0c6e commit 9e70190
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions _CNDB/_JNJ/html/dashboard/app.jnj
@@ -1,6 +1,6 @@
{#- jinja template: html/dashboard/app.jnj -#}
{#
## Copyright (C) 2014 Mag. Christian Tanzer All rights reserved
## Copyright (C) 2014-2015 Mag. Christian Tanzer All rights reserved
## Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
## #*** <License> ************************************************************
## This module is licensed under the terms of the BSD 3-Clause License
Expand All @@ -26,16 +26,18 @@
## 9-Jul-2014 (CT) Factor out Funkfeuer specific stuff
## 14-Jul-2014 (CT) Fix `{{ title }}` access in block `title`
## 3-Dec-2014 (CT) Adapt to changes in grid of pure-0.5.0
## 10-Jun-2015 (CT) Add `page_notifications` to display feedback from `/Auth`
## ««revision-date»»···
##--
#}

{%- import (html_version or "html/5.jnj") as X -%}
{%- import "html/media_fragments.jnj" as MF with context %}
{%- import "html/dashboard/app.m.jnj" as DB with context %}
{%- import "html/dashboard/edit.m.jnj" as DB_Edit with context %}
{%- import "html/dashboard/user.m.jnj" as DB_User with context %}
{%- import "html/dashboard/view.m.jnj" as DB_View with context %}
{%- import (html_version or "html/5.jnj") as X -%}
{%- import "html/page_notifications.m.jnj" as PN with context %}
{%- import "html/media_fragments.jnj" as MF with context %}
{%- import "html/dashboard/app.m.jnj" as DB with context %}
{%- import "html/dashboard/edit.m.jnj" as DB_Edit with context %}
{%- import "html/dashboard/user.m.jnj" as DB_User with context %}
{%- import "html/dashboard/view.m.jnj" as DB_View with context %}

{%- call X.html (lang = page.language|default ("en")) -%}
{%- call X.head () -%}
Expand Down Expand Up @@ -94,6 +96,9 @@
{% endcall %} {# X.header #}
{%- block main -%}
<div class="main">
{%- block page_notifications -%}
{{ PN.render (notifications) }}
{%- endblock page_notifications -%}
<div id="messages"></div>
{%- block app -%}
<div id="app" class="app">
Expand Down

0 comments on commit 9e70190

Please sign in to comment.