From 12c51fb3f537839311f96e472e31c27960260505 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 9 Jun 2017 16:33:34 +0200 Subject: [PATCH] Use notifications and menus from Pillar --- src/templates/attract/layout.jade | 32 +++---------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/src/templates/attract/layout.jade b/src/templates/attract/layout.jade index fb925ac..187457b 100644 --- a/src/templates/attract/layout.jade +++ b/src/templates/attract/layout.jade @@ -65,35 +65,9 @@ html(lang="en") i.pi-question | {% endif %} - | {% if current_user.is_authenticated %} - - | {% if current_user.has_role('demo') %} - | {% set subscription = 'demo' %} - | {% elif current_user.has_role('subscriber') %} - | {% set subscription = 'subscriber' %} - | {% else %} - | {% set subscription = 'none' %} - | {% endif %} - - li.nav-notifications - a.navbar-item#notifications-toggle( - title="Notifications", - data-toggle="tooltip", - data-placement="bottom") - i.pi-notifications-none.nav-notifications-icon - span#notifications-count - span - .flyout-hat - - #notifications.flyout.notifications - .flyout-content - span.flyout-title Notifications - a#notifications-markallread( - title="Mark All as Read", - href="/notifications/read-all") - | Mark All as Read - - | {% include '_notifications.html' %} + | {% from '_macros/_menu.html' import navigation_menu_notifications, navigation_menu_user %} + | {{ navigation_menu_notifications(current_user) }} + | {{ navigation_menu_user(current_user) }} li(class="dropdown{% if title in ['profile', 'billing-address', 'pledges', 'manage-collection']: %} active{% endif %}")