UI: 2024 Hero component options #103971

Merged
Márton Lente merged 66 commits from ui/2024-hero-options into main 2024-09-24 13:00:31 +02:00
Showing only changes of commit 22078558db - Show all commits

View File

@ -40,36 +40,35 @@ meta(name='twitter:image', content='{{request.scheme}}://{{request.META.HTTP_HOS
.col .col
.box.mb-3.p-3 .box.mb-3.p-3
| {% if permissions.can_change %} | {% if permissions.can_change %}
.event-detail-header .mb-3.row
.row .col-sm-6
.col-sm-6 .d-flex
.d-flex div
div small.text-muted.d-block Submitted on
small.text-muted.d-block Submitted on span(title="{{ object.created_at | date:'D d M, Y @ H:i' }}")
span(title="{{ object.created_at | date:'D d M, Y @ H:i' }}") | {{ object.created_at | date:'l d M, Y' }}
| {{ object.created_at | date:'l d M, Y' }} div.ml-4
div.ml-4 small.text-muted.d-block Status
small.text-muted.d-block Status span.badge.badge-primary(class="status-{{ object.status }}")
span.badge.badge-primary(class="status-{{ object.status }}") | {% if object.status == 'rejected' %}NOT ACCEPTED{% else %}{{ object.status|upper|replace:'_| ' }}{% endif %}
| {% if object.status == 'rejected' %}NOT ACCEPTED{% else %}{{ object.status|upper|replace:'_| ' }}{% endif %}
.col-sm-6 .col-sm-6
.d-flex .d-flex
.ml-auto .ml-auto
.btn-row.justify-content-end .btn-row.justify-content-end
a.btn( a.btn(
href="{% url 'presentation_update' edition_path=object.edition.path pk=object.pk %}") href="{% url 'presentation_update' edition_path=object.edition.path pk=object.pk %}")
i.i-edit i.i-edit
span Edit Presentation span Edit Presentation
a.btn( a.btn(
href="{% url 'presentation_review' edition_path=object.edition.path pk=object.pk %}") href="{% url 'presentation_review' edition_path=object.edition.path pk=object.pk %}")
i.i-comment i.i-comment
span Review span Review
| {% if request.user.is_superuser %} | {% if request.user.is_superuser %}
a.btn.btn-admin( a.btn.btn-admin(
href="{% url 'admin:conference_main_event_change' object.pk %}") href="{% url 'admin:conference_main_event_change' object.pk %}")
| Admin | Admin
| {% endif %} | {% endif %}
| {% endif %} | {% endif %}
| {% if object.recording %} | {% if object.recording %}