Skip to content
Snippets Groups Projects
Commit b5b519ce authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '608-allow-items-in-menu-bar-to-be-automatically-opened-in-new-tab' into 'master'

Resolve "Allow items in menu bar to be automatically opened in new tab"

Closes #608

See merge request !892
parents 0d755c08 c63b2834
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 #49408 failed
......@@ -12,6 +12,7 @@ Unreleased
Added
~~~~~
* Add option to open entry in new tab for sidebar navigation menu.
* Add preference for configuring the default phone number country code.
* Persons and groups now have two image fields: official photo and public avatar
* Admins recieve an mail for celery tasks with status "FAILURE"
......
......@@ -9,7 +9,7 @@
{% for item in core_menu %}
{% if not item.submenu %}
<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 %}
<i class="{{ item.icon_class }}"></i>
{% elif item.icon %}
......@@ -25,7 +25,7 @@
{% endif %}
{% if item.submenu %}
<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 %}
<i class="{{ item.icon_class }}"></i>
{% 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