Clicking username in nav bar now links to user profile instead of user preferences.
Review Request #6865 — Created Jan. 31, 2015 and submitted
When you click on your avatar and/or username in the navigation bar, it takes you to the user preferences page. There is already a link to the Preferences page in the user drop down menu, but there isn't a link to your own user page anywhere. Your avatar and username in the navigation bar is now changed to link to your own profile page.
Clicked my avatar/username from a variety of different places on the site. They all successfully linked to my own profile page.
| Description | From | Last Updated |
|---|---|---|
|
I think {% url 'user' %} will work. The URL name for that page is, kinda unintuitively, under datagrids/urls.py: url(r"^users/(?P<username>[A-Za-z0-9@_\-\.'\+]+)/$", … |
|
-
-
I think
{% url 'user' %}will work.The URL name for that page is, kinda unintuitively, under datagrids/urls.py:
url(r"^users/(?P<username>[A-Za-z0-9@_\-\.'\+]+)/$", 'submitter', name='user'),That name parameter is what we can pass to the
urltemplatetag, so I'm pretty sure just replacinguser-preferenceswithuserwill work.
Tool: Pyflakes Ignored Files: reviewboard/templates/base/headerbar.html Tool: PEP8 Style Checker Ignored Files: reviewboard/templates/base/headerbar.html