kopia lustrzana https://github.com/Aonrud/ila-microblog.pub
feat: separate out the poll heading items in object display
rodzic
b29324d62c
commit
ddabbd6fc3
|
@ -154,7 +154,7 @@ header.microblog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nav.flexbox {
|
.flexbox {
|
||||||
ul {
|
ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
|
@ -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") %}
|
||||||
|
|
Ładowanie…
Reference in New Issue