Skip to content

Commit

Permalink
Correct html titles for emails app (#3627)
Browse files Browse the repository at this point in the history
This is part of Task 2 under issue
#3556 aiming to make
sure the titles are clear and correct.

Each app will have a PR to make sure titles are clear and correct for
all pages that have breadcrumbs as described in issue
#3556
  • Loading branch information
ammar257ammar authored Oct 21, 2024
1 parent 315f32a commit 31a9186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/grandchallenge/emails/templates/emails/email_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load crispy_forms_tags %}

{% block title %}
{% if object %}Update{% else %}Create{% endif %} -{% if object %} {{ object }} -{% endif %} {{ block.super }}
{{ object|yesno:"Update,Create Email" }} {% if object %} - {{ object }} {% else %} - Emails {% endif %} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
Expand All @@ -11,7 +11,7 @@
{% if object %}
<li class="breadcrumb-item"><a href="{{ object.get_absolute_url }}">{{ object }}</a></li>
{% endif %}
<li class="breadcrumb-item active">{% if object %}Update{% else %}Create{% endif %}</li>
<li class="breadcrumb-item active">{{ object|yesno:"Update,Create Email" }}</li>
</ol>
{% endblock %}

Expand Down

0 comments on commit 31a9186

Please sign in to comment.