-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
refactor: menu bar #99
base: main
Are you sure you want to change the base?
Conversation
{% block nav_secondary %} | ||
<ul class="navbar-nav navbar-nav-secondary col-auto"> | ||
<li class="nav-item"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's safe to remove this line item.
id="navbaraccount-link"> | ||
<span class="d-none d-md-none d-lg-inline"> | ||
Profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the logged in user's first name should be kept to provide an indication as to who is logged in. This is accomplished with:
{% blocktrans with name=request.user.first_name|truncatechars:12 %}
Profile ({{ name }})
{% endblocktrans %}
However, if the logged in user doesn't have the First name and the Last name fields populated, the first name won't be shown.
{% if request.user.is_authenticated %} | ||
<li class="nav-item dropdown account-dropdown {% block nav_account %}{% endblock %}"> | ||
<span class="d-none d-md-none d-lg-inline"> | ||
Profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as header.html
.
Refactors our menu bar to be a little nicer (in my opinion).
Before
After