Created
February 25, 2020 19:34
-
-
Save Porter97/dd73b940ca0b77ce67f18e4e8fe938aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<div class="page-header"> | |
<img class="img-rounded profile-thumbnail" src="{{ user.gravatar(size=256) }}"> | |
<div class="profile-header"> | |
<h1>{{ user.username }}</h1> | |
{% if user.name %} | |
<p> | |
{{ user.name }}<br> | |
</p> | |
{% endif %} | |
{% if current_user.is_administrator() %} | |
<p><a href="mailto:{{ user.email }}">{{ user.email }}</a></p> | |
{% endif %} | |
{% if user.about_me %}<p>{{ user.about_me }}</p>{% endif %} | |
<p>Member since {{ moment(user.member_since).format('L') }}. Last seen {{ moment(user.last_seen).fromNow() }}.</p> | |
<p> | |
{% if user == current_user %} | |
<a class="btn btn-default" href="{{ url_for('.edit_profile') }}">Edit Profile</a> | |
{% endif %} | |
{% if current_user.is_administrator() %} | |
<a class="btn btn-danger" href="{{ url_for('.edit_profile_admin', id=user.id) }}">Edit Profile [Admin]</a> | |
{% endif %} | |
</p> | |
</div> | |
</div> | |
<div class="user-collections"> | |
<div id="collection-scroller"> | |
{% include "_collection.html" %} | |
</div> | |
<div id="collection-sentinel"></div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment