Debian Codegraph @

demo-flask/templates/index.html

raw symbols SCIP
1 {% extends "base.html" %}
2
3 {% block content %}
4
5 {% if errors %}
6 <div class="alert alert-danger" role="alert">
7 <strong>Errors:</strong>
8 <ul class="list-unstyled">
9 {% for err in errors %}
10 <li>{{err}}</li>
11 {% endfor %}
12 </ul>
13 {% if error_reason %}
14 <span>{{error_reason}}</span>
15 {% endif %}
16 </div>
17 {% endif %}
18
19 {% if not_auth_warn %}
20 <div class="alert alert-danger" role="alert">Not authenticated</div>
21 {% endif %}
22
23 {% if success_slo %}
24 <div class="alert alert-success" role="alert">Successfully logged out</div>
25 {% endif %}
26
27 {% if paint_logout %}
28 {% if attributes %}
29 <table class="table table-striped">
30 <thead>
31 <th>Name</th><th>Values</th>
32 </thead>
33 <tbody>
34 {% for attr in attributes %}
35 <tr><td>{{ attr.0 }}</td>
36 <td><ul class="list-unstyled">
37 {% for val in attr.1 %}
38 <li>{{ val }}</li>
39 {% endfor %}
40 </ul></td></tr>
41 {% endfor %}
42 </tbody>
43 </table>
44 {% else %}
45 <div class="alert alert-danger" role="alert">You don't have any attributes</div>
46 {% endif %}
47 <a href="?slo" class="btn btn-danger">Logout</a>
48 {% else %}
49 <a href="?sso" class="btn btn-primary">Login</a> <a href="?sso2" class="btn btn-info">Login and access to attrs page</a>
50 {% endif %}
51
52 {% endblock %}