Mercurial > libervia-templates
annotate sat_templates/default/event/invitation.html @ 147:33c7ce833d3f
install: setup.py fix + moved "default" dir in a "sat_templates" dir:
the merge request at https://bugs.goffi.org/mr/view/3 was a good basis, but not fully working ("default" dir was removed), this patch fixes it, and do some improvments:
- moved "default" in "sat_templates" dir, which correspond to the python module, so it can be found easily from python
- added VERSION, and mercurial hash detection, in the same way as for Cagou and backend
- slight modification of classifiers
- replaces tabs coming from MR by spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 02 Jun 2018 17:25:43 +0200 |
parents | default/event/invitation.html@d8729eb9edb5 |
children | 80cf52fbcc40 |
rev | line source |
---|---|
11 | 1 {% extends 'base/base.html' %} |
2 | |
3 {% block body %} | |
17 | 4 <div class='invitation_header box'> |
20 | 5 <h1>{% trans %}Welcome {{name}}{% endtrans %}</h1> |
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 | 9 {% endif %} |
11 | 10 </div> |
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 | 21 {% include 'event/attendance.html' %} |
22 | |
23 {% if items is defined %} | |
24 {% include 'blog/articles.html' %} | |
25 {% endif %} | |
26 | |
27 {% endblock body %} |