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:
parent
1d03221d04
commit
3617ff4acf
@ -78,15 +78,29 @@
|
||||
{%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
|
||||
</h1>
|
||||
|
||||
<div class="grid_6 alpha">
|
||||
{% include "mediagoblin/utils/profile.html" %}
|
||||
{% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
|
||||
{% if request.user['_id'] == user['_id']
|
||||
and not user['url'] and not user['profile'] %}
|
||||
<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={{
|
||||
user.username }}">
|
||||
user.username }}"
|
||||
class="header_submit">
|
||||
{%- trans %}Edit profile{% endtrans -%}
|
||||
</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">
|
||||
{{ object_gallery(request, media_entries, pagination,
|
||||
|
Loading…
x
Reference in New Issue
Block a user