base.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>
  6. {% block title %}
  7. {% endblock %}
  8. </title>
  9. {% load staticfiles %}
  10. {% block stylesheets %}
  11. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  12. <link rel="stylesheet" type="text/css" href="{% static "css/expe.css" %}">
  13. <script src="https://kit.fontawesome.com/ee9d97bd14.js" crossorigin="anonymous"></script>
  14. {% endblock %}
  15. </head>
  16. <body>
  17. <div class="container">
  18. {% block content %}
  19. {% endblock %}
  20. </div>
  21. <!-- Global scripts used -->
  22. <script type="text/javascript">
  23. // JS need to know if apache2 server use BASE_URL
  24. // add by default '/' into BASE
  25. const BASE = "{{BASE}}"
  26. const host = window.location.host
  27. var baseUrl = location.protocol + '//' + host + '/'
  28. if (BASE != ''){
  29. baseUrl += BASE + '/'
  30. }
  31. const expeUrl = baseUrl + 'expe'
  32. </script>
  33. {% block javascripts %}
  34. {% endblock %}
  35. </body>