Resources/views/layout.html.twig
{# Copyright 2017-2018 Arnaud Bienvenu
This file is part of Kyela.
Kyela is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Kyela is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Kyela. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "KyelaBundle::base.html.twig" %}
{% block rawbody %}
<body>
<div id="wrap">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ path('poll_new') }}">Kyélà</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{% if poll is defined and poll and poll.title %}
<li><a href="{{ path('poll_show', {'pollUrl': poll.url}) }}">{{ poll.title }}</a>
{% endif %}
<li><a href="{{ path('kyela_faq') }}">{% trans %}faq{% endtrans %}</a></li>
<li><a href="{{ path('kyela_tips') }}">{% trans %}tips{% endtrans %}</a></li>
<li><a href="{{ path('kyela_about') }}">{% trans %}about{% endtrans %}</a></li>
<li><a href="{{ path('kyela_thanks') }}">{% trans %}thanks{% endtrans %}</a></li>
{% set routeParams = app.request.get('_route_params') %}
{% for locale, language in {'en': 'English', 'fr': 'Français', 'de': 'Deutsch'} %}
{% if locale != app.request.locale %}
{% set routeParams = routeParams|merge({'_locale': locale}) %}
<li><a href="{{ path('kyela_switch', routeParams) }}">{{ language }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
{% if app.session.flashbag.has('success') %}
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">{% trans %}success{% endtrans %}</h3>
</div>
<div class="panel-body">
{% for flashMessage in app.session.flashbag.get('success') %}
{{ flashMessage|raw }}<br />
{% endfor %}
</div>
</div>
{% endif %}
<div class="container">
{% block body %}{% endblock %}
</div>
</div>
<div id="footer">
<p>
© Arnaud Bienvenu 2014-2018 - v{{ kyela_version }} -
Icons by <a href="http://glyphicons.com/">GLYPHICONS.com</a> -
<span id="forkongithub"><a href="https://github.com/abienvenu/Kyela">Fork me on GitHub</a></span> -
{% image '@KyelaBundle/Resources/public/images/license-AGPL3.0-red.svg' %}
<a href="https://github.com/abienvenu/Kyela/blob/master/LICENSE"><img src="{{ asset_url }}" alt="AGPL 3.0 License" /></a>
{% endimage %}
</p>
</div>
</body>
{% endblock %}