Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

base.html 3.5KB

il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html>
  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">
  7. <title>COPIM online toolkit</title>
  8. <!-- Bootstrap CSS -->
  9. <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">
  10. </head>
  11. <body>
  12. <nav class="navbar navbar-expand-md navbar-light bg-light">
  13. <a class="navbar-brand" href="{{ url_for('main.index')}}">COPIM online toolkit</a>
  14. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  15. <span class="navbar-toggler-icon"></span>
  16. </button>
  17. <div class="collapse navbar-collapse" id="navbarNav">
  18. <ul class="navbar-nav">
  19. <li class="nav-item">
  20. <a href="{{ url_for('main.index') }}" class="nav-link">
  21. Home
  22. </a>
  23. </li>
  24. <li class="nav-item">
  25. <a href="{{ url_for('tool.get_tools') }}" class="nav-link">
  26. Tools
  27. </a>
  28. </li>
  29. {% if current_user.is_authenticated %}
  30. <li class="nav-item">
  31. <a href="{{ url_for('tool.create_tool') }}" class="nav-link">
  32. Add tool
  33. </a>
  34. </li>
  35. {% endif %}
  36. {% if current_user.is_authenticated %}
  37. <li class="nav-item">
  38. <a href="{{ url_for('main.profile') }}" class="nav-link">
  39. Profile
  40. </a>
  41. </li>
  42. {% endif %}
  43. {% if not current_user.is_authenticated %}
  44. <li class="nav-item">
  45. <a href="{{ url_for('auth.login') }}" class="nav-link">
  46. Login
  47. </a>
  48. </li>
  49. <li class="nav-item">
  50. <a href="{{ url_for('auth.signup') }}" class="nav-link">
  51. Sign Up
  52. </a>
  53. </li>
  54. {% endif %}
  55. {% if current_user.is_authenticated %}
  56. <li class="nav-item">
  57. <a href="{{ url_for('auth.logout') }}" class="nav-link">
  58. Logout
  59. </a>
  60. </li>
  61. {% endif %}
  62. </ul>
  63. </div>
  64. </nav>
  65. <div class="container">
  66. {% with messages = get_flashed_messages() %}
  67. {% if messages %}
  68. <div class="alert alert-danger">
  69. {{ messages[0] }}
  70. </div>
  71. {% endif %}
  72. {% endwith %}
  73. {% block content %}
  74. {% endblock %}
  75. </div>
  76. <!-- Optional JavaScript -->
  77. <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  78. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  79. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
  80. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  81. </body>
  82. </html>