fix: 🤷 don't show unset profile fields on profile page
This commit is contained in:
parent
42b355ec17
commit
77316cf428
1 changed files with 18 additions and 12 deletions
|
|
@ -10,18 +10,24 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h2 class="double">@{{ profile.username }}</h2>
|
<h2 class="double">@{{ profile.username }}</h2>
|
||||||
<div>
|
{% if profile.pronouns %}
|
||||||
<dt>{% trans %}pronouns{% endtrans %}</dt>
|
<div>
|
||||||
<dd>{{ profile.pronouns or "not set" }}</dd>
|
<dt>{% trans %}pronouns{% endtrans %}</dt>
|
||||||
</div>
|
<dd>{{ profile.pronouns }}</dd>
|
||||||
<div>
|
</div>
|
||||||
<dt>{% trans %}location{% endtrans %}</dt>
|
{% endif %}
|
||||||
<dd>{{ profile.location or "not set" }}</dd>
|
{% if profile.location %}
|
||||||
</div>
|
<div>
|
||||||
<div class="double">
|
<dt>{% trans %}location{% endtrans %}</dt>
|
||||||
<dt>{% trans %}about me{% endtrans %}</dt>
|
<dd>{{ profile.location }}</dd>
|
||||||
<dd>{{ profile.bio or "not set" }}</dd>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
|
{% if profile.bio %}
|
||||||
|
<div class="double">
|
||||||
|
<dt>{% trans %}about me{% endtrans %}</dt>
|
||||||
|
<dd>{{ profile.bio }}</dd>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
{% if profile.id == request.user.id %}
|
{% if profile.id == request.user.id %}
|
||||||
<p class="mt"><a href="{{ url('profile.edit') }}">{% trans %}edit{% endtrans %}</a></p>
|
<p class="mt"><a href="{{ url('profile.edit') }}">{% trans %}edit{% endtrans %}</a></p>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue