calendar-social/calsocial/templates/profile-details.html

36 lines
1.0 KiB
HTML
Raw Permalink Normal View History

2018-07-09 07:57:23 +00:00
{% extends 'base.html' %}
{% from '_macros.html' import profile_link %}
2018-07-09 07:57:23 +00:00
{% block content %}
<h2 class="ui header">
{% if profile.builtin_avatar %}
<img src="{{ url_for('static', filename='avatars/' + profile.builtin_avatar + '.svg') }}" alt="" class="ui circular image">
{% endif %}
{% if profile.locked %}
<i class="fa fa-lock" aria-hidden="true" title="{% trans %}locked profile{% endtrans %}"></i>
<span class="sr-only">{% trans %}locked profile{% endtrans %}</span>
{% endif %}
{{ profile.display_name }}
2018-07-09 07:57:23 +00:00
<small>@{{ profile.user.username}}</small>
</h2>
2018-07-09 06:33:04 +00:00
{% if profile.user != current_user %}
<a href="{{ url_for('follow_user', username=profile.user.username) }}">{% trans %}Follow{% endtrans %}</a>
2018-07-09 06:33:04 +00:00
{% endif %}
<h2>
{% trans %}Follows{% endtrans %}
</h2>
{% for followed in profile.followed_list %}
{{ profile_link(followed) }}
{% endfor %}
<h2>
{% trans %}Followers{% endtrans %}
</h2>
{% for follower in profile.follower_list %}
{{ profile_link(follower) }}
{% endfor %}
2018-07-09 07:57:23 +00:00
{% endblock content %}