Move "Add collection" and "Change account settings" links to root.html

This commit is contained in:
Jef van Schendel 2012-10-21 21:18:08 +02:00
parent 30a8828f9b
commit 9e443248aa
3 changed files with 9 additions and 7 deletions

View File

@ -64,7 +64,6 @@
<div class="dropdown_items">
{% if request.user and request.user.status == 'active' %}
<a href="{{ request.urlgen('mediagoblin.submit.start') }}">{% trans %}+ Add media{% endtrans %}</a>
<a href="{{ request.urlgen('mediagoblin.submit.collection') }}">{% trans %}+ Add collection{% endtrans %}</a>
{% endif %}
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home', user= request.user.username) }}">{% trans %}View your profile{% endtrans %}</a>
<a class="button_action" href="{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}Log out{% endtrans %}</a>

View File

@ -21,6 +21,15 @@
{% block mediagoblin_content %}
{% if request.user %}
{% if request.user.status == 'active' %}
<h1>{% trans %}Actions{% endtrans %}</h1>
<p><a href="{{ request.urlgen('mediagoblin.submit.collection') }}">
{% trans %}Create new collection{% endtrans %}
</a></p>
<p><a href="{{ request.urlgen('mediagoblin.edit.account') }}">
{%- trans %}Change account settings{% endtrans -%}
</a></p>
{% endif %}
<h1>{% trans %}Explore{% endtrans %}</h1>
{% else %}
<h1>{% trans %}Hi there, welcome to this MediaGoblin site!{% endtrans %}</h1>

View File

@ -119,12 +119,6 @@
</a>
{% endif %}
{% endif %}
{% if request.user and (request.user._id == user._id) %}
<a href="{{ request.urlgen('mediagoblin.edit.account') }}">
{%- trans %}Change account settings{% endtrans -%}
</a>
{% endif %}
</div>
{% if media_entries.count() %}