You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. {% extends "base.html" %}
  2. {% block title %}Flasky - {{ user.username }}{% endblock %}
  3. {% block page_content %}
  4. <div class="page-header">
  5. <h1>{{ user.username }}</h1>
  6. {% if user.name or user.location %}
  7. <p>
  8. {% if user.name %}
  9. {{ user.name }}{% endif %}
  10. {% if user.location %}from
  11. <a href="https://maps.google.com/?q={{ user.location }}">
  12. {{ user.location }}</a>
  13. {% endif %}
  14. </p>
  15. {% endif %}
  16. {% if user.is_administrator %}
  17. <p><a href="mailto:{{ user.email }}">{{ user.email }}</a></p>
  18. {% endif %}
  19. {% if user.about_me %}
  20. <p>{{ user.about_me }}</p>
  21. {% endif %}
  22. <p>
  23. Member since {{ moment(user.member_since).format('L') }}.
  24. Last seen {{ moment(user.last_seen).fromNow() }}.
  25. </p>
  26. <p>
  27. {% if user == current_user %}
  28. <a class="btn btn-default" href="{{ url_for('.edit_profile') }}">Edit Profile</a>
  29. {% endif %}
  30. {% if current_user.is_administrator %}
  31. <a class="btn btn-danger" href="{{ url_for('.edit_profile_admin', id=user.id) }}">Edit Profile [Admin]</a>
  32. {% endif %}
  33. </p>
  34. </div>
  35. {% endblock %}