feat: separate out the poll heading items in object display

ila
Aonrud 2023-01-29 16:44:51 +00:00
rodzic b29324d62c
commit ddabbd6fc3
2 zmienionych plików z 21 dodań i 14 usunięć

Wyświetl plik

@ -154,7 +154,7 @@ header.microblog {
} }
} }
nav.flexbox { .flexbox {
ul { ul {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

Wyświetl plik

@ -552,19 +552,6 @@
<time class="dt-published" datetime="{{ object.ap_published_at.replace(microsecond=0).isoformat() }}" title="{{ object.ap_published_at.replace(microsecond=0).isoformat() }}">{{ object.ap_published_at | timeago }}</time> <time class="dt-published" datetime="{{ object.ap_published_at.replace(microsecond=0).isoformat() }}" title="{{ object.ap_published_at.replace(microsecond=0).isoformat() }}">{{ object.ap_published_at | timeago }}</time>
</li> </li>
{% endif %} {% endif %}
{% if object.ap_type == "Question" %}
{% if object.poll_end_time %}
<li>
{% if object.is_poll_ended %}ended{% else %}ends{% endif %}
<time title="{{ object.poll_end_time.replace(microsecond=0).isoformat() }}">
{{ object.poll_end_time | timeago }}
</time>
</li>
{% endif %}
<li>
{{ object.poll_voters_count }} voters
</li>
{% endif %}
{% if is_admin %} {% if is_admin %}
<li> <li>
{{ object.visibility.value }} {{ object.visibility.value }}
@ -630,6 +617,26 @@
</ul> </ul>
</nav> </nav>
{% endif %} {% endif %}
{% if object.ap_type == "Question" %}
<div class="flexbox segmented">
<ul>
{% if object.poll_end_time %}
<li>
<span class="fas fa-bars-progress"></span>
{% if object.is_poll_ended %}ended{% else %}ends{% endif %}
<time title="{{ object.poll_end_time.replace(microsecond=0).isoformat() }}">
{{ object.poll_end_time | timeago }}
</time>
</li>
{% endif %}
<li>
<span class="fas fa-check-to-slot"></span>
{{ object.poll_voters_count }} voters
</li>
</ul>
</div>
{% endif %}
{% if object.ap_type == "Event" %} {% if object.ap_type == "Event" %}
{% if object.ap_object.get("endTime") and object.ap_object.get("startTime") %} {% if object.ap_object.get("endTime") and object.ap_object.get("startTime") %}