OXYGENHUB
# 180dc43ad0e0 oxygenhub / templates / diffusion_rows.html
1.6 KiB · HTML · last changed Diffusion: see it, and landing refreshes the pin index 23 days ago source blame history raw
1
{% macro chip(c) %}<span class="df-chip {{ c.colour.class() }}" title="{{ c.colour.label() }}">{{ c.colour.label() }}</span>{% endmacro %}
2
3
{% macro rows(list) %}
4
<div class="table"><table class="diffusion">
5
  <tr><th>Repository</th><th>Pin on</th><th>Behind</th><th>Status</th><th>Open bump</th><th>Last landed</th><th>Follows</th></tr>
6
  {% for c in list %}
7
  <tr>
8
    <td><a href="/{{ c.owner }}/{{ c.name }}">{{ c.owner }}/{{ c.name }}</a> <span class="small mute">{{ c.path }}</span></td>
9
    <td class="small"><span class="lbl lbl-bm">{{ c.bookmark }}</span></td>
10
    <td class="small">{% match c.behind %}{% when Some(0) %}<span class="mute">0</span>{% when Some(n) %}{{ n }}{% when None %}<span class="mute" title="Its pin names changes this repository does not hold">?</span>{% endmatch %}</td>
11
    <td>{% call chip(c) %}</td>
12
    <td class="small">{% if let Some(n) = c.bump %}<a href="/{{ c.owner }}/{{ c.name }}/proposal/{{ n }}">#{{ n }}</a>{% if let Some((r, st)) = c.run %} · <a href="/{{ c.owner }}/{{ c.name }}/flow/{{ r }}">run #{{ r }}</a> <span class="mute">{{ st }}</span>{% endif %}{% else %}<span class="mute">none</span>{% endif %}</td>
13
    <td class="small">{% if let Some((n, at)) = c.landed %}<a href="/{{ c.owner }}/{{ c.name }}/proposal/{{ n }}">#{{ n }}</a> <time class="mute" title="{{ at|when_i }}">{{ at|ago_i }}</time>{% else %}<span class="mute">—</span>{% endif %}</td>
14
    <td class="small mute">{% match c.follow %}{% when crate::diffusion::Follow::Off %}off{% when crate::diffusion::Follow::Green %}when green{% when crate::diffusion::Follow::Any %}every move{% endmatch %}</td>
15
  </tr>
16
  {% endfor %}
17
</table></div>
18
{% endmacro %}