Skip to content

Commit

Permalink
Restore the submenu visibility check on main.mako
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Jul 24, 2018
1 parent 4363ffe commit 5b96019
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions themes-default/slim/views/layouts/main.mako
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
<div id="checkboxControlsBackground" class="shadow" style="display: none"></div>

<app-header></app-header>
% if submenu:
<submenu></submenu>
% endif
<%include file="/partials/alerts.mako"/>
<div id="content-row" class="row">
<div v-if="globalLoading" class="text-center ${'col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1' if not app.LAYOUT_WIDE else 'col-lg-12 col-md-12'} col-sm-12 col-xs-12">
Expand Down
2 changes: 1 addition & 1 deletion themes-default/slim/views/vue-components/submenu.mako
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/x-template" id="submenu-template">
<%text>
<div v-if="submenu.length !== 0" id="sub-menu-container" class="row shadow">
<div id="sub-menu-container" class="row shadow">
<div id="sub-menu" class="submenu-default hidden-print col-md-12">
<template v-for="menuItem in submenu">
<app-link :key="menuItem.title" :href="menuItem.path" class="btn-medusa top-5 bottom-5"
Expand Down
2 changes: 2 additions & 0 deletions themes/dark/templates/layouts/main.mako
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
<div id="checkboxControlsBackground" class="shadow" style="display: none"></div>

<app-header></app-header>
% if submenu:
<submenu></submenu>
% endif
<%include file="/partials/alerts.mako"/>
<div id="content-row" class="row">
<div v-if="globalLoading" class="text-center ${'col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1' if not app.LAYOUT_WIDE else 'col-lg-12 col-md-12'} col-sm-12 col-xs-12">
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/templates/vue-components/submenu.mako
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/x-template" id="submenu-template">
<%text>
<div v-if="submenu.length !== 0" id="sub-menu-container" class="row shadow">
<div id="sub-menu-container" class="row shadow">
<div id="sub-menu" class="submenu-default hidden-print col-md-12">
<template v-for="menuItem in submenu">
<app-link :key="menuItem.title" :href="menuItem.path" class="btn-medusa top-5 bottom-5"
Expand Down
2 changes: 2 additions & 0 deletions themes/light/templates/layouts/main.mako
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
<div id="checkboxControlsBackground" class="shadow" style="display: none"></div>

<app-header></app-header>
% if submenu:
<submenu></submenu>
% endif
<%include file="/partials/alerts.mako"/>
<div id="content-row" class="row">
<div v-if="globalLoading" class="text-center ${'col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1' if not app.LAYOUT_WIDE else 'col-lg-12 col-md-12'} col-sm-12 col-xs-12">
Expand Down
2 changes: 1 addition & 1 deletion themes/light/templates/vue-components/submenu.mako
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/x-template" id="submenu-template">
<%text>
<div v-if="submenu.length !== 0" id="sub-menu-container" class="row shadow">
<div id="sub-menu-container" class="row shadow">
<div id="sub-menu" class="submenu-default hidden-print col-md-12">
<template v-for="menuItem in submenu">
<app-link :key="menuItem.title" :href="menuItem.path" class="btn-medusa top-5 bottom-5"
Expand Down

0 comments on commit 5b96019

Please sign in to comment.