Skip to content
Snippets Groups Projects
Commit c63b2834 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add option for sidebar navigation to open entry in new tab

parent eaf3ad1f
No related branches found
No related tags found
1 merge request!892Resolve "Allow items in menu bar to be automatically opened in new tab"
Pipeline #49386 passed
...@@ -12,6 +12,7 @@ Unreleased ...@@ -12,6 +12,7 @@ Unreleased
Added Added
~~~~~ ~~~~~
* Add option to open entry in new tab for sidebar navigation menu.
* Add preference for configuring the default phone number country code. * Add preference for configuring the default phone number country code.
* Admins recieve an mail for celery tasks with status "FAILURE" * Admins recieve an mail for celery tasks with status "FAILURE"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{% for item in core_menu %} {% for item in core_menu %}
{% if not item.submenu %} {% if not item.submenu %}
<li class="{% if item.selected %} active {% endif %}"> <li class="{% if item.selected %} active {% endif %}">
<a class="truncate" href="{{ item.url }}"> <a class="truncate" {% if item.new_tab %} target="_blank" {% endif %} href="{{ item.url }}">
{% if item.icon_class %} {% if item.icon_class %}
<i class="{{ item.icon_class }}"></i> <i class="{{ item.icon_class }}"></i>
{% elif item.icon %} {% elif item.icon %}
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
{% endif %} {% endif %}
{% if item.submenu %} {% if item.submenu %}
<li class="bold {% if item.selected %} active {% endif %}"> <li class="bold {% if item.selected %} active {% endif %}">
<a class="collapsible-header waves-effect waves-primary truncate" href="{{ item.url|default:"#" }}"> <a class="collapsible-header waves-effect waves-primary truncate" {% if item.new_tab %} target="_blank" {% endif %} href="{{ item.url|default:"#" }}">
{% if item.icon_class %} {% if item.icon_class %}
<i class="{{ item.icon_class }}"></i> <i class="{{ item.icon_class }}"></i>
{% elif item.icon %} {% elif item.icon %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment