Gitlab CSE Unil

home.html 2.89 KB
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
{% extends "base.html" %}
{% load static i18n %}

{% block page_head %}{% endblock %}

6
7
8
9
10
11
12
13
{% block navbar_right_content %}
    {{ block.super }}
    <li>
        <p class="navbar-text">&nbsp;&nbsp;&nbsp;</p>
    </li>
{% endblock %}


Julien Furrer's avatar
Julien Furrer committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% 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>
33
</div>
Julien Furrer's avatar
Julien Furrer committed
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
<div id="main-footer">
    <div class="container">
        <div class="row">
            <div class="col-sm-4">
                <a href="http://www.unil.ch/" class="logo unilogo-unil"></a>
            </div>
            <div class="col-sm-4">
                <ul class="list-unstyled small">
                    <li><a href="contacts.html">
                        <span class="glyphicon glyphicon-envelope"></span>&nbsp;
                        Contacts</a></li>
                    <li><a href="credits.html">
                        <span class="glyphicon glyphicon-glass"></span>&nbsp;
                        Credits
                    </a></li>
                    <li><a href="legal_info.html">
                        <span class="glyphicon glyphicon-briefcase"></span>&nbsp;
                        Informations légale
                    </a></li>
                </ul>
            </div>
            <div class="col-sm-4">
                <p class="text-right small">© 2014 Unil &mdash; <a href="http://www.unil.ch/">Université de Lausanne</a> <br>
{#                    <a href="/thinkcloud/legal_info/">Some rights reverved</a>#}
                </p>
            </div>
        </div>
    </div>
Julien Furrer's avatar
Julien Furrer committed
63
</div>
64

65
{#    <iframe sandbox="allow-same-origin" src="{% url "shib-login" %}" width="0" height="0"></iframe>#}
66

Julien Furrer's avatar
Julien Furrer committed
67
68
69
70
71
72
73
74
{% 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>
75
76
77

    {% if user.is_anonymous %}<script>
    if (document.location.search.match(/next=/)) {
78
79
80
81
82
83
84
        $.get("{% url "shib-display" %}")
            .fail(function(){ })
            .done(function(){
                document.location.assign("{% url "shib-login" %}" + document.location.search);
            });
    }
    </script>
85
    {% endif %}
86

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