Gitlab CSE Unil

home.html 1.4 KB
Newer Older
Julien Furrer's avatar
Julien Furrer committed
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
{% extends "base.html" %}
{% load static i18n %}

{% block page_head %}{% endblock %}

{% block main_content %}
<div class="container" id="home-container">
    <div class="row">
        <div class="col-sm-8">
            <div id="home-content" style="border: 5px solid #999;border-radius: 30px;min-height: 300px;"></div>
        </div>
        <div class="col-sm-4">
        {% if user.is_anonymous %}
            {% include "adim_app/login.inc.html" %}
        {% else %}
            <div class="text-center">
                <br/><br/><br/><br/>
            <a href="{% url "adim.app:annotate-new" %}" class="btn btn-info btn-lg btn-block">
                Annoter &blacktriangleright;
            </a>
            </div>
        {% endif %}
        </div>
    </div>

</div>
{% endblock main_content %}

{% block main_container %}{% endblock %}

{% block content_js %}
    {{ block.super }}
    <script src="{% static "js/libs/jquery.min.js" %}"></script>
    <script src="{% static "js/libs/bootstrap.min.js" %}"></script>
35
36
37
38
39
40
41
42
43
44
    <script>
    if (document.location.search) {
        $.get("{% url "shib-display" %}")
            .fail(function(){ })
            .done(function(){
                document.location.assign("{% url "shib-login" %}" + document.location.search);
            });
    }
    </script>

Julien Furrer's avatar
Julien Furrer committed
45
46
{#    <script src="{% static "js/libs/require.min.js" %}" data-main="{% static "js/su_app" %}"></script>#}
{% endblock %}