templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  7. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  8. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  9. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  10. <link rel="icon" href="/favicon.ico" type="image/x-icon">
  11. <link rel="manifest" href="/site.webmanifest">
  12. <title>{% block title %}Welcome to the YourWound Platform!{% endblock %}</title>
  13. {% block stylesheets %}
  14. {{ encore_entry_link_tags('app') }}
  15. {% endblock %}
  16. {% block javascripts %}
  17. {{ encore_entry_script_tags('app') }}
  18. {{ encore_entry_script_tags('threejs_module_obj') }}
  19. {% endblock %}
  20. </head>
  21. <body>
  22. {% if app.user is not null %}
  23. {% set balance = 0 %}
  24. {% for log in app.user.AssignmentLog %}
  25. {% if log.DateRedeemed is null %}
  26. {% set balance = balance + log.ValueEur%}
  27. {% endif %}
  28. {% endfor %}
  29. {% endif %}
  30. {% block body %}
  31. {% block headLine %}
  32. <header class="navbar navbar-dark sticky-top bg-dark p-0 shadow">
  33. <a class="navbar-brand col-md-3 col-lg-2 me-auto" href="{{ path('home') }}">
  34. <img src="{{ asset('build/images/yw_logo.png') }}" class="img-fluid" alt="YW Logo">
  35. YourWound Platform
  36. </a>
  37. <div class="d-flex align-items-center ms-auto">
  38. <a class="nav-link text-white-50 me-2" href="{{ path('user_logout') }}">Sign out</a>
  39. <button class="navbar-toggler d-md-none me-1"
  40. type="button" data-bs-toggle="collapse"
  41. data-bs-target="#sidebarMenu" aria-controls="sidebarMenu"
  42. aria-expanded="false" aria-label="Toggle navigation">
  43. <span class="navbar-toggler-icon"></span>
  44. </button>
  45. </div>
  46. {# <input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search"> #}
  47. </header>
  48. {% endblock %}
  49. <div class="containerFluid px-3">
  50. <div class="row">
  51. {{ render(path('navbar')) }}
  52. {% block nav %}
  53. {# {% include('navbar.html.twig') %} #}
  54. {% endblock %}
  55. <main class="col-md-9 ms-sm-auto px-2 col-lg-10">
  56. <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
  57. <h1 class="h2">{% block contentTitle %}Your userflow{% endblock %}</h1>
  58. <div class="btn-toolbar mb-2 mb-md-0">
  59. {% block toolbar %}
  60. {% endblock %}
  61. </div>
  62. </div>
  63. {# {% block breadcrumbs %}
  64. {% set breadcrumbs = app.request.pathinfo|trim('/')|split('/') %}
  65. <nav aria-label="breadcrumb">
  66. <ol class="breadcrumb">
  67. {% if app.request.pathinfo==path('app-home') %}
  68. <li class="breadcrumb-item active" aria-current="page">Main</li>
  69. {% else %}
  70. {% for bc in breadcrumbs %}
  71. {% if loop.last %}
  72. <li class="breadcrumb-item active" aria-current="page">{{bc}}</li>
  73. {% else %}
  74. <li class="breadcrumb-item active"><a href="#">{{bc}}</a></li>
  75. {% endif %}
  76. {% endfor %}
  77. {% endif %}
  78. </ol>
  79. </nav>
  80. {% endblock %} #}
  81. {% for type, messages in app.flashes %}
  82. {% for message in messages %}
  83. <div class='alert alert-{{ type }}'>{{message}}</div>
  84. {% endfor %}
  85. {% endfor %}
  86. <div id="base-content-container" class="mw-100 px-3 pb-3">
  87. {% block content %}
  88. {% endblock %}
  89. </div>
  90. </main>
  91. </div>
  92. </div>
  93. {% endblock %}
  94. </body>
  95. </html>