mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add last user activity on profile page
This commit is contained in:
parent
9c9dc5b5a4
commit
cc6c68957c
5 changed files with 43 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
{% for activity in activities %}
|
||||
<div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
{{ render(controller(
|
||||
'App\\Controller\\ActivityController::template',
|
||||
'App\\Controller\\ActivityController::event',
|
||||
{ activity : activity }
|
||||
)) }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -218,4 +218,20 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% if user.activities %}
|
||||
<div class="padding-x-24-px padding-y-8-px margin-y-16-px">
|
||||
<h2>{{ 'Last activity' | trans }}</h2>
|
||||
<sup>
|
||||
<a href="#">RSS</a>
|
||||
</sup>
|
||||
</div>
|
||||
{% for activity in user.activities %}
|
||||
<div class="padding-x-24-px padding-y-16-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
{{ render(controller(
|
||||
'App\\Controller\\ActivityController::event',
|
||||
{ activity : activity }
|
||||
)) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue