profile.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {% extends theme("user/profile_layout.html") %}
  2. {% block breadcrumb %}
  3. <ul class="breadcrumb flaskbb-breadcrumb">
  4. <li><a href="{{ url_for('forum.index') }}">{% trans %}Forum{% endtrans %}</a></li>
  5. <li class="active">{{ user.username }}</li>
  6. </ul>
  7. {% endblock %}
  8. {% block profile_content %}
  9. <!-- middle column -->
  10. <div class="col-md-9 col-sm-9 col-xs-12 profile-content">
  11. <div class="tab-content">
  12. <div role="tabpanel" class="tab-pane active" id="overview">
  13. <div class="panel page-panel">
  14. <div class="panel-heading page-head">{% trans %}Info{% endtrans %}</div>
  15. <div class="panel-body page-body">
  16. <div class="col-md-12 col-sm-12 col-xs-12 profile-field">
  17. {% if user.notes %}
  18. {{ user.notes|markup|safe }}
  19. {% else %}
  20. <p>{% trans %}User has not added any notes about him.{% endtrans %}</p>
  21. {% endif %}
  22. </div>
  23. </div>
  24. </div> <!-- end profile widget -->
  25. {% if user.signature %}
  26. <div class="panel page-panel">
  27. <div class="panel-heading page-head">{% trans %}Signature{% endtrans %}</div>
  28. <div class="panel-body page-body">
  29. <div class="col-md-12 col-sm-12 col-xs-12 profile-field">
  30. {{ user.signature|markup|safe }}
  31. </div>
  32. </div>
  33. </div> <!-- end profile widget -->
  34. {% endif %}
  35. </div>
  36. {# Other information available for use:
  37. # TODO: eventually use the information (i don't how i should represent it.. any ideas?)
  38. <div role="tabpanel" class="tab-pane" id="info">
  39. <div>
  40. {% trans %}Group{% endtrans %}:
  41. {{ user.primary_group.name }}
  42. </div>
  43. <div>
  44. {% trans %}Joined{% endtrans %}:
  45. {{ user.date_joined|format_date('%b %d %Y') }}
  46. </div>
  47. <div>
  48. {% trans %}Posts{% endtrans %}:
  49. {{ user.post_count }} ({{ user.posts_per_day }} per day)
  50. </div>
  51. <div>
  52. {% trans %}Last seen{% endtrans %}:
  53. {%- if user.lastseen -%} {{ user.lastseen|time_since }} {%- else -%} {% trans %}Never seen{% endtrans %} {%- endif -%}
  54. </div>
  55. <div>
  56. {% trans %}Last post{% endtrans %}:
  57. {%- if user.last_post -%}
  58. <a href="{{ user.last_post.url }}">{{ user.last_post.date_created|time_since }}</a>
  59. {%- else -%}
  60. {% trans %}Never{% endtrans %}
  61. {%- endif -%}
  62. </div>
  63. <div>
  64. {% trans %}Location{% endtrans %}:
  65. {%- if user.location -%} {{ user.location }} {%- else -%} {% trans %}No Info{% endtrans %} {%- endif -%}
  66. </div>
  67. <div>
  68. {% trans %}Birthday{% endtrans %}:
  69. {% if user.birthday %}
  70. {{ user.birthday|format_date('%b %d %Y') }}
  71. {% else %}
  72. {% trans %}No Info{% endtrans %}
  73. {% endif %}
  74. {% if user.gender %}
  75. ({{ user.gender }})
  76. {% endif %}
  77. </div>
  78. </div>
  79. #}
  80. </div>
  81. </div> <!-- end col -->
  82. {% endblock %}