From b19592303b177d09514370250bbcb0a0a6fbd82f Mon Sep 17 00:00:00 2001 From: Zdenek Kubala <zkubala@suse.com> Date: Tue, 7 Sep 2021 19:51:45 +0200 Subject: [PATCH] fix container home + reg form --- .../registration_complete.html | 6 +++ sifrovacka/templates/home.html | 48 ++++++++++--------- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/sifrovacka/templates/django_registration/registration_complete.html b/sifrovacka/templates/django_registration/registration_complete.html index 6fea988..3d9c7f0 100644 --- a/sifrovacka/templates/django_registration/registration_complete.html +++ b/sifrovacka/templates/django_registration/registration_complete.html @@ -1,10 +1,16 @@ {% extends "django_registration/registration_base.html" %} {% load i18n %} +{% block title %} Registrace dokonÄŤena {% endblock %} +{% comment %} {% block title %}{% trans "Activation email sent" %}{% endblock %} +{% endcomment %} {% block content %} +<p> Registrace byla dokonÄŤena. </p> +{% comment %} <p>{% trans "Please check your email to complete the registration process." %}</p> +{% endcomment %} {% endblock %} diff --git a/sifrovacka/templates/home.html b/sifrovacka/templates/home.html index 550c295..cb3cd74 100644 --- a/sifrovacka/templates/home.html +++ b/sifrovacka/templates/home.html @@ -1,28 +1,30 @@ {% extends "base.html" %} -{% if request.user.is_authenticated %} - {% block content %} - {% if error_alreadysigned %} - <div class="alert alert--yellow-400"> - <span> K Ĺ ifrovaÄŤce jste jiĹľ pĹ™ihlášeni </span> - </div> - {% endif %} - <ul> - <p> <b>DostupnĂ© šifrovaÄŤky: </b> <a href={% url 'index' %}> Zde </a></p> -{% comment %} -{% endcomment %} - - {% if participation_sifrovacky_list %} +{% block content %} + {% if request.user.is_authenticated %} + <div class="container container--default"> + {% if error_alreadysigned %} + <div class="alert alert--yellow-400"> + <span> K Ĺ ifrovaÄŤce jste jiĹľ pĹ™ihlášeni </span> + </div> + {% endif %} <ul> - <h1 class="head-alt-sm">PĹ™ihlášenĂ© šifrovaÄŤky </h1> - {% for sifrovacka in participation_sifrovacky_list %} - <li><a href={% url 'detail' sifrovacka.sifrovacka_id %}>{{ sifrovacka }}</a></li> - {% endfor %} - </ul> - {% else %} - <p>ŽádnĂ© šifrovaÄŤky nemáte aktivnĂ.</p> - {% endif %} - {% endblock %} -{{% endif %} + <p> <b>DostupnĂ© šifrovaÄŤky: </b> <a href={% url 'index' %}> Zde </a></p> + {% comment %} + {% endcomment %} + + {% if participation_sifrovacky_list %} + <ul> + <h1 class="head-alt-sm">PĹ™ihlášenĂ© šifrovaÄŤky </h1> + {% for sifrovacka in participation_sifrovacky_list %} + <li><a href={% url 'detail' sifrovacka.sifrovacka_id %}>{{ sifrovacka }}</a></li> + {% endfor %} + </ul> + {% else %} + <p>ŽádnĂ© šifrovaÄŤky nemáte aktivnĂ.</p> + {% endif %} + </div> + {% endif %} +{% endblock %} {% comment %} {% block content %} -- GitLab