base.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {% extends "misago/base.html" %}
  2. {% load i18n misago_absoluteurl %}
  3. {% block title %}{{ profile.username }} | {{ block.super }}{% endblock %}
  4. {% block meta-description %}
  5. {% blocktrans trimmed with title=profile.get_any_title joined_on=profile.joined_on|date %}
  6. {{ title }}, joined on {{ joined_on }}.
  7. {% endblocktrans %}
  8. {% endblock %}
  9. {% block og-title %}{{ profile.username }}{% endblock %}
  10. {% block twitter-title %}{{ profile.username }}{% endblock %}
  11. {% block og-description %}
  12. {% blocktrans trimmed with title=profile.get_any_title joined_on=profile.joined_on|date %}
  13. {{ title }}, joined on {{ joined_on }}.
  14. {% endblocktrans %} {% blocktrans trimmed count posts=profile.posts %}
  15. Wrote {{ posts }} post.
  16. {% plural %}
  17. Wrote {{ posts }} posts.
  18. {% endblocktrans %} {% blocktrans trimmed count threads=profile.threads %}
  19. Started {{ threads }} thread.
  20. {% plural %}
  21. Started {{ threads }} threads.
  22. {% endblocktrans %}
  23. {% endblock og-description %}
  24. {% block twitter-description %}
  25. {% blocktrans trimmed with title=profile.get_any_title joined_on=profile.joined_on|date %}
  26. {{ title }}, joined on {{ joined_on }}.
  27. {% endblocktrans %} {% blocktrans trimmed count posts=profile.posts %}
  28. Wrote {{ posts }} post.
  29. {% plural %}
  30. Wrote {{ posts }} posts.
  31. {% endblocktrans %} {% blocktrans trimmed count threads=profile.threads %}
  32. Started {{ threads }} thread.
  33. {% plural %}
  34. Started {{ threads }} threads.
  35. {% endblocktrans %}
  36. {% endblock twitter-description %}
  37. {% block og-url %}{% absoluteurl request_path %}{% endblock %}
  38. {% block twitter-url %}{% absoluteurl request_path %}{% endblock %}
  39. {% block og-image %}
  40. {% if settings.og_image_avatar_on_profile %}
  41. {% with profile.avatars|first as og_image %}
  42. <meta property="twitter:image" content="{% absoluteurl og_image.url %}" />
  43. <meta property="og:image" content="{% absoluteurl og_image.url %}" />
  44. <meta property="og:image:width" content="{{ og_image.size }}" />
  45. <meta property="og:image:height" content="{{ og_image.size }}" />
  46. {% endwith %}
  47. {% else %}
  48. {{ block.super }}
  49. {% endif %}
  50. {% endblock og-image %}
  51. {% block content %}
  52. <div class="page page-user-profile">
  53. <div class="page-header-bg">
  54. <div class="page-header{% if profile.rank.css_class %} page-header-rank-{{ profile.rank.css_class }}{% endif %}">
  55. {% include "misago/profile/header.html" %}
  56. {% include "misago/profile/nav-sm.html" %}
  57. </div>
  58. </div>
  59. <div class="container">
  60. <div class="row">
  61. <div class="col-md-3 hidden-xs hidden-sm">
  62. {% include "misago/profile/nav.html" %}
  63. </div>
  64. <div class="col-xs-12 col-md-9">
  65. {% block section %}{% endblock section %}
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. {% endblock content %}