From 23a2a8fd64db454d9bdb62b2df88b24bbce60e36 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 14 Jun 2017 14:58:48 +0200 Subject: [PATCH] Use menu from Pillar --- src/templates/attract/layout.jade | 82 ------------------------------- 1 file changed, 82 deletions(-) diff --git a/src/templates/attract/layout.jade b/src/templates/attract/layout.jade index 187457b..d58c2b1 100644 --- a/src/templates/attract/layout.jade +++ b/src/templates/attract/layout.jade @@ -69,88 +69,6 @@ html(lang="en") | {{ navigation_menu_notifications(current_user) }} | {{ navigation_menu_user(current_user) }} - - li(class="dropdown{% if title in ['profile', 'billing-address', 'pledges', 'manage-collection']: %} active{% endif %}") - a.navbar-item.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ current_user.email }}") - img.gravatar( - src="{{ current_user.gravatar }}", - class="{{ subscription }}", - alt="Avatar") - .special(class="{{ subscription }}") - | {% if subscription == 'subscriber' %} - i.pi-check - | {% elif subscription == 'demo' %} - i.pi-heart-filled - | {% else %} - i.pi-attention - | {% endif %} - - ul.dropdown-menu - | {% if not current_user.has_role('protected') %} - li.subscription-status(class="{{ subscription }}") - | {% if subscription == 'subscriber' %} - a.navbar-item( - href="{{url_for('users.settings_billing')}}" - title="View subscription info") - i.pi-grin - span Your subscription is active! - | {% elif subscription == 'demo' %} - a.navbar-item( - href="{{url_for('users.settings_billing')}}" - title="View subscription info") - i.pi-heart-filled - span You have a free account. - | {% else %} - a.navbar-item( - href="https://store.blender.org/product/membership/" - title="Renew subscription") - i.pi-unhappy - span.info Your subscription is not active. - span.renew Click here to renew. - | {% endif %} - - li - a.navbar-item( - href="{{ url_for('projects.home_project') }}" - title="Home") - i.pi-home - | Home - - li - a.navbar-item( - href="{{ url_for('projects.index') }}" - title="My Projects") - i.pi-star - | My Projects - - li - a.navbar-item( - href="{{ url_for('users.settings_profile') }}" - title="Settings") - i.pi-cog - | Settings - li - a.navbar-item( - href="{{ url_for('users.settings_billing') }}" - title="Billing") - i.pi-credit-card - | Subscription - li.divider(role="separator") - | {% endif %} - li - a.navbar-item( - href="{{ url_for('users.logout') }}") - i.pi-log-out(title="Log Out") - | Log out - - | {% else %} - li - a.navbar-item( - href="{{ url_for('users.login') }}", - title="Sign in") - i.pi-log-in - | {% endif %} - | {% block body %} #col_left #col_main