From Jef van Schendel: "here's a spot to tell others about yourself"

This should display if the user is logged in and they don't have anything in their profile yet.
This commit is contained in:
Christopher Allan Webber 2011-08-18 19:17:14 -05:00
parent 1d03221d04
commit 3617ff4acf

View File

@ -78,15 +78,29 @@
{%- trans username=user.username %}{{ username }}'s profile{% endtrans -%} {%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
</h1> </h1>
<div class="grid_6 alpha"> {% if request.user['_id'] == user['_id']
{% include "mediagoblin/utils/profile.html" %} and not user['url'] and not user['profile'] %}
{% if request.user['_id'] == user['_id'] or request.user['is_admin'] %} <div class="grid_6 alpha empty_space">
<p>
{% trans %}Here's a spot to tell others about yourself.{% endtrans %}
</p>
<a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{ <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
user.username }}"> user.username }}"
class="header_submit">
{%- trans %}Edit profile{% endtrans -%} {%- trans %}Edit profile{% endtrans -%}
</a> </a>
{% endif %} </div>
</div> {% else %}
<div class="grid_6 alpha">
{% include "mediagoblin/utils/profile.html" %}
{% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
<a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
user.username }}">
{%- trans %}Edit profile{% endtrans -%}
</a>
{% endif %}
</div>
{% endif %}
<div class="grid_10 omega"> <div class="grid_10 omega">
{{ object_gallery(request, media_entries, pagination, {{ object_gallery(request, media_entries, pagination,