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 -%} {%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
</h1> </h1>
{% if request.user['_id'] == user['_id'] {% if not user['url'] and not user['profile'] %}
and not user['url'] and not user['profile'] %} {% if request.user['_id'] == user['_id'] %}
<div class="grid_6 alpha empty_space"> <div class="grid_6 alpha empty_space">
<p> <p>
{% trans %}Here's a spot to tell others about yourself.{% endtrans %} {% trans %}Here's a spot to tell others about yourself.{% endtrans %}
@ -90,6 +90,15 @@
{%- trans %}Edit profile{% endtrans -%} {%- trans %}Edit profile{% endtrans -%}
</a> </a>
</div> </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 %} {% else %}
<div class="grid_6 alpha"> <div class="grid_6 alpha">
{% include "mediagoblin/utils/profile.html" %} {% include "mediagoblin/utils/profile.html" %}