user page activities: show counts of delivered, failed, undelivered

for #286
pull/413/head
Ryan Barrett 2023-02-07 08:01:21 -08:00
rodzic cb605e96c6
commit ca2bffd076
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 29 dodań i 7 usunięć

Wyświetl plik

@ -184,7 +184,11 @@ form input {
}
}
.source-buttons, .original-post {
.deliveries li {
list-style: none;
}
.source-buttons, .original-post, .deliveries li {
white-space: nowrap;
}

Wyświetl plik

@ -3,7 +3,7 @@
{% for obj in objects %}
<li class="row">
<div class="col-sm-{{ 7 if show_domains else 10 }}">
<div class="col-sm-{{ 5 if show_domains else 8 }}">
{{ obj.actor_link(user=user)|safe }}
{{ obj.phrase|safe }}
<a target="_blank" href="{{ obj.url }}">
@ -29,13 +29,31 @@
{% endif %}
<div class="col-sm-2">
{% if obj.status == 'failed' %}
<span title="Error" class="glyphicon glyphicon-exclamation-sign"></span>
{% else %}{% if obj.status == 'new' %}
<span title="Processing" class="glyphicon glyphicon-transfer"></span>
{% endif %}{% endif %}
{{ logs.maybe_link(obj.updated, obj.key.id())|safe }}
</div>
<div class="col-sm-2">
<ul class="deliveries">
{% if obj.delivered %}
<li title="Delivered sucessfully">
<span class="glyphicon glyphicon-ok-sign"></span>
{{ obj.delivered|length }}
</li>
{% endif %}
{% if obj.undelivered %}
<li title="Remaining to be delivered">
<span class="glyphicon glyphicon-transfer"></span>
{{ obj.undelivered|length }}
</li>
{% endif %}
{% if obj.failed %}
<li title="Failed delivery">
<span class="glyphicon glyphicon-exclamation-sign"></span>
{{ obj.failed|length }}
</li>
{% endif %}
<ul>
</div>
</li>
{% else %}
<li class="row">Nothing yet!</li>