From a2f40bc59f11e5609202850118bf6f16a4567b46 Mon Sep 17 00:00:00 2001 From: Leo Fahrbach <leo.fahrbach@tum.de> Date: Tue, 18 Oct 2022 23:00:42 +0200 Subject: [PATCH] Fix application button and picture display. Closes #43 --- vote/templates/vote/index_election_item.html | 5 ++--- vote/templates/vote/vote.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/vote/templates/vote/index_election_item.html b/vote/templates/vote/index_election_item.html index a1b118e..6cde1df 100644 --- a/vote/templates/vote/index_election_item.html +++ b/vote/templates/vote/index_election_item.html @@ -8,9 +8,8 @@ <a class="btn btn-danger float-right ml-3" href="{% url 'vote:delete_own_application' election.pk %}"> Delete application </a> {% endif %} - <a class="btn btn-dark float-right" href="{% url 'vote:apply' election.pk %}"> {% if edit %} Edit application {% - else %} - Apply {% endif %}</a> + <a class="btn btn-dark float-right" href="{% url 'vote:apply' election.pk %}"> {% if edit %} Edit application + {% else %} Apply {% endif %}</a> {% endif %} </h4> {% if election.end_date %} diff --git a/vote/templates/vote/vote.html b/vote/templates/vote/vote.html index 4d8ac08..d540993 100644 --- a/vote/templates/vote/vote.html +++ b/vote/templates/vote/vote.html @@ -66,7 +66,7 @@ <div class="row no-gutters"> {% if field.application.avatar %} <div class="col-3"> - <img src="{{ field.application.avatar.url }}" class="card-img" alt="applicant-picture"> + <img src="{{ field.application.avatar.url }}" alt="applicant-picture"> </div> {% endif %} <div class="col-9"> -- GitLab