Gergely Polonkai 808c6bbdde Update translatable strings
Stop using the `_()` function, and use `{% trans %}` tags instead.
2018-07-16 11:09:09 +02:00

51 行
1.7 KiB
HTML
Raw パーマリンク Blame 履歴

このファイルには曖昧(ambiguous)なUnicode文字が含まれています

このファイルには、他の文字と見間違える可能性があるUnicode文字が含まれています。 それが意図的なものと考えられる場合は、この警告を無視して構いません。 それらの文字を表示するにはエスケープボタンを使用します。

{% extends 'base.html' %}
{% from '_macros.html' import field %}
{% macro time_zone_warning() %}
{% trans timezone=event.time_zone, start_time=event.start_time_tz | datetimeformat(rebase=false), end_time=event.end_time_tz | datetimeformat(rebase=false) -%}
This event is organised in the {{timezone}} time zone, in which it happens between {{start_time}} and {{end_time}}
{%- endtrans %}
{% endmacro %}
{% block content %}
<h2 class="ui header">
<div class="content">
{{ event.title }}<br>
<div class="sub header">
{%- if current_user.timezone | string != event.time_zone -%}
<span title="{{ time_zone_warning() }}">
<i class="fa fa-exclamation-triangle timezone-warning"></i>
<span class="sr-only">{{ time_zone_warning() }}</span>
</span>
{% endif %}
{{ event.start_time_for_user(current_user) | datetimeformat(rebase=false) }}
{{ event.end_time_for_user(current_user) | datetimeformat(rebase=false) }}
</div>
</div>
</h2>
{{ event.description }}
<hr>
<h2>{% trans %}Invited users{% endtrans %}</h2>
<ul>
{% for invitation in event.invitations %}
<li>
{{ invitation.invitee }}
{% if invitation.invitee == current_user.profile %}
<a href="{{ url_for('accept_invite', invite_id=invitation.id) }}">Accept</a>
{% endif %}
</li>
{% endfor %}
</ul>
<hr>
<h2>{% trans %}Invite{% endtrans %}</h2>
<form method="post" class="ui form">
{{ form.hidden_tag() }}
<div class="inline fields">
{{ field(form.invitee, inline=true) }}
<button type="submit" class="ui button">{% trans %}Invite{% endtrans %}</button>
</div>
</form>
{% endblock %}