euscanwww: user feed link is displayed on every page for registered users
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
0d956b4c9f
commit
3ca42ce848
@ -71,6 +71,15 @@
|
||||
<img src="{{ STATIC_URL }}img/feed.png" alt="feed" />
|
||||
<a title="Global Feed" href="{% url "global_feed" %}">Global Feed</a>
|
||||
</li>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<li>
|
||||
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
||||
<a title="{{ user }} Feed" href="{% url "user_feed" %}">
|
||||
{{ user }}'s Feed
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
<li>---</li>
|
||||
<li><a href="{% url "api" %}">API</a></li>
|
||||
|
@ -6,16 +6,6 @@
|
||||
{{ block.super }} - Welcome {{ user }}
|
||||
{% endblock %}
|
||||
|
||||
{% block menu_feed %}
|
||||
{{ block.super }}
|
||||
<li>
|
||||
<img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
|
||||
<a title="{{ user }} Feed" href="{% url "user_feed" %}">
|
||||
{{ user }}'s Feed
|
||||
</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>
|
||||
Welcome {{ user }}
|
||||
|
@ -20,7 +20,7 @@
|
||||
{% block content %}
|
||||
{% if updated %}
|
||||
<div class="alert alert-success">
|
||||
<strong>Saved!</strong> Your preferences has been saved
|
||||
<strong>Saved!</strong> Your preferences have been saved
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user