base.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {% extends "misago/base.html" %}
  2. {% load i18n misago_absoluteurl misago_shorthands %}
  3. {% block title %}
  4. {% if THREADS_ON_INDEX %}
  5. {% trans "Categories" %} | {{ block.super }}
  6. {% else %}
  7. {{ settings.index_title|default:settings.forum_name }}
  8. {% endif %}
  9. {% endblock title %}
  10. {% block meta-description %}
  11. {% if not THREADS_ON_INDEX and settings.index_meta_description %}
  12. {{ settings.index_meta_description }}
  13. {% else %}
  14. {% blocktrans trimmed count categories=categories|length with forum_name=settings.forum_name %}
  15. There is {{ categories }} main category currenty available on the {{ forum_name }}.
  16. {% plural %}
  17. There are {{ categories }} main categories currenty available on the {{ forum_name }}.
  18. {% endblocktrans %}
  19. {% endif %}
  20. {% endblock meta-description %}
  21. {% block og-title %}
  22. {% if THREADS_ON_INDEX %}
  23. {% trans "Categories" %}
  24. {% else %}
  25. {{ settings.index_title|default:settings.forum_name }}
  26. {% endif %}
  27. {% endblock og-title %}
  28. {% block twitter-title %}
  29. {% if THREADS_ON_INDEX %}
  30. {% trans "Categories" %}
  31. {% else %}
  32. {{ settings.index_title|default:settings.forum_name }}
  33. {% endif %}
  34. {% endblock twitter-title %}
  35. {% block og-description %}
  36. {% if not THREADS_ON_INDEX and settings.index_meta_description %}
  37. {{ settings.index_meta_description }}
  38. {% else %}
  39. {% blocktrans trimmed count categories=categories|length with forum_name=settings.forum_name %}
  40. There is {{ categories }} main category currenty available on the {{ forum_name }}.
  41. {% plural %}
  42. There are {{ categories }} main categories currenty available on the {{ forum_name }}.
  43. {% endblocktrans %}
  44. {% endif %}
  45. {% endblock og-description %}
  46. {% block twitter-description %}
  47. {% if not THREADS_ON_INDEX and settings.index_meta_description %}
  48. {{ settings.index_meta_description }}
  49. {% else %}
  50. {% blocktrans trimmed count categories=categories|length with forum_name=settings.forum_name %}
  51. There is {{ categories }} main category currenty available on the {{ forum_name }}.
  52. {% plural %}
  53. There are {{ categories }} main categories currenty available on the {{ forum_name }}.
  54. {% endblocktrans %}
  55. {% endif %}
  56. {% endblock twitter-description %}
  57. {% block og-url %}{% absoluteurl request_path %}{% endblock %}
  58. {% block twitter-url %}{% absoluteurl request_path %}{% endblock %}
  59. {% block content %}
  60. <div class="page page-categories{{ categories|iffalse:' page-message' }}">
  61. {% include "misago/categories/header.html" %}
  62. <div class="container page-container">
  63. {% include "misago/categories/body.html" %}
  64. </div>
  65. </div>
  66. {% endblock content %}