]> Raphaël G. Git Repositories - airbundle/blobdiff - Resources/views/session/view.html.twig
Cleanup
[airbundle] / Resources / views / session / view.html.twig
index ccf4efe07c1356e00a6cda128434eea37cd1df2e..02df6db5460bf7d3125ccf68e804ded92eb88ecd 100644 (file)
                                                        <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>