File: frontpage_config.twig

package info (click to toggle)
simplesamlphp 1.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,240 kB
  • sloc: php: 200,806; javascript: 15,025; xml: 3,336; sh: 265; perl: 82; makefile: 70; python: 5
file content (56 lines) | stat: -rw-r--r-- 2,082 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
{% set pagetitle = '{core:frontpage:page_title}'|trans %}
{% set frontpage_section = 'config' %}
{% extends "base.twig" %}

{% block content %}
    {% include "@core/_frontpage_menu.twig" %}

    <div>
        <code class="simplesaml_version">{{ directory }} ({{ version }})</code>
    </div>

    {% set icon_enabled = '<i class="fa fa-check"></i>' %}
    {% set icon_disabled = '<i class="fa fa-ban"></i>' %}

    <div class="enablebox mini">
        <table>
	    <tr class="{%- if enablematrix.saml20idp %}enabled{% else %}disabled{% endif -%}">
                <td>SAML 2.0 IdP</td>
                <td>{%- if enablematrix.saml20idp %}{{ icon_enabled|raw }}{% else %}{{ icon_disabled|raw }}{% endif -%}</td>
            </tr>
	    <tr class="{%- if enablematrix.shib13idp %}enabled{% else %}disabled{% endif -%}">
                <td>Shib 1.3 IdP</td>
                <td>{%- if enablematrix.shib13idp %}{{ icon_enabled|raw }}{% else %}{{ icon_disabled|raw }}{% endif -%}</td>
            </tr>
        </table>
    </div>

    <h2>{{ '{core:frontpage:configuration}'|trans }}</h2>
    <ul>
        {% for key, link in links_config %}
        <li><a href="{{ link.href|escape('html') }}">{{ link.text|trans|escape('html') }}</a></li>
        {% endfor %}
    </ul>

    {% if warnings is defined and warnings is not empty %}
    <h2>{{ '{core:frontpage:warnings}'|trans|escape('html') }}</h2>
    {% for key, warning in warnings %}
    <div class="caution">{{ warning|trans|raw }}</div>
    {% endfor %}
    {% endif %}

    {% if isadmin %}
    <h2>{{ '{core:frontpage:checkphp}'|trans }}</h2>
    <div class="enablebox">
        <table>
        {% for key, func in funcmatrix %}
	    <tr class="{%- if func.enabled %}enabled{% else %}disabled{% endif -%}">
                <td>{%- if func.enabled %}{{ icon_enabled|raw }}{% else %}{{ icon_disabled|raw }}{% endif -%}</td>
                <td>{{ requiredmap[func.required]|trans }}</td>
                <td>{{ func.descr }}</td>
            </tr>
        {% endfor %}
        </table>
    </div>
    {% endif %}
{% endblock %}