1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-29 20:31:10 +02:00

Update homepage to new theme

This commit is contained in:
Alexandre Iooss
2019-08-03 13:25:58 +02:00
parent 3509491076
commit 0b42060c51
7 changed files with 124 additions and 155 deletions

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-02 15:17+0200\n"
"POT-Creation-Date: 2019-08-03 13:24+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -13,11 +13,31 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: templates/admin/base_site.html:22
#: templates/admin/base_site.html:23
msgid "Welcome,"
msgstr ""
#: templates/admin/base_site.html:27 templates/registration/logged_out.html:9
#: templates/admin/base_site.html:29
msgid "My profile"
msgstr "Mon profil"
#: templates/admin/base_site.html:41 templates/admin/base_site.html:60
msgid "View admin"
msgstr "Administration"
#: templates/admin/base_site.html:53
msgid "Documentation"
msgstr ""
#: templates/admin/base_site.html:62
msgid "Log out"
msgstr ""
#: templates/admin/base_site.html:64 templates/registration/login.html:8
msgid "Log in"
msgstr ""
#: templates/registration/logged_out.html:9
#: templates/registration/password_change_done.html:9
#: templates/registration/password_change_form.html:9
#: templates/registration/password_reset_complete.html:9
@ -27,18 +47,6 @@ msgstr ""
msgid "Home"
msgstr ""
#: templates/admin/base_site.html:32 templates/admin/base_site.html:51
msgid "View admin"
msgstr "Administration"
#: templates/admin/base_site.html:44
msgid "Documentation"
msgstr ""
#: templates/admin/base_site.html:53
msgid "Log out"
msgstr ""
#: templates/registration/logged_out.html:14
msgid "Thanks for spending some quality time with the Web site today."
msgstr ""
@ -47,10 +55,6 @@ msgstr ""
msgid "Log in again"
msgstr ""
#: templates/registration/login.html:8
msgid "Log in"
msgstr ""
#: templates/registration/password_change_done.html:9
#: templates/registration/password_change_form.html:9
msgid "Password change"

View File

@ -9,7 +9,7 @@
/* Colors */
#header {
background-color: #151515;
border-bottom: solid 5px #d8660f;
border-bottom: solid 5px #ff4541;
}
.module h2, .module caption, .inline-group h2 {
@ -151,4 +151,11 @@ input[type=button]:focus, .button:hover, input[type=submit]:hover, input[type=bu
/* Login page background */
body.login {
background: linear-gradient(-225deg, #FFE29F 0%, #ffb7b7 48%, #ff8477 100%) fixed !important;
}
img.poulpy {
display: block;
max-width: 100%;
width: 1000px;
height: auto;
}

View File

@ -17,15 +17,23 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% endblock %}
{% block usertools %}
{% if user.is_authenticated %}
<div id="user-tools">
{% block welcome-msg %}
<div id="user-tools">
{% block welcome-msg %}
{% if user.is_authenticated %}
{% trans 'Welcome,' %}
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
{% endblock %}
{% block userlinks %}
{# Link to our apps outside of admin #}
<a href="{% url 'index' %}">{% trans 'Home' %}</a> /
{% endif %}
{% endblock %}
{% block userlinks %}
{# Link to our apps outside of admin #}
<a href="{% url "users:mon-profil" %}">{% trans 'My profile' %}</a> /
<a href="{% url "media:index" %}">Media</a> /
{% if user.is_authenticated %}
{% if is_perm %}
<a href="{% url "users:index" %}">Utilisateurs</a> /
<a href="{% url "logs:index" %}">Statistiques</a> /
{% endif %}
{% if available_apps %}
{# When in admin site, list all admin pages and documentation #}
@ -52,9 +60,11 @@ SPDX-License-Identifier: GPL-3.0-or-later
<a href="{% url 'admin:index' %}">{% trans 'View admin' %}</a> /
{% endif %}
<a href="{% url 'logout' %}">{% trans 'Log out' %}</a>
{% endblock %}
</div>
{% endif %}
{% else %}
<a href="{% url 'login' %}">{% trans 'Log in' %}</a>
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% block extrastyle %}