Skip to content

Commit

Permalink
Remove workbasket breadcrumb from task and workflow views
Browse files Browse the repository at this point in the history
  • Loading branch information
dalecannon committed Jan 10, 2025
1 parent ee55603 commit 4420588
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 10 deletions.
18 changes: 11 additions & 7 deletions tasks/jinja2/tasks/create.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
{% block breadcrumb %}
{% if parent_task %}
{{ breadcrumbs(request, [
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")},
{"text": "Task: " ~ parent_task.title, "href": parent_task.get_url("detail")},
{"text": page_title}
])}}
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")},
{"text": "Task: " ~ parent_task.title, "href": parent_task.get_url("detail")},
{"text": page_title}
],
with_workbasket=False,
) }}
{% else %}
{{ breadcrumbs(request, [
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")},
{"text": page_title}
])}}
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")},
{"text": page_title}
],
with_workbasket=False,
) }}
{% endif %}
{% endblock %}

Expand Down
3 changes: 2 additions & 1 deletion tasks/jinja2/tasks/detail.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
{{ breadcrumbs(request, [
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")},
{"text": page_title}
]
],
with_workbasket=False,
) }}
{% endblock %}

Expand Down
5 changes: 3 additions & 2 deletions tasks/jinja2/tasks/edit.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
{"text": "Find and view tasks", "href": url("workflow:task-ui-list")},
{"text": "Task: " ~ object.title, "href": url("workflow:task-ui-detail", kwargs={"pk": object.pk})},
{"text": page_title}
])
}}
],
with_workbasket=False,
) }}
{% endblock %}

{% block form %}
Expand Down
8 changes: 8 additions & 0 deletions tasks/jinja2/tasks/list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

{% set page_title = "Find and view tasks" %}

{% block breadcrumb %}
{{ breadcrumbs(request, [
{"text": page_title}
],
with_workbasket=False,
) }}
{% endblock %}

{% block content %}
<h1 class="govuk-heading-xl">{{ page_title }}</h1>
<p class="govuk-body">
Expand Down
8 changes: 8 additions & 0 deletions tasks/jinja2/tasks/workflows/list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

{% set page_title = "Find and view workflows" %}

{% block breadcrumb %}
{{ breadcrumbs(request, [
{"text": page_title}
],
with_workbasket=False,
) }}
{% endblock %}

{% block content %}
<h1 class="govuk-heading-xl">{{ page_title }}</h1>
<p class="govuk-body">
Expand Down
8 changes: 8 additions & 0 deletions tasks/jinja2/tasks/workflows/task-and-workflow-list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

{% set page_title = "Find and view tasks and workflows" %}

{% block breadcrumb %}
{{ breadcrumbs(request, [
{"text": page_title}
],
with_workbasket=False,
) }}
{% endblock %}

{% block content %}
<h1 class="govuk-heading-xl">{{ page_title }}</h1>
<p class="govuk-body">
Expand Down
8 changes: 8 additions & 0 deletions tasks/jinja2/tasks/workflows/template_list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

{% set page_title = "Find and view workflow templates" %}

{% block breadcrumb %}
{{ breadcrumbs(request, [
{"text": page_title}
],
with_workbasket=False,
) }}
{% endblock %}

{% block content %}
<h1 class="govuk-heading-xl">{{ page_title }}</h1>
<p class="govuk-body">
Expand Down

0 comments on commit 4420588

Please sign in to comment.