mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-22 03:47:48 +00:00
#365 Add works and activities counter
This commit is contained in:
@@ -201,7 +201,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if accompanyingCourse.step != 'DRAFT' %}
|
||||
<div class="mbloc col col-sm-6 col-lg-4">
|
||||
<div class="mbloc col col-sm-6 col-lg-8 col-xxl-4">
|
||||
<div class="notification-counter">
|
||||
<h4 class="item-key">{{ 'notification.Notifications'|trans }}</h4>
|
||||
{% set notif_counter = chill_count_notifications('Chill\\PersonBundle\\Entity\\AccompanyingPeriod', accompanyingCourse.id) %}
|
||||
@@ -238,6 +238,31 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if counters.activities > 0 %}
|
||||
<div class="mbloc col col-sm-6 col-lg-4">
|
||||
<div class="count-activities">
|
||||
<div class="count-item">{{ counters.activities }}</div>
|
||||
<div class="count-item-label">
|
||||
{% if counters.activities == 1 %}
|
||||
{{ 'Activity'|trans }}
|
||||
{% else %}
|
||||
{{ 'Activities'|trans }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if counters.works > 0 %}
|
||||
<div class="mbloc col col-sm-6 col-lg-4">
|
||||
<div class="count-works">
|
||||
<div class="count-item">{{ counters.openWorks }} / {{ counters.works }}</div>
|
||||
<div class="count-item-label">{{ 'accompanying_course_work.On-going works over total'|trans }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="social-actions my-4">
|
||||
|
||||
Reference in New Issue
Block a user