This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/templates/base.html.twig

86 lines
4 KiB
Twig
Raw Normal View History

2021-04-22 12:46:14 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
2021-09-03 16:40:42 +02:00
<title>Pflänz.li - {% block title %}{% endblock %}</title>
2021-05-03 18:06:55 +02:00
2021-04-22 12:46:14 +02:00
{% block stylesheets %}
2021-12-27 14:32:22 +01:00
{{ encore_entry_link_tags('app') }}
2021-04-22 12:46:14 +02:00
{% endblock %}
{% block javascripts %}
2021-12-27 14:32:22 +01:00
{{ encore_entry_script_tags('app') }}
2021-05-06 14:07:03 +02:00
2021-12-27 14:32:22 +01:00
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.thisfro.ch/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
2021-04-22 12:46:14 +02:00
{% endblock %}
2021-04-24 16:59:51 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2021-04-22 12:46:14 +02:00
</head>
<body>
2021-05-11 23:37:59 +02:00
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
2021-05-05 23:17:51 +02:00
<a class="navbar-brand" href="{{ path('homepage') }}"><i class="fas fa-seedling"></i>Pflänz.li</a>
2021-05-01 00:14:32 +02:00
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
2021-05-09 11:20:45 +02:00
<a class="nav-link" href=" {{ path('offers') }} "><i class="fas fa-seedling"></i> Offers</a>
2021-05-01 00:14:32 +02:00
</li>
2021-05-05 23:17:14 +02:00
<li class="nav-item dropdown">
2021-05-06 14:07:03 +02:00
<a class="nav-link dropdown-toggle" data-toggle="dropdown"role="button" aria-haspopup="true" aria-expanded="false"><i class="fas fa-user"></i> User</a>
2021-05-05 23:17:14 +02:00
<div class="dropdown-menu">
2021-05-18 19:39:44 +02:00
<a class="dropdown-item" href="{{ path('own_offers') }}"><i class="fas fa-seedling"></i> My Offers</a>
2021-05-06 14:07:03 +02:00
<a class="dropdown-item" href="{{ path('wishlist') }}"><i class="fas fa-star"></i> Wishlist</a>
2021-05-05 23:17:14 +02:00
<div class="dropdown-divider"></div>
2021-05-06 14:07:03 +02:00
<a class="dropdown-item" href="{{ path('user_page') }}"><i class="fas fa-user"></i> User settings</a>
2021-05-05 23:17:14 +02:00
</div>
2021-05-01 00:14:32 +02:00
</li>
<li>
<a class="nav-link" href="{{ path('new_offer') }}"><i class="fas fa-plus-square"></i> New Offer</a>
2021-05-01 00:14:32 +02:00
</li>
</ul>
2021-05-11 23:37:59 +02:00
<span>
2021-05-13 16:48:27 +02:00
{% if is_granted('ROLE_USER') %}
<a type="button" class="btn btn-light" href="{{ path('app_logout') }}">Log out</a>
{% else %}
<a type="button" class="btn btn-light" href="{{ path('app_login') }}">Log in</a>
{% endif %}
</span>
2021-05-01 00:14:32 +02:00
</div>
</nav>
2021-04-27 10:20:02 +02:00
2021-05-19 23:07:19 +02:00
<div class="container pt-5">
2021-04-24 16:59:51 +02:00
{% block body %}{% endblock %}
</div>
2021-05-19 23:07:19 +02:00
<footer class="text-center text-white">
<div class="pt-1">
<section class="mb-1">
<a class="btn btn-link btn-floating btn-lg text-dark m-1" href="https://mastodon.social/" role="button" data-mdb-ripple-color="dark"><i class="fab fa-mastodon"></i></a>
<a class="btn btn-link btn-floating btn-lg text-dark m-1" href="https://git.thisfro.ch/thisfro/pflaenz.li" role="button" data-mdb-ripple-color="dark"><i class="fab fa-git-alt"></i></a>
2021-05-19 23:07:19 +02:00
</section>
</div>
<div class="text-center text-dark">
<a href="https://creativecommons.org"><i class="fab fa-creative-commons"></i><i class="fab fa-creative-commons-by"></i></a>
<a class="text-dark" href="{{ path('homepage') }}">pflänz.li</a>
</div>
</footer>
2021-04-22 12:46:14 +02:00
</body>
</html>