-
Notifications
You must be signed in to change notification settings - Fork 168
First attempt at breadcrumbs. #2738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
a97d89d
1284806
9996ccf
28e8898
33dd7b9
3c3640a
5829859
0961bbe
e389c81
5933f3c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| {% extends 'staff_base.html' %} | ||
| {% load staff_templatetags %} | ||
|
|
||
| {% block title %} | ||
| {% if semester %} | ||
|
|
@@ -9,12 +10,9 @@ | |
|
|
||
| {% block breadcrumb %} | ||
| {{ block.super }} | ||
| <li class="breadcrumb-item">{% translate 'Semesters' %}</li> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would argue that the breadcrumbs look a lot better without this singular breadcrumb. This breadcrumb links to nowhere, just makes the breadcrumb bar longer and looks ugly when something clickable appears to the right of it in the breadcrumb bar.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @janno42 opinions? |
||
| {% if semester %} | ||
| {% if disable_breadcrumb_semester %} | ||
|
LukasMansour marked this conversation as resolved.
|
||
| <li class="breadcrumb-item">{{ semester.name }}</li> | ||
| {% else %} | ||
| <li class="breadcrumb-item"><a href="{% url 'staff:semester_view' semester.id %}">{{ semester.name }}</a></li> | ||
| {% endif %} | ||
| {% breadcrumb_item_url 'staff:semester_view' semester.id %} | ||
| {{ semester.name }} | ||
| {% endbreadcrumb_item_url %} | ||
| {% endif %} | ||
| {% endblock %} | ||
Uh oh!
There was an error while loading. Please reload this page.