profile.html 2.2 KB

1234567891011121314151617181920212223242526272829303132
  1. {% extends "sora/layout.html" %}
  2. {% load i18n %}
  3. {% load humanize %}
  4. {% load url from future %}
  5. {% import "_forms.html" as form_theme with context %}
  6. {% import "sora/macros.html" as macros with context %}
  7. {% block title %}{{ macros.page_title(profile.username) }}{% endblock %}
  8. {% block content %}
  9. <div class="profile-wrapper{% if profile.get_style() %} {{ profile.get_style() }}{% endif %}">
  10. <div class="page-header profile-header header-tabbed{% if profile.get_style() %} {{ profile.get_style() }}{% endif %}">
  11. <div class="avatar-height">
  12. <img src="{{ profile.get_avatar() }}" class="avatar pull-left" alt="">
  13. <div class="pull-left">
  14. <h1>{{ profile.username }}</h1>
  15. <p class="lead">{% if profile.title or profile.rank.title %}{% if profile.title %}{{ _(profile.title) }}{% elif profile.rank.title %}{{ _(profile.rank.title) }}{% endif %}; {% endif %}<span class="muted">{% trans last_visit=profile.last_date|reltimesince|low %}Last seen {{ last_visit }}{% endtrans %}</span></p>
  16. </div>
  17. </div>
  18. <ul class="nav nav-tabs">
  19. <li{% if tab == 'posts' %} class="active"{% endif %}><a href="{% url 'user' user=profile.pk, username=profile.username_slug %}">{% trans %}Last Posts{% endtrans %}</a></li>
  20. <li{% if tab == 'threads' %} class="active"{% endif %}><a href="{% url 'user_threads' user=profile.pk, username=profile.username_slug %}">{% trans %}Last Threads{% endtrans %}</a></li>
  21. <li{% if tab == 'following' %} class="active"{% endif %}><a href="{% url 'user_following' user=profile.pk, username=profile.username_slug %}">{% trans %}Following{% endtrans %}</a></li>
  22. <li{% if tab == 'followers' %} class="active"{% endif %}><a href="{% url 'user_followers' user=profile.pk, username=profile.username_slug %}">{% trans %}Followers{% endtrans %}</a></li>
  23. <li{% if tab == 'details' %} class="active"{% endif %}><a href="{% url 'user_details' user=profile.pk, username=profile.username_slug %}">{% trans %}Profile Details{% endtrans %}</a></li>
  24. </ul>
  25. </div>
  26. <div class="profile-tab{% if profile.get_style() %} {{ profile.get_style() }}{% endif %}">
  27. {% block tab %}{% endblock %}
  28. </div>
  29. </div>
  30. {% endblock %}