Mercurial > farol > farol
comparison farol/templates/base.j2 @ 125:67c4b299736e
Update look-and-feel
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Thu, 23 Oct 2014 16:18:30 +0200 |
parents | ce64f90e58c4 |
children | 3a56d5501ffa |
comparison
equal
deleted
inserted
replaced
120:98cf4a6457f4 | 125:67c4b299736e |
---|---|
63 <ul class="dropdown-menu" role="menu"> | 63 <ul class="dropdown-menu" role="menu"> |
64 <li role="presentation"> | 64 <li role="presentation"> |
65 <a role="menuitem" tabindex="-1" href="{{ url_for('producttree.view') }}">View Product Tree</a> | 65 <a role="menuitem" tabindex="-1" href="{{ url_for('producttree.view') }}">View Product Tree</a> |
66 </li> | 66 </li> |
67 <li role="presentation" class="divider"></li> | 67 <li role="presentation" class="divider"></li> |
68 {% for name, productid in products %} | 68 {% for name, productid in products | sort %} |
69 <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ name }}</a></li> | 69 <li><a href="{{ url_for('producttree.view_product', productid=productid) }}">{{ name }}</a></li> |
70 {% endfor %} | 70 {% endfor %} |
71 </ul> | 71 </ul> |
72 </li> | 72 </li> |
73 {% endif %} | 73 {% endif %} |
82 </li> | 82 </li> |
83 {% endif %} | 83 {% endif %} |
84 </ul> | 84 </ul> |
85 {% if has_current %} | 85 {% if has_current %} |
86 {% if error %} | 86 {% if error %} |
87 <p class="navbar-text">Document is <a id="error-popover" href="#" tabindex="0" class="navbar-link" data-toggle="popover" data-trigger="focus" data-placement="bottom" title="First Error:" data-content="{{ error }}"><strong>invalid</strong></a></p> | 87 <p class="navbar-text">Document is <a id="error-popover" href="#" tabindex="0" class="navbar-link" data-toggle="popover" data-trigger="focus" data-placement="bottom" title="First Error:" data-content="{{ error }}"><strong>invalid</strong></a> <span class="badge progress-bar-danger"><strong>✗</strong></span></p> |
88 {% else %} | 88 {% else %} |
89 <p class="navbar-text">Document looks valid</p> | 89 <p class="navbar-text">Document looks valid <span class="badge progress-bar-success"><strong>✓</strong></span></p> |
90 {% endif %} | 90 {% endif %} |
91 {% endif %} | 91 {% endif %} |
92 <ul class="nav navbar-nav navbar-right"> | 92 <ul class="nav navbar-nav navbar-right"> |
93 {% if has_current %} | 93 {% if has_current %} |
94 <li class="dropdown{{ ' active' if active == 'render' }}"> | 94 <li class="dropdown{{ ' active' if active == 'render' }}"> |
95 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Render <span class="caret"></span></a> | 95 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Export <span class="caret"></span></a> |
96 <ul class="dropdown-menu" role="menu"> | 96 <ul class="dropdown-menu" role="menu"> |
97 {% for format in ('cvrf', 'nasl', 'oval') %}<li><a href="{{ url_for('render', format_=format)}}">as {{ format | upper }}</a></li>{% endfor %} | 97 {% for format in ('cvrf', 'nasl', 'oval') %}<li><a href="{{ url_for('render', format_=format)}}">as {{ format | upper }}</a></li>{% endfor %} |
98 </ul> | 98 </ul> |
99 </li> | 99 </li> |
100 {% endif %} | 100 {% endif %} |