mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
draft activity feature #4
This commit is contained in:
parent
8ee25d3a30
commit
d73086231f
4 changed files with 65 additions and 26 deletions
23
templates/default/user/dashboard.html.twig
Normal file
23
templates/default/user/dashboard.html.twig
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{% extends 'default/layout.html.twig' %}
|
||||
{% block title %}{{ 'Last activity'|trans }} - {{ name }}{% endblock %}
|
||||
{% block main_content %}
|
||||
{% for activity in activities %}
|
||||
<div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
<div class="row">
|
||||
<div class="column width-80">
|
||||
<a href="{{ path('user_info', {'id': activity.user.id}) }}">
|
||||
<img class="vertical-align-middle border-radius-50 border-default border-width-2-px margin-r-8-px"
|
||||
src="{{ activity.user.identicon }}"
|
||||
alt="{{ 'identicon'|trans }}" />
|
||||
</a>
|
||||
{% if activity.type == 'join' %}
|
||||
{{ 'joined'|trans }} {{ name }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="column width-20 text-right padding-y-4-px">
|
||||
{{ activity.added }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue