diff --git a/photo21/static/layout.css b/photo21/static/layout.css new file mode 100644 index 0000000..72c7b37 --- /dev/null +++ b/photo21/static/layout.css @@ -0,0 +1,37 @@ +/* Login view */ +.login { + max-width: 35rem; +} +.login .asteriskField { + display: none; +} +.login .form-group { + margin-top: 0.5em; +} + +/* Upload view */ +.upload-drop-zone { + height: 10em; + line-height: 10em; + border-width: 2px; + color: #a3a3a3; + border-style: dashed; + border-color: #a3a3a3; + border-radius: 0.5em; + text-align: center; + margin-bottom: 0.5em; +} +.upload-drop-zone.drop { + color: #222; + border-color: #222; + background-color: rgba(163, 163, 163, 0.274); +} + +/* Language selector */ +.lang-select { + border: none; + background: none; + color: inherit; + cursor: pointer; + text-decoration: underline; +} diff --git a/photo21/templates/account/base.html b/photo21/templates/account/base.html index 99e3781..416d47e 100644 --- a/photo21/templates/account/base.html +++ b/photo21/templates/account/base.html @@ -6,10 +6,3 @@ SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} {% block title %}{% block head_title %}{% endblock %}{% endblock title %} - -{% block extracss %} - -{% endblock %} \ No newline at end of file diff --git a/photo21/templates/account/login.html b/photo21/templates/account/login.html index 18d46b2..db32d3d 100644 --- a/photo21/templates/account/login.html +++ b/photo21/templates/account/login.html @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {% block head_title %}{% trans "Sign In" %}{% endblock %} {% block content %} -
+

{% trans "Sign In" %}

diff --git a/photo21/templates/base.html b/photo21/templates/base.html index 85985e9..1d04bc6 100644 --- a/photo21/templates/base.html +++ b/photo21/templates/base.html @@ -16,6 +16,7 @@ SPDX-License-Identifier: GPL-3.0-or-later + @@ -109,9 +110,25 @@ SPDX-License-Identifier: GPL-3.0-or-later {% endblock %}
-

- {% trans "Source code" %} -

+
+ {% csrf_token %} +

+ {% if request.user.is_authenticated %} + {% trans "Connected as" %} {{ request.user.username }} · + {% endif %} + {% trans "Source code" %} · + + +

+
diff --git a/photo21/templates/index.html b/photo21/templates/index.html index 2fb0ac6..dd0f63a 100644 --- a/photo21/templates/index.html +++ b/photo21/templates/index.html @@ -48,22 +48,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% endfor %}
- -
- - {% trans "Connected as" %} {{ request.user.username }}. -
- {% csrf_token %} - {% trans "Select another language:" %} - - -
{% endblock %} diff --git a/photologue/templates/photologue/upload.html b/photologue/templates/photologue/upload.html index 6b49a68..601fdad 100644 --- a/photologue/templates/photologue/upload.html +++ b/photologue/templates/photologue/upload.html @@ -7,27 +7,6 @@ SPDX-License-Identifier: GPL-3.0-or-later {% load i18n crispy_forms_tags %} {% block title %}{% trans "Upload" %}{% endblock %} -{% block extracss %} - -{% endblock %} - {% block extrajs %}