No Description
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.

base.html 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!--
  2. This file is part of Lodel 2 (https://github.com/OpenEdition)
  3. Copyright (C) 2015-2017 Cléo UMS-3287
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <!doctype html>
  16. {% set not_connected = false %} <!-- client.is_anonymous() %} -->
  17. <html lang="en">
  18. <head>
  19. <meta charset="UTF-8" />
  20. <title>{% block title %}{% endblock %}</title>
  21. <!-- Latest compiled and minified CSS -->
  22. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  23. <!--{{url('/')}} -->
  24. <!-- Optional theme -->
  25. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
  26. <link href="{{ static_url }}/css/template.css" rel="stylesheet">
  27. {% block style %}{% endblock %}
  28. {% block scripts %}{% endblock %}
  29. </head>
  30. <body>
  31. <!-- Fixed navbar -->
  32. <nav class="navbar navbar-default navbar-fixed-top">
  33. <div class="container">
  34. <div class="navbar-header">
  35. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  36. <span class="sr-only">Toggle navigation</span>
  37. <span class="icon-bar"></span>
  38. <span class="icon-bar"></span>
  39. <span class="icon-bar"></span>
  40. </button>
  41. <a class="navbar-brand" href="/{{ root_url }}/">Lodel 2</a>
  42. </div>
  43. <div id="navbar" class="navbar-collapse collapse">
  44. <ul class="nav navbar-nav">
  45. <li class="active"><a href="/{{ root_url }}/">Home</a></li>
  46. <li><a href="list_classes">All types</a></li>
  47. </ul>
  48. <ul class="nav navbar-nav navbar-right">
  49. {% if not_connected %}
  50. <li id="backend-nav"><a href="/{{ root_url }}/admin" class="btn btn-link disabled">Back-end</a></li>
  51. <li id="signin-nav"><a href="signin">Sign In</a></li> -->
  52. {% else %}
  53. <li id="backend-nav"><a href="/{{ root_url }}/admin" class="btn btn-link">Back-end</a></li>
  54. <li id="signout-nav"><a href="signout">Logout</a>
  55. {% endif %}
  56. </ul>
  57. </div><!--/.nav-collapse -->
  58. </div>
  59. </nav>
  60. <div id="content">
  61. {% block content %}{% endblock %}
  62. </div>
  63. <script type="text/javascript">{% block javascript %}{% endblock %}</script>
  64. <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  65. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  66. <!-- Include all compiled plugins (below), or include individual files as needed -->
  67. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  68. </body>
  69. </html>