euscanwww: user feed link is displayed on every page for registered users

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-08-14 14:19:57 +02:00
parent 0d956b4c9f
commit 3ca42ce848
3 changed files with 10 additions and 11 deletions

View File

@ -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>

View File

@ -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 }}

View File

@ -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 %}