Commit 835d08df410c370b12c89e08aea6f2b50b9bad39
1 parent
7c4c517c
Exists in
master
and in
79 other branches
Overrode plugin menu template
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
src/colab_spb_theme/templates/plugins/menu_template.html
0 → 100644
... | ... | @@ -0,0 +1,18 @@ |
1 | +{% for title, links in menu_links.items %} | |
2 | + {% if links|length == 1 %} | |
3 | + {% for colab_url in links %} | |
4 | + <li class="softwarepublico-item"> | |
5 | + <a href="{{ colab_url.url }}">{{ title }}</a> | |
6 | + </li> | |
7 | + {% endfor %} | |
8 | + {% else %} | |
9 | + <li class="dropdown softwarepublico-item"> | |
10 | + <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ title }} <b class="caret"></b></a> | |
11 | + <ul class="dropdown-menu"> | |
12 | + {% for colab_url in links %} | |
13 | + <li><a href="{{ colab_url.url }}">{{ colab_url.display }}</a></li> | |
14 | + {% endfor %} | |
15 | + </ul> | |
16 | + </li> | |
17 | + {% endif %} | |
18 | +{% endfor %} | ... | ... |