mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
Merge branch 'historique_cotisations' into 'master'
user: allow subscription history to be visible when subscription is expired See merge request ae/Sith!169
This commit is contained in:
commit
75dd171714
@ -119,7 +119,25 @@
|
|||||||
<div>
|
<div>
|
||||||
{{ user_subscription(profile) }}
|
{{ user_subscription(profile) }}
|
||||||
</div>
|
</div>
|
||||||
<br>
|
{% endif %}
|
||||||
|
{% if user == profile or user.is_root or user.is_board_member or user.is_launderette_manager %}
|
||||||
|
<div>
|
||||||
|
{# Shows tokens bought by the user #}
|
||||||
|
{{ show_tokens(profile) }}
|
||||||
|
{# Shows slots took by the user #}
|
||||||
|
{{ show_slots(profile) }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<div>
|
||||||
|
{% trans %}Not subscribed{% endtrans %}
|
||||||
|
{% if user.is_board_member %}
|
||||||
|
<a href="{{ url('subscription:subscription') }}?member={{ profile.id }}">{% trans %}New subscription{% endtrans %}</a>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if profile.was_subscribed and (user == profile or user.is_root or user.is_board_member)%}
|
||||||
<div id="drop_subscriptions">
|
<div id="drop_subscriptions">
|
||||||
<h5>{% trans %}Subscription history{% endtrans %}</h5>
|
<h5>{% trans %}Subscription history{% endtrans %}</h5>
|
||||||
<table>
|
<table>
|
||||||
@ -140,23 +158,6 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user == profile or user.is_root or user.is_board_member or user.is_launderette_manager %}
|
|
||||||
<div>
|
|
||||||
{# Shows tokens bought by the user #}
|
|
||||||
{{ show_tokens(profile) }}
|
|
||||||
{# Shows slots took by the user #}
|
|
||||||
{{ show_slots(profile) }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<div>
|
|
||||||
{% trans %}Not subscribed{% endtrans %}
|
|
||||||
{% if user.is_board_member %}
|
|
||||||
<a href="{{ url('subscription:subscription') }}?member={{ profile.id }}">{% trans %}New subscription{% endtrans %}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if user.is_root or user.is_board_member %}
|
{% if user.is_root or user.is_board_member %}
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user