Give a message if the user hasn't filled in their profile yet.

This commit is contained in:
Christopher Allan Webber 2011-08-18 21:16:50 -05:00
parent 6890822cce
commit 293a7fe411

View File

@ -78,8 +78,8 @@
{%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
</h1>
{% if request.user['_id'] == user['_id']
and not user['url'] and not user['profile'] %}
{% if not user['url'] and not user['profile'] %}
{% if request.user['_id'] == user['_id'] %}
<div class="grid_6 alpha empty_space">
<p>
{% trans %}Here's a spot to tell others about yourself.{% endtrans %}
@ -90,6 +90,15 @@
{%- trans %}Edit profile{% endtrans -%}
</a>
</div>
{% else %}
<div class="grid_6 alpha empty_space">
<p>
{% trans -%}
This user hasn't filled in their profile (yet).
{%- endtrans %}
</p>
</div>
{% endif %}
{% else %}
<div class="grid_6 alpha">
{% include "mediagoblin/utils/profile.html" %}