Appearance: Remove markup and reuse template
Remove markup in the base.html template to render the Actions dropdown and use instead the built in navigation/generic_navigation.html template. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -63,14 +63,19 @@
|
||||
<span class="sr-only">{% trans 'Toggle Dropdown' %}</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{% for links_set in links %}
|
||||
{% for entry in links_set %}
|
||||
<li><a class="btn-sm" href="{{ entry.url }}">{{ entry.text }}</a></li>
|
||||
{% endfor %}
|
||||
{% for object_navigation_links in links %}
|
||||
{% with 'true' as as_li %}
|
||||
{% with 'true' as hide_active_anchor %}
|
||||
{% with 'btn-sm' as link_classes %}
|
||||
{% include 'navigation/generic_navigation.html' %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
|
||||
{% if not forloop.last and links_set %}
|
||||
{% if not forloop.last and object_navigation_links %}
|
||||
<li class="divider"></li>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user