annotate default/event/invitation.html @ 85:05b500bd6235

chat: chat implementation, first draft: this chat use the new dynamic pages feature. Updates are pushed directly by server. Identities are used to retrieve avatar, and first letter of nickname is used to generate an avatar is none is found (temporary, a more elaborate avatar generation should follow in the future). Scroll is done automatically when new messages arrive, except if scroll is not at the end, as it probably means that user is checking history. User can resize text area and use [shift] + [enter] to enter multi-line messages. History will then scroll to bottom after message has been sent.
author Goffi <goffi@goffi.org>
date Wed, 03 Jan 2018 01:12:16 +0100
parents d8729eb9edb5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% extends 'base/base.html' %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
2
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% block body %}
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
4 <div class='invitation_header box'>
20
8fa2fd2e928e default: added i18n support
Goffi <goffi@goffi.org>
parents: 19
diff changeset
5 <h1>{% trans %}Welcome {{name}}{% endtrans %}</h1>
8fa2fd2e928e default: added i18n support
Goffi <goffi@goffi.org>
parents: 19
diff changeset
6 <p class='instructions'>{% trans %}You have been invited to participate to an event{% endtrans %}</p>
19
422c54e0204a event: adaptation to changes in backend/Libervia + background_image can now be specified in template data
Goffi <goffi@goffi.org>
parents: 17
diff changeset
7 {% if event.image is defined %}
422c54e0204a event: adaptation to changes in backend/Libervia + background_image can now be specified in template data
Goffi <goffi@goffi.org>
parents: 17
diff changeset
8 <p><img id='event_picture' src="{{event.image}}"></p>
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
9 {% endif %}
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
10 </div>
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
11
21
24af9089aacd default(event): added event_counter, which number of days left before event
Goffi <goffi@goffi.org>
parents: 20
diff changeset
12 {% if days_left is defined %}
50
d8729eb9edb5 events (invitation): indicate when the event is finished
Goffi <goffi@goffi.org>
parents: 21
diff changeset
13 {% if days_left > 0 %}
d8729eb9edb5 events (invitation): indicate when the event is finished
Goffi <goffi@goffi.org>
parents: 21
diff changeset
14 <div id="event_counter" class="box">{% trans %}{{days_left}} days left{% endtrans %}</div>
d8729eb9edb5 events (invitation): indicate when the event is finished
Goffi <goffi@goffi.org>
parents: 21
diff changeset
15 {% else %}
d8729eb9edb5 events (invitation): indicate when the event is finished
Goffi <goffi@goffi.org>
parents: 21
diff changeset
16 <div id="event_counter" class="box">{% trans %}the event is finished{% endtrans %}</div>
d8729eb9edb5 events (invitation): indicate when the event is finished
Goffi <goffi@goffi.org>
parents: 21
diff changeset
17 {% endif %}
d8729eb9edb5 events (invitation): indicate when the event is finished
Goffi <goffi@goffi.org>
parents: 21
diff changeset
18
21
24af9089aacd default(event): added event_counter, which number of days left before event
Goffi <goffi@goffi.org>
parents: 20
diff changeset
19 {% endif %}
24af9089aacd default(event): added event_counter, which number of days left before event
Goffi <goffi@goffi.org>
parents: 20
diff changeset
20
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
21 {% include 'event/attendance.html' %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
22
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {% if items is defined %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
24 {% include 'blog/articles.html' %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
25 {% endif %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
26
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
27 {% endblock body %}