Child: [ddf08c] (diff)

Download this file

index.html    39 lines (33 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% set hide_left_bar = True %}
{% extends g.theme.master %}
{% block title %}{{c.project.name}} Activity{% endblock %}
{% block header %}
Activity for
{% if c.project.is_user_project %}
{{c.project.user_project_of.display_name}}
{% else %}
{{c.project.name}}
{% endif %}
{% endblock %}
{% block actions %}
{% if c.user and c.user != c.user.anonymous() and followee != c.user %}
{{c.follow_toggle.display(following=following)}}
{% endif %}
{% endblock %}
{% macro activity_obj(o) %}
<a href="{{o['activity_url']}}">{{o['activity_name']}}</a>
{% endmacro %}
{% block content %}
<div class="grid-23">
{% if not timeline %}
No activity to display.
{% else %}
<ul>
{% for a in timeline %}
<li>{{activity_obj(a['actor'])}} {{a['verb']}} {{activity_obj(a['obj'])}} {% if a.get('target') %}on {{activity_obj(a['target'])}}{% endif %} {{h.ago(a['published'])}}</li>
<!-- Score: {{ a.get('score') }} -->
{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}