add fixtures into timeline

This commit is contained in:
2015-07-05 11:17:01 +02:00
parent 9927be9e2f
commit c4b2bfa8ff
5 changed files with 270 additions and 1 deletions

View File

@@ -35,4 +35,14 @@ services:
arguments:
- "@chill.main.security.authorization.helper"
tags:
- { name: security.voter }
- { name: security.voter }
chill.activity.timeline:
class: Chill\ActivityBundle\Timeline\TimelineActivityProvider
arguments:
- '@doctrine.orm.entity_manager'
- '@chill.main.security.authorization.helper'
- '@security.token_storage'
tags:
- { name: chill.timeline, context: 'person' }

View File

@@ -0,0 +1,5 @@
#timeline
'%user% has done an %activity_type% on %date%': %user% a effectué une activité de type "%activity_type%" le %date%
Activity: Activité
View the activity: Voir l'activité

View File

@@ -0,0 +1,13 @@
<div class="activity">
<h3>{{ 'Activity'|trans }}</h3>
<div class="statement">
<span class="statement">{{ '%user% has done an %activity_type% on %date%'|trans(
{
'%user%' : user,
'%activity_type%': activity.type.name|localize_translatable_string,
'%date%' : activity.date|localizeddate('long', 'none') }
) }}</span> <span class="links"><a href="{{ path('chill_activity_activity_show',
{ 'person_id': person.id, 'id': activity.id} ) }}">{{ 'View the activity'|trans }}</a></span>
</div>
</div>