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" />
|
<img src="{{ STATIC_URL }}img/feed.png" alt="feed" />
|
||||||
<a title="Global Feed" href="{% url "global_feed" %}">Global Feed</a>
|
<a title="Global Feed" href="{% url "global_feed" %}">Global Feed</a>
|
||||||
</li>
|
</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 %}
|
{% endblock %}
|
||||||
<li>---</li>
|
<li>---</li>
|
||||||
<li><a href="{% url "api" %}">API</a></li>
|
<li><a href="{% url "api" %}">API</a></li>
|
||||||
|
@ -6,16 +6,6 @@
|
|||||||
{{ block.super }} - Welcome {{ user }}
|
{{ block.super }} - Welcome {{ user }}
|
||||||
{% endblock %}
|
{% 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 %}
|
{% block content %}
|
||||||
<h2>
|
<h2>
|
||||||
Welcome {{ user }}
|
Welcome {{ user }}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% if updated %}
|
{% if updated %}
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<strong>Saved!</strong> Your preferences has been saved
|
<strong>Saved!</strong> Your preferences have been saved
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user