summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 7d368cbdf79dadd03a95ab5dc7c1bf19b45208da (plain)
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
{% extends "master.html" %}
{% block main %}
<div class="col-sm-12">
  <div id="welcome">
    {% if user.name %}
      <p>Welcome {{ user.fullname }}!</p>
    {% endif %}
  </div>
  <div id="content">
    {% if not user.name %}
      <p>Please <a href="{{ basepath }}/login">Log In</a>
    {% elif user.sites %}
      <p>Registered application shortcuts:</p>
        {% for site in user.sites %}
          <p><a href="{{ site.link }}">{{ site.name }}</a></p>
        {% endfor %}
    {% endif %}
  </div>
  <div id="authenticated">
    {% if user.name %}
      <p>
        {% if user.is_admin %}
          <a href="{{ basepath }}/admin" id="admin">Administration</a> |
        {% endif %}
        <a href="{{ basepath }}/logout" id="logout">Log Out</a>
      </p>
    {% endif %}
  </div>
</div>
{% endblock %}