layout.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="FlaskBB is a forum software written in Flask">
  8. <meta name="author" content="FlaskBB Team">
  9. <meta name="csrf-token" content="{{ csrf_token() }}">
  10. <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
  11. <title>
  12. {% block title %}
  13. {%- if not page_title -%}
  14. {{ flaskbb_config["PROJECT_TITLE"] }} - {{ flaskbb_config["PROJECT_SUBTITLE"] }}
  15. {%- else -%}
  16. {{ page_title }} - {{ flaskbb_config["PROJECT_TITLE"] }}
  17. {%- endif -%}
  18. {% endblock %}
  19. </title>
  20. {% block stylesheets %}
  21. <!-- libraries and dependencies -->
  22. <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
  23. <link rel="stylesheet" href="{{ url_for('static', filename='css/font-awesome.min.css') }}" >
  24. <link rel="stylesheet" href="{{ url_for('static', filename='css/pygments.css') }}">
  25. <!-- aurora theme -->
  26. <link rel="stylesheet" href="{{ theme_static('css/flaskbb.css') }}">
  27. {% endblock %}
  28. {# for extra stylesheets. e.q. a template has to add something #}
  29. {% block css %}
  30. {% endblock %}
  31. {# for various extra things #}
  32. {% block head_extra %}
  33. {% endblock %}
  34. </head>
  35. <body>
  36. <!-- main forum layout -->
  37. <div class="flaskbb-layout">
  38. <div class="container">
  39. <!-- forum header - place for the project title and subtitle -->
  40. {% block header %}
  41. <div class="flaskbb-header">
  42. <div class="flaskbb-meta">
  43. <div class="flaskbb-title">FlaskBB</div>
  44. <div class="flaskbb-subtitle">A lightweight forum software in Flask.</div>
  45. </div>
  46. </div>
  47. {% endblock %}
  48. <!-- forum menu - contains all the navigation items -->
  49. {% block navigation %}
  50. {% include theme('navigation.html') %}
  51. {% endblock %}
  52. <!-- Place for all the (flashed) messages -->
  53. {% block messages %}
  54. <div class="flashed-messages">
  55. {% include theme('flashed_messages.html') %}
  56. </div>
  57. {% endblock %}
  58. <!-- the actual content block -->
  59. {% block content %}
  60. {% endblock %}
  61. </div> <!-- end container -->
  62. <!-- the forum footer -->
  63. {% block footer %}
  64. <footer class="flaskbb-footer">
  65. <div class="container">
  66. <p class="text-muted pull-left">powered by <a href="http://flask.pocoo.org">Flask</a></p>
  67. <p class="text-muted pull-right">&copy; 2013 - 2015 <a href="http://flaskbb.org">FlaskBB.org</a></p>
  68. </div>
  69. </footer>
  70. {% endblock %}
  71. </div> <!-- end flaskbb-layout -->
  72. {% block javascript %}
  73. <!-- libraries and dependencies -->
  74. <script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
  75. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  76. <!-- flaskbb's javascript -->
  77. <script src="{{ url_for('static', filename='js/flaskbb.js') }}"></script>
  78. {% endblock %}
  79. {# for extra scripts in other templates. #}
  80. {% block scripts %}
  81. {% endblock %}
  82. </body>
  83. </html>