| 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 |
{% end %} |
| 12 |
{% if error_reason %} |
| 13 |
<span>{{error_reason}}</span> |
| 14 |
{% end %} |
| 15 |
</ul> |
| 16 |
</div> |
| 17 |
{% end %} |
| 18 |
|
| 19 |
{% if not_auth_warn %} |
| 20 |
<div class="alert alert-danger" role="alert">Not authenticated</div> |
| 21 |
{% end %} |
| 22 |
|
| 23 |
{% if success_slo %} |
| 24 |
<div class="alert alert-success" role="alert">Successfully logged out</div> |
| 25 |
{% end %} |
| 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> |
| 36 |
<td>{{ attr[0] }}</td> |
| 37 |
<td><ul class="list-unstyled"> |
| 38 |
|
| 39 |
{% for elem in attr[1] %} |
| 40 |
<li>{{ elem }}</li> |
| 41 |
{% end %} |
| 42 |
</ul></td> |
| 43 |
</tr> |
| 44 |
{% end %} |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
</tbody> |
| 60 |
</table> |
| 61 |
{% else %} |
| 62 |
<div class="alert alert-danger" role="alert">You don't have any attributes</div> |
| 63 |
{% end %} |
| 64 |
<a href="?slo" class="btn btn-danger">Logout</a> |
| 65 |
{% else %} |
| 66 |
<a href="?sso" class="btn btn-primary">Login</a> <a href="?sso2" class="btn btn-info">Login and access to attrs page</a> |
| 67 |
{% end %} |
| 68 |
|
| 69 |
{% end %} |