layout.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <!-- the forum footer -->
  62. {% block footer %}
  63. <div class="flaskbb-footer row">
  64. <p class="text-muted pull-left">powered by <a href="http://flask.pocoo.org">Flask</a></p>
  65. <p class="text-muted pull-right">&copy; 2013 - 2015 - <a href="http://flaskbb.org">FlaskBB.org</a></p>
  66. </div>
  67. {% endblock %}
  68. </div> <!-- end container -->
  69. </div> <!-- end flaskbb-layout -->
  70. {% block javascript %}
  71. <!-- libraries and dependencies -->
  72. <script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
  73. <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
  74. <!-- flaskbb's javascript -->
  75. <script src="{{ url_for('static', filename='js/flaskbb.js') }}"></script>
  76. {% endblock %}
  77. {# for extra scripts in other templates. #}
  78. {% block scripts %}
  79. {% endblock %}
  80. </body>
  81. </html>