X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f1c2c5231314838ffbcd58eb3f88c92911fa213b..cf75f3aba45829a2bf7a0e469f3de9335d481d89:/Resources/views/session/view.html.twig

diff --git a/Resources/views/session/view.html.twig b/Resources/views/session/view.html.twig
index fea0072..02df6db 100644
--- a/Resources/views/session/view.html.twig
+++ b/Resources/views/session/view.html.twig
@@ -9,7 +9,7 @@
 				{% endif %}
 				<a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
 			</h2>
-			<p>{{ page.description }}</p>
+			<p>{{ description }}</p>
 		</header>
 		<div class="panel">
 			<div class="grid four">
@@ -61,6 +61,19 @@
 							<dd><a href="{{ session.snippet.profile }}">{{ 'Consult %pseudonym% profile'|trans({'%pseudonym%': session.application.user.title}) }}</a></dd>
 						</dl>
 					{% endif %}
+					{% if session.snippet.rate is defined and session.snippet.rate %}
+						{% if session.snippet.hat is defined and session.snippet.hat %}
+							<dl>
+								<dt>{% trans %}Contribution{% endtrans %}</dt>
+								<dd>{% if session.snippet.rate == 0 %}{% trans %}To the hat, to cover the costs: talc, electricity, bicycle, server{% endtrans %}{% else %}{{ 'To the hat, ideally %rate% €, to cover the costs: talc, electricity, bicycle, server'|trans({'%rate%': session.snippet.rate}) }}{% endif %}</dd>
+							</dl>
+						{% else %}
+							<dl>
+								<dt>{% trans %}Rate{% endtrans %}</dt>
+								<dd>{% if session.snippet.rate == 0 %}{% trans %}Free{% endtrans %}{% else %}{{ session.snippet.rate }} €{% endif %}</dd>
+							</dl>
+						{% endif %}
+					{% endif %}
 				</section>
 				<section class="cell">
 					<h3>{% trans %}Schedule{% endtrans %}</h3>