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.

30 lines
694 B

  1. {% extends "base.html" %}
  2. {% import "bootstrap/wtf.html" as wtf %}
  3. {% import "_macros.html" as macros %}
  4. {% block title %}Flasky{% endblock %}
  5. {% block page_content %}
  6. <div class="page-header">
  7. <h1>
  8. Hello, {% if current_user.is_authenticated %}{{ current_user.username }}{% else %}Stranger{% endif %}!
  9. </h1>
  10. </div>
  11. <div>
  12. {% if current_user.can(Permission.WRITE) %}
  13. {{ wtf.quick_form(form) }}
  14. {% endif %}
  15. </div>
  16. {% include '_posts.html' %}
  17. {% if pagination %}
  18. <div class="pagination">
  19. {{ macros.pagination_widget(pagination, '.index') }}
  20. </div>
  21. {% endif %}
  22. {% endblock %}
  23. {% block scripts %}
  24. {{ super() }}
  25. {{ pagedown.include_pagedown() }}
  26. {% endblock %}