diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2015-04-22 05:54:48 +0200 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2015-04-22 06:06:34 +0200 |
| commit | 4014682882d0b390dc099d05e6701521e5f64a31 (patch) | |
| tree | 0863af973c7d856d55f8d165c96cfdf599b389de /templates | |
| parent | 4060bf10eda3b17513907332890575566cf6e890 (diff) | |
fileboard support
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/fileboard.html | 15 | ||||
| -rw-r--r-- | templates/post_form.html | 12 | ||||
| -rw-r--r-- | templates/post_thread_fileboard.html | 42 |
3 files changed, 69 insertions, 0 deletions
diff --git a/templates/fileboard.html b/templates/fileboard.html new file mode 100644 index 00000000..a970cecb --- /dev/null +++ b/templates/fileboard.html @@ -0,0 +1,15 @@ +<table class='fileboard'> + <tr> + <th> <!-- checkbox --> + <th>{% trans %}No.{% endtrans %} + <th>{% trans %}Name{% endtrans %} + <th>{% trans %}File{% endtrans %} + <th>{% trans %}Tag{% endtrans %} + <th>{% trans %}Subject{% endtrans %} + <th>{% trans %}Size{% endtrans %} + <th>{% trans %}Date{% endtrans %} + <th>{% trans %}Replies{% endtrans %} + <th> <!-- reply --> + </tr> + {{ body }} +</table> diff --git a/templates/post_form.html b/templates/post_form.html index d2e644b3..ea3ac765 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -92,6 +92,18 @@ </td> </tr> {% endif %} + {% if config.allowed_tags and not id %} + <tr> + <th>{% trans %}Tag{% endtrans %}</th> + <td> + <select name="tag"> + {% for id, tag in config.allowed_tags %} + <option value="{{ id }}">{{ tag }}</option> + {% endfor %} + </select> + </td> + </tr> + {% endif %} <tr id="upload"> <th> {% trans %}File{% endtrans %} diff --git a/templates/post_thread_fileboard.html b/templates/post_thread_fileboard.html new file mode 100644 index 00000000..983bfe17 --- /dev/null +++ b/templates/post_thread_fileboard.html @@ -0,0 +1,42 @@ +{% filter remove_whitespace %} +{# tabs and new lines will be ignored #} + +{# we are intentionally breaking the thread_ID convention: the jses need to handle this case differently #} +<tr id="filethread_{{ post.id }}" class="intro" data-board="{{ board.uri }}"> + +<td><input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" /> +<td><a class="post_no" onclick="citeReply({{ post.id }})" href="{{ post.link('q') }}">{{ post.id }}</a> +<td>{% include 'post/name.html' %} + {% include 'post/flag.html' %} +<td>[<a href="{{ config.uri_img }}{{ post.files[0].file }}">{{ post.files[0].filename|e|bidi_cleanup }}</a>] +<td>{% if post.modifiers['tag'] %}[{{ post.modifiers['tag'] }}]{% endif %} +<td>{% include 'post/subject.html' %} + {% if post.sticky %} + {% if config.font_awesome %} + <i class="fa fa-thumb-tack"></i> + {% else %} + <img class="icon" title="Sticky" src="{{ config.image_sticky }}" alt="Sticky" /> + {% endif %} + {% endif %} + {% if post.locked %} + {% if config.font_awesome %} + <i class="fa fa-lock"></i> + {% else %} + <img class="icon" title="Locked" src="{{ config.image_locked }}" alt="Locked" /> + {% endif %} + {% endif %} + {% if post.bumplocked and (config.mod.view_bumplock < 0 or (post.mod and post.mod|hasPermission(config.mod.view_bumplock, board.uri))) %} + {% if config.font_awesome %} + <i class="fa fa-anchor"></i> + {% else %} + <img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Bumplocked" /> + {% endif %} + {% endif %} +<td>{{ post.files[0].size|filesize }} +<td>{% include 'post/time.html' %} +<td>{{ post.omitted }} +<td>{% include 'post/post_controls.html' %} + <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}Reply{% endtrans %}]</a> + +</tr> +{% endfilter %} |
