Gitlab CSE Unil

home.html 3.4 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
{% block body_class %}home{% endblock %}

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


Julien Furrer's avatar
Julien Furrer committed
16
{% block main_content %}
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
<div id="home-container">
    <div class="container">
        <div class="row">
            <div class="col-sm-9">
                <h1>ADIM &nbsp;&nbsp;<small>Un outil d'annotation d'images pour l'enseignement</small></h1>
            </div>
            <div class="col-sm-3 well well-sm" id="home-action-box">
            {% if user.is_anonymous %}
                {% include "adim_app/login.inc.html" %}
            {% else %}
                <a href="{% url "adim.app:annotate-new" %}"
                   class="btn btn-lg btn-success btn-block">
                    <span class="glyphicon glyphicon-pencil"></span>&nbsp;
                    Annoter &blacktriangleright;
                </a>
            {% endif %}
            </div>
        </div>


        <div class="row">
            <div class="col-sm-12">
                <div id="home-image">
                    <img src="{% static "img/image-home.jpg" %}">
                </div>
            </div>
Julien Furrer's avatar
Julien Furrer committed
43
        </div>
44
45
46
        <div class="row">
            <div class="col-sm-12">
                <div id="home-content"></div>
Julien Furrer's avatar
Julien Furrer committed
47
48
49
            </div>
        </div>
    </div>
50
</div>
Julien Furrer's avatar
Julien Furrer committed
51

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<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
80
</div>
81

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

Julien Furrer's avatar
Julien Furrer committed
84
85
86
87
88
89
90
91
{% 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>
92
93
94

    {% if user.is_anonymous %}<script>
    if (document.location.search.match(/next=/)) {
95
96
97
98
99
100
101
        $.get("{% url "shib-display" %}")
            .fail(function(){ })
            .done(function(){
                document.location.assign("{% url "shib-login" %}" + document.location.search);
            });
    }
    </script>
102
    {% endif %}
103

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