Fix more StrictUndefined issues

This commit is contained in:
Elrond 2012-01-05 14:46:27 +01:00
parent 1c53f98c09
commit 4a24500aa4

View File

@ -90,7 +90,7 @@
</h1> </h1>
{% if not user.url and not user.bio %} {% if not user.url and not user.bio %}
{% if request.user._id == user._id %} {% if request.user and (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 %}
@ -120,7 +120,7 @@
{%- trans %}Edit profile{% endtrans -%} {%- trans %}Edit profile{% endtrans -%}
</a> </a>
{% endif %} {% endif %}
{% if request.user._id == user._id %} {% if request.user and (request.user._id == user._id) %}
<a href="{{ request.urlgen('mediagoblin.edit.account') }}"> <a href="{{ request.urlgen('mediagoblin.edit.account') }}">
{%- trans %}Change account settings{% endtrans -%} {%- trans %}Change account settings{% endtrans -%}
</a> </a>