fix
[cas.git] / src / services / templates / services / service_detail.html
1 {% extends "services/base.html" %}
2 {% load i18n %}
3
4
5 {% block accounts-content %}
6   <h1>{% translate "Service" %}: {{ service.name }}</h1>
7
8   {% if service.url %}
9     {{ service.url }}
10   {% endif %}
11
12   {% if service.uses_ssh %}
13     {% url 'ssh_keys' as url_ssh_keys %}
14     {% if request.user.sshkey_set.exists %}
15       {% blocktrans %}
16         This service will use your <a href="{{ url_ssh_keys}}">SSH keys.</a>
17       {% endblocktrans %}
18     {% else %}
19       <div class="alert alert-warning">
20         {% blocktrans %}
21           This service uses SSH keys.
22           You can add one in the <a href="{{ url_ssh_keys }}">SSH keys</a> section.
23         {% endblocktrans %}
24       </div>
25     {% endif %}
26   {% endif %}
27
28   {{ service.description|safe|linebreaks }}
29 {% endblock %}