Skip to content

Commit

Permalink
Correct html titles for workstations app (#3644)
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 24, 2024
1 parent afbe361 commit f97ce02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% load static %}

{% block title %}
{{ object }} - {{ object.workstation.slug }} - {{ block.super }}
{{ object }} - {{ object.workstation_image }} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load crispy_forms_tags %}

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

{% block breadcrumbs %}
Expand All @@ -14,7 +14,7 @@
href="{{ object.get_absolute_url }}">{{ object.title }}</a></li>
{% endif %}
<li class="breadcrumb-item active"
aria-current="page">{{ object|yesno:"Update,Create" }}</li>
aria-current="page">{{ object|yesno:"Update,Create Viewer" }}</li>
</ol>
{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{% load url %}

{% block title %}
Add user - {{ object.title }} - {{ block.super }}
Add User - {{ object.title }} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'workstations:list' %}">Viewers</a></li>
<li class="breadcrumb-item"><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></li>
<li class="breadcrumb-item active" aria-current="page">Add user</li>
<li class="breadcrumb-item active" aria-current="page">Add User</li>
</ol>
{% endblock %}

0 comments on commit f97ce02

Please sign in to comment.