mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
22 lines
No EOL
734 B
HTML
22 lines
No EOL
734 B
HTML
<div class="event">
|
|
{% if event.time_left.days >= 1 %}
|
|
<div class="time date">
|
|
{{ event.time.strftime('%Y-%m-%d %H:%M') }}
|
|
</div>
|
|
{% else %}
|
|
<div class="time remaining">
|
|
{{ (event.time_left.total_seconds() // 3600) | int }}h {{ ((event.time_left.total_seconds() % 3600) // 60) | int }}m
|
|
</div>
|
|
{% endif %}
|
|
<div class="name">
|
|
{{ event.name }}
|
|
</div>
|
|
<div class="author">
|
|
di <a href="/profile/{{ event.author.username }}">{{ event.author.username }}</a>
|
|
</div>
|
|
{% if event.description %}
|
|
<div class="description">
|
|
{{ (escape(event.description)).replace("\n", "<br>"|safe) }}
|
|
</div>
|
|
{% endif %}
|
|
</div> |