fix: Navbar
This commit is contained in:
parent
20fc9e659a
commit
e2d3b54cc3
2 changed files with 6 additions and 10 deletions
|
|
@ -68,15 +68,15 @@
|
|||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right" id="toolbar-help" role="menu">
|
||||
<div class="divider documentation-links"></div>
|
||||
{% for item in navbar_items.help_dropdown %}
|
||||
{% for item in navbar_settings.help_dropdown %}
|
||||
{% if (!item.hidden) { %}
|
||||
{% if (item.route) { %}
|
||||
<a class="dropdown-item" href="{{ item.route }}">
|
||||
{%= __(item.label) %}
|
||||
{%= __(item.item_label) %}
|
||||
</a>
|
||||
{% } else if (item.action) { %}
|
||||
<a class="dropdown-item" onclick="return {{ item.action }}">
|
||||
{%= __(item.label) %}
|
||||
{%= __(item.item_label) %}
|
||||
</a>
|
||||
{% } else { %}
|
||||
<div class="dropdown-divider"></div>
|
||||
|
|
@ -90,15 +90,15 @@
|
|||
{{ avatar }}
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right" id="toolbar-user" role="menu">
|
||||
{% for item in navbar_items.settings_dropdown %}
|
||||
{% for item in navbar_settings.settings_dropdown %}
|
||||
{% if (!item.hidden) { %}
|
||||
{% if (item.route) { %}
|
||||
<a class="dropdown-item" href="{{ item.route }}">
|
||||
{%= __(item.label) %}
|
||||
{%= __(item.item_label) %}
|
||||
</a>
|
||||
{% } else if (item.action) { %}
|
||||
<a class="dropdown-item" onclick="return {{ item.action }}">
|
||||
{%= __(item.label) %}
|
||||
{%= __(item.item_label) %}
|
||||
</a>
|
||||
{% } else { %}
|
||||
<div class="dropdown-divider"></div>
|
||||
|
|
|
|||
|
|
@ -228,10 +228,6 @@ def add_standard_navbar_items():
|
|||
]
|
||||
|
||||
standard_help_items = [
|
||||
{
|
||||
'item_type': 'Separator',
|
||||
'is_standard': 1
|
||||
},
|
||||
{
|
||||
'item_label': 'About',
|
||||
'item_type': 'Action',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue