mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 20:11:14 +00:00
Merge pull request #587 from mouse-reeve/user-tabs
Fixes user tabs linking to logged in user
This commit is contained in:
commit
5a709d6ca7
1 changed files with 4 additions and 4 deletions
|
@ -71,20 +71,20 @@
|
||||||
{% if 'user/'|add:username|add:'/shelf' not in request.path and 'user/'|add:username|add:'/shelves' not in request.path %}
|
{% if 'user/'|add:username|add:'/shelf' not in request.path and 'user/'|add:username|add:'/shelves' not in request.path %}
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{% url 'user-feed' request.user|username as url %}
|
{% url 'user-feed' user|username as url %}
|
||||||
<li{% if url == request.path or url == request.path|add:'/' %} class="is-active"{% endif %}>
|
<li{% if url == request.path or url == request.path|add:'/' %} class="is-active"{% endif %}>
|
||||||
<a href="{{ url }}">Activity</a>
|
<a href="{{ url }}">Activity</a>
|
||||||
</li>
|
</li>
|
||||||
{% now 'Y' as year %}
|
{% now 'Y' as year %}
|
||||||
{% url 'user-goal' request.user|username year as url %}
|
{% url 'user-goal' user|username year as url %}
|
||||||
<li{% if url in request.path %} class="is-active"{% endif %}>
|
<li{% if url in request.path %} class="is-active"{% endif %}>
|
||||||
<a href="{{ url }}">Reading Goal</a>
|
<a href="{{ url }}">Reading Goal</a>
|
||||||
</li>
|
</li>
|
||||||
{% url 'user-lists' request.user|username as url %}
|
{% url 'user-lists' user|username as url %}
|
||||||
<li{% if url in request.path %} class="is-active"{% endif %}>
|
<li{% if url in request.path %} class="is-active"{% endif %}>
|
||||||
<a href="{{ url }}">Lists</a>
|
<a href="{{ url }}">Lists</a>
|
||||||
</li>
|
</li>
|
||||||
{% url 'user-shelves' request.user|username as url %}
|
{% url 'user-shelves' user|username as url %}
|
||||||
<li{% if url in request.path %} class="is-active"{% endif %}>
|
<li{% if url in request.path %} class="is-active"{% endif %}>
|
||||||
<a href="{{ url }}">Shelves</a>
|
<a href="{{ url }}">Shelves</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue