annotate default/forum/view_topics.html @ 120:5f4e147e9895

forum/topic: topic generation page
author Goffi <goffi@goffi.org>
date Tue, 30 Jan 2018 07:48:51 +0100
parents
children 4f27ce980ced
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
120
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
2 {% import 'input/field.html' as field with context%}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'input/textbox.html' as textbox with context %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% import 'input/navigation.html' as navigation with context %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% import 'components/avatar.html' as avatar with context %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
6
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
7 {% block body %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
8
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {% if not topics %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <div class="message_info">
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {% trans %}There is not message yet in this forum.{% endtrans %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
12 {% if profile %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
13 {% trans %}You can start a topic of interest by filling this form.{% endtrans %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
14 {% else %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
15 {% trans %}You can login to create a new topic.{% endtrans %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
16 {% endif %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
17 </div>
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
18 {% endif %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {% if profile %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
20 <div class="forum_topic_create">
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
21 {% call textbox.textbox(service, node, placeholder=_("Your message"), submit_label=_("Create topic"), type="new_topic") %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
22 {{ field.text("title", placeholder=_("Your topic (try to be short and explicit)"), required=True) }}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {% endcall %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
24 </div>
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
25 {% endif %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
26
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
27 <div id="forum_topics">
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
28 {% for topic in topics %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
29 <div>
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
30 <a href="{{topic.http_uri}}">
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
31 {{ avatar.avatar(topic.author) }}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
32 {{topic.title}}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
33 </a>
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
34 </div>
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
35 {% endfor %}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
36 </div>
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
37
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
38 {{ navigation.prev_next(_("older topics"), _("newer topics")) }}
5f4e147e9895 forum/topic: topic generation page
Goffi <goffi@goffi.org>
parents:
diff changeset
39 {% endblock body %}