Skip to content

Commit

Permalink
Make consistent html titles with breadcrumbs for archives app (#3580)
Browse files Browse the repository at this point in the history
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 matche the breadcrumbs as described
in issue #3556
  • Loading branch information
ammar257ammar authored Oct 9, 2024
1 parent 478ae80 commit b43c2f1
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
{% load guardian_tags %}
{% load static %}

{% block title %}
Images - {{ archive.title }} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'archives:list' %}">Archives</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{% load static %}
{% load url %}

{% block title %}
Add Items to Reader Study - Items - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'archives:list' %}">Archives</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% load static %}

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

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

{% block title %}
{% if object %}Update{% else %}New{% endif %} Archive - {{ block.super }}
{% if object %}Update{% else %}New{% endif %} Archive -{% if object %} {{ object.title }} -{% endif %} {{ block.super }}
{% endblock %}

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

{% block title %}
Algorithm Results - {{ block.super }}
Jobs - {{ object.pk }} - {{ block.super }}
{% endblock %}

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

{% block title %}
Add Items to Archive - {{ block.super }}
Add Items - {{ archive.title }} - {{ 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 - {{ object.title }} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'archives:list' %}">Archives</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{% load clean from bleach %}
{% load guardian_tags %}

{% block title %}
{% get_obj_perms request.user for archive as "archive_perms" %}
{% if "change_archive" in archive_perms %}Review access request{% else %}Request access{% endif %} - {{ archive.title }} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
{% get_obj_perms request.user for archive as "archive_perms" %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% load static %}

{% block title %}
Permission Requests - {{ block.super }}
Permission Requests - {{ archive.title }} - {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
Expand Down

0 comments on commit b43c2f1

Please sign in to comment.