Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

refactor: menu bar #99

wants to merge 1 commit into from

Conversation

tyliec
Copy link
Member

@tyliec tyliec commented May 4, 2024

Refactors our menu bar to be a little nicer (in my opinion).

Before

Screenshot 2024-05-03 at 8 44 26 PM

After

Screenshot 2024-05-03 at 8 44 38 PM

@tyliec tyliec requested a review from a team as a code owner May 4, 2024 06:44
{% block nav_secondary %}
<ul class="navbar-nav navbar-nav-secondary col-auto">
<li class="nav-item">
Copy link
Member

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
Copy link
Member

@russtoku russtoku May 4, 2024

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as header.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants