mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-17 03:33:21 +00:00
85 lines
3.1 KiB
Django/Jinja
85 lines
3.1 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
{% block head %}
|
|
<title>{% block title %}{% trans %}Welcome!{% endtrans %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ static('core/base.css') }}">
|
|
<link rel="stylesheet" href="{{ static('core/form.css') }}">
|
|
<link rel="stylesheet" href="{{ static('core/style.css') }}">
|
|
<link rel="stylesheet" href="{{ static('core/multiple-select.css') }}">
|
|
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
|
{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
{% block header %}
|
|
{% if not popup %}
|
|
<div id="logo"><a href="{{ url('core:index') }}"><img src="{{ static('core/img/logo.png') }}"
|
|
alt="{% trans %}Logo{% endtrans %}" /></a></div>
|
|
<header>
|
|
{% if not user.is_authenticated() %}
|
|
<a href="{{ url('core:login') }}">{% trans %}Login{% endtrans %}</a> |
|
|
<a href="{{ url('core:register') }}">{% trans %}Register{% endtrans %}</a>
|
|
{% else %}
|
|
<a href="{{ url('core:user_profile', user_id=user.id) }}">{{ user.get_display_name() }}</a> |
|
|
<a href="{{ url('core:user_tools') }}">{% trans %}Tools{% endtrans %}</a> |
|
|
<a href="{{ url('core:logout') }}">{% trans %}Logout{% endtrans %}</a>
|
|
{% endif %}
|
|
</header>
|
|
{% else %}
|
|
<div id="popupheader">{{ user.get_display_name() }}</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block nav %}
|
|
{% if not popup %}
|
|
<nav>
|
|
<a href="{{ url('core:user_list') }}">{% trans %}Users{% endtrans %}</a>
|
|
<a href="{{ url('core:page', page_name="Index") }}">{% trans %}Wiki{% endtrans %}</a>
|
|
<a href="{{ url('core:page_list') }}">{% trans %}Pages{% endtrans %}</a>
|
|
<a href="{{ url('club:club_list') }}">{% trans %}Clubs{% endtrans %}</a>
|
|
<a href="{{ url('core:page', "services") }}">{% trans %}Services{% endtrans %}</a>
|
|
</nav>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
<div id="content">
|
|
{% if error %}
|
|
{{ error }}
|
|
{% endif %}
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
|
|
<footer>
|
|
{% block footer %}
|
|
{% trans %}Site made by good people{% endtrans %}
|
|
{% endblock %}
|
|
</footer>
|
|
<!--
|
|
{% block tests %}
|
|
{{ tests }}
|
|
{% endblock %}
|
|
-->
|
|
{% block script %}
|
|
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
|
<script src="{{ static('core/js/ui/jquery-ui.min.js') }}"></script>
|
|
<script src="{{ static('core/js/multiple-select.js') }}"></script>
|
|
<script src="{{ static('core/js/script.js') }}"></script>
|
|
<script>
|
|
$('.select_single').multipleSelect({
|
|
single: true,
|
|
{% if not popup %}
|
|
position: 'top',
|
|
{% endif %}
|
|
});
|
|
$('.select_multiple').multipleSelect({
|
|
filter: true,
|
|
{% if not popup %}
|
|
position: 'top',
|
|
{% endif %}
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|