Update code with ghostwheel42 comments

master
Kevin Falcoz 3 years ago
parent 3e394faf92
commit c69f886a73

@ -5,11 +5,7 @@
<div class="div-circle elevation-2"><i class="fa fa-user text-lg text-dark"></i></div> <div class="div-circle elevation-2"><i class="fa fa-user text-lg text-dark"></i></div>
</div> </div>
<div class="info"> <div class="info">
{%- if current_user.displayed_name %} <a href="{{ url_for('.user_settings') }}" class="d-block">{{ current_user.displayed_name or current_user }}</a>
<a href="{{ url_for('.user_settings') }}" class="d-block">{{ current_user.displayed_name }}</a>
{% else %}
<a href="{{ url_for('.user_settings') }}" class="d-block">{{ current_user }}</a>
{%- endif %}
</div> </div>
</div> </div>
{%- endif %} {%- endif %}

Loading…
Cancel
Save