Ajout dynamique des evenements - Il manque le frontend
parent
adfb69dbf9
commit
c35ed68d0a
@ -0,0 +1,24 @@
|
||||
Heading Test 3
|
||||
==============
|
||||
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
@ -0,0 +1,33 @@
|
||||
Heading
|
||||
=======
|
||||
|
||||
## Sub-heading
|
||||
|
||||
Paragraphs are separated
|
||||
by a blank line.
|
||||
|
||||
Two spaces at the end of a line
|
||||
produces a line break.
|
||||
|
||||
Text attributes _italic_,
|
||||
**bold**, `monospace`.
|
||||
|
||||
Horizontal rule:
|
||||
|
||||
---
|
||||
|
||||
Bullet list:
|
||||
|
||||
* apples
|
||||
* oranges
|
||||
* pears
|
||||
|
||||
Numbered list:
|
||||
|
||||
1. wash
|
||||
2. rinse
|
||||
3. repeat
|
||||
|
||||
> Markdown uses email-style > characters for blockquoting.
|
||||
|
||||
Inline <abbr title="Hypertext Markup Language">HTML</abbr> is supported.
|
@ -0,0 +1,37 @@
|
||||
Heading Test 2
|
||||
==============
|
||||
|
||||
## Sub-heading
|
||||
|
||||
Paragraphs are separated
|
||||
by a blank line.
|
||||
|
||||
Two spaces at the end of a line
|
||||
produces a line break.
|
||||
|
||||
Text attributes _italic_,
|
||||
**bold**, `monospace`.
|
||||
|
||||
Horizontal rule:
|
||||
|
||||
---
|
||||
|
||||
Bullet list:
|
||||
|
||||
* apples
|
||||
* oranges
|
||||
* pears
|
||||
|
||||
Numbered list:
|
||||
|
||||
1. wash
|
||||
2. rinse
|
||||
3. repeat
|
||||
|
||||
A [link][example].
|
||||
|
||||
[example]: http://example.com
|
||||
|
||||
> Markdown uses email-style > characters for blockquoting.
|
||||
|
||||
Inline <abbr title="Hypertext Markup Language">HTML</abbr> is supported.
|
@ -1,4 +1,23 @@
|
||||
<article id="events">
|
||||
<h2 class="major">Evènements et foyers</h2>
|
||||
|
||||
{% if mds %}
|
||||
{% for md in mds %}
|
||||
<a class="event" href="#event-{{ md[0].strftime('%d-%m-%Y') }}-{{ md[1] }}">
|
||||
<div class="date">{{ md[0].strftime('%a %d %b %Y') }}</div>
|
||||
<div class="title">{{ md[1] }}</div>
|
||||
<div class="description">{{ md[2] | safe }}</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>Pas d'évènements prévus à ce jour :(</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
|
||||
{% if mds %}
|
||||
{% for md in mds %}
|
||||
<article id="event-{{ md[0].strftime('%d-%m-%Y') }}-{{ md[1] }}">
|
||||
{{ md[3] | safe }}
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% endif %}
|
Loading…
Reference in New Issue