Skip to content

Commit

Permalink
Make consistent html titles with breadcrumbs for organizations app (#…
Browse files Browse the repository at this point in the history
…3596)

This is part of Task 1 under issue
#3556 aiming to fix
inconsistent HTML titles in GC.

Each app will have a PR to make sure titles are there for all pages that
have a breadcrumbs and that titles match the breadcrumbs as described in
issue #3556
  • Loading branch information
ammar257ammar authored Oct 9, 2024
1 parent 9b3ac56 commit 92c4ddb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% load user_profile_link from profiles %}

{% block title %}
{{ object.title }} - {{ block.super }}
{{ object.title }} - Organizations - {{ block.super }}
{% endblock %}

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

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

{% block breadcrumbs %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% extends "groups/groups_form_base.html" %}
{% load url %}

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

{% block breadcrumbs %}
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'organizations:list' %}">Organizations</a></li>
Expand Down

0 comments on commit 92c4ddb

Please sign in to comment.