mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
add fixtures into timeline
This commit is contained in:
@@ -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' }
|
5
Resources/translations/messages.fr.yml
Normal file
5
Resources/translations/messages.fr.yml
Normal 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é
|
||||
|
13
Resources/views/Timeline/activity_person_context.html.twig
Normal file
13
Resources/views/Timeline/activity_person_context.html.twig
Normal 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>
|
Reference in New Issue
Block a user