1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-12-17 23:24:20 +00:00
royalnet/templates/components/event.html

22 lines
731 B
HTML
Raw Normal View History

2018-07-24 17:23:19 +00:00
<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>
<div class="description">
2018-07-24 17:40:57 +00:00
{% autoescape false %}
{{ escape(event.description).replace('\n', '<br>') }}
{% endautoescape %}
2018-07-24 17:23:19 +00:00
</div>
</div>