File: status.twig

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (80 lines) | stat: -rw-r--r-- 2,636 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{% set pagetitle = 'SimpleSAMLphp installation page'|trans %}
{% set frontpage_section = 'test' %}
{% extends "base.twig" %}

{% block content %}
    {%- include "@admin/includes/menu.twig" %}

    <p>{% trans %}Hi, this is the status page of SimpleSAMLphp. Here you can see if your session is timed out, how long
     it lasts until it times out and all the attributes that are attached to your session.{% endtrans %}</p>

    <h2>{{ '{status:attributes_header}'|trans }}</h2>

    {{ attributesHtml|raw }}

    {%- if nameid or authData %}

    <h2>{% trans %}Technical information{% endtrans %}</h2>
    {% endif %}
    {%- if nameid %}

    <h3>{% trans %}SAML Subject{% endtrans %}</h3>
      {%  set items = {'NameId' : nameid.value} %}

      {% if not nameid.value %}
        {%  set items = items|merge({'NameID' : 'not set'|trans}) %}
      {% endif %}

      {% if nameid.Format %}
        {% set items = items|merge({('Format'|trans) : nameid.Format}) %}
      {% endif %}

      {% if nameid.NameQualifier %}
        {% set items = items|merge({'NameQualifier' : nameid.NameQualifier}) %}
      {% endif %}

      {% if nameid.SPNameQualifier %}
        {% set items = items|merge({'SPNameQualifier' : nameid.SPNameQualifier}) %}
      {% endif %}

      {% if nameid.SPProvidedID %}
        {% set items = items|merge({'SPProvidedID' : nameid.SPProvidedID}) %}
      {%- endif %}

    <table id="table_with_attributes"  class="attributes pure-table pure-table-striped pure-table-attributes"
           summary="{% trans %}SAML Subject{% endtrans %}">
      {%- for name, value in items %}

      <tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
        <td class="attrname">{{ name }}</td>
        <td class="attrvalue">{{ value }}</td>
      </tr>
      {%- endfor %}

    </table>
    <br/>
    {% endif %}

    {% if authData %}
    <details>
    <summary>{% trans %}Authentication data{% endtrans %}</summary>
    <div class="code-box hljs">
      <div class="pure-button-group top-right-corner">
        <a class="pure-button copy hljs" data-clipboard-target="#auth-data"
           title="{% trans %}Copy to clipboard{% endtrans %}"><span class="fa fa-copy"></span></a>
      </div>
      <code id="auth-data" class="code-box-content json">
        {{- authData|json_encode(constant("JSON_PRETTY_PRINT") b-or constant("JSON_UNESCAPED_SLASHES")) }}
      </code>
    </div>
    </details>
    <br/>
    {% endif %}

    {%- if logouturl %}

    <div class="center">
      <a class="pure-button pure-button-red" href="{{ logouturl }}">{{ '{status:logout}'|trans }}</a>
    </div>
    {%- endif %}
{% endblock %}