OXYGENHUB
# d29070faef66 oxygenhub / templates / feed.html
799 B · HTML · last changed Profile and organisation pages, with identicons 1 month ago source blame history raw
1
{% if feed.is_empty() %}
2
<p class="empty small">Nothing yet.</p>
3
{% else %}
4
<ul class="feed">
5
{% for a in feed %}
6
  <li>
7
    <span class="who">{% if a.actor.is_empty() %}the hub{% else %}<img class="avatar xs" src="/avatar/{{ a.actor }}" alt=""> <a href="/{{ a.actor }}">{{ a.actor }}</a>{% endif %}</span>
8
    {% if a.kind == "push" %}pushed <span class="lbl lbl-bm">{{ a.event }}</span> to
9
    {% else if a.kind == "release" %}published <a href="{{ a.url() }}">{{ a.title }}</a> in
10
    {% else %}{{ a.event }} {{ a.kind }} <a href="{{ a.url() }}">#{{ a.number }} {{ a.title }}</a> in
11
    {% endif %}
12
    <a href="/{{ a.owner }}/{{ a.name }}">{{ a.owner }}/{{ a.name }}</a>
13
    <time class="mute small" title="{{ a.at_ms|when_i }}">{{ a.at_ms|ago_i }}</time>
14
  </li>
15
{% endfor %}
16
</ul>
17
{% endif %}