diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-30 14:06:38 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-30 14:06:38 +0100 |
commit | d2ae102b5f0bf4d32e94a2e52ba731b17b3ec57e (patch) | |
tree | 6f5488e715b77e96575c18a911491bb1ac2275fa /ishtar_common/templates/blocks/action_list.html | |
parent | e429e2cbe5d65484721a799025c44a06c8acdc7e (diff) | |
download | Ishtar-d2ae102b5f0bf4d32e94a2e52ba731b17b3ec57e.tar.bz2 Ishtar-d2ae102b5f0bf4d32e94a2e52ba731b17b3ec57e.zip |
UI: put actions on a top menu
Diffstat (limited to 'ishtar_common/templates/blocks/action_list.html')
-rw-r--r-- | ishtar_common/templates/blocks/action_list.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/action_list.html b/ishtar_common/templates/blocks/action_list.html new file mode 100644 index 000000000..50a6554c4 --- /dev/null +++ b/ishtar_common/templates/blocks/action_list.html @@ -0,0 +1,12 @@ +<li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" + data-toggle="dropdown" href="#" role="button" aria-haspopup="true" + aria-expanded="false">{{section_label}}</a> + + <div class="dropdown-menu"> + {% for label, url, has_children in sections %} + <a class="dropdown-item{% if has_children%} font-weight-bold{%endif%}" href="{{url}}"> + {{ label }} + </a>{% endfor %} + </div> +</li> |