##// END OF EJS Templates
Removed "switch mode" button in form
neko259 -
r971:2ebdc7af default
parent child Browse files
Show More
@@ -1,96 +1,93 b''
1 1 {% extends "boards/base.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load cache %}
5 5 {% load static from staticfiles %}
6 6 {% load board %}
7 7
8 8 {% block head %}
9 9 <title>{{ opening_post.get_title|striptags|truncatewords:10 }}
10 10 - {{ site_name }}</title>
11 11 {% endblock %}
12 12
13 13 {% block content %}
14 14 {% get_current_language as LANGUAGE_CODE %}
15 15
16 16 {% cache 600 thread_view thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
17 17
18 18 <div class="image-mode-tab">
19 19 <a class="current_mode" href="{% url 'thread' opening_post.id %}">{% trans 'Normal mode' %}</a>,
20 20 <a href="{% url 'thread_gallery' opening_post.id %}">{% trans 'Gallery mode' %}</a>
21 21 </div>
22 22
23 23 {% if bumpable %}
24 24 <div class="bar-bg">
25 25 <div class="bar-value" style="width:{{ bumplimit_progress }}%" id="bumplimit_progress">
26 26 </div>
27 27 <div class="bar-text">
28 28 <span id="left_to_limit">{{ posts_left }}</span> {% trans 'posts to bumplimit' %}
29 29 </div>
30 30 </div>
31 31 {% endif %}
32 32
33 33 <div class="thread">
34 34 {% with can_bump=thread.can_bump %}
35 35 {% for post in thread.get_replies %}
36 36 {% with is_opening=forloop.first %}
37 37 {% post_view post moderator=moderator is_opening=is_opening thread=thread bumpable=can_bump opening_post_id=opening_post.id %}
38 38 {% endwith %}
39 39 {% endfor %}
40 40 {% endwith %}
41 41 </div>
42 42
43 43 {% if not thread.archived %}
44 44 <div class="post-form-w" id="form">
45 45 <script src="{% static 'js/panel.js' %}"></script>
46 46 <div class="form-title">{% trans "Reply to thread" %} #{{ opening_post.id }}</div>
47 47 <div class="post-form" id="compact-form">
48 48 <div class="swappable-form-full">
49 49 <form enctype="multipart/form-data" method="post"
50 50 >{% csrf_token %}
51 51 <div class="compact-form-text"></div>
52 52 {{ form.as_div }}
53 53 <div class="form-submit">
54 54 <input type="submit" value="{% trans "Post" %}"/>
55 55 </div>
56 56 </form>
57 57 </div>
58 <a onclick="swapForm(); return false;" href="#">
59 {% trans 'Switch mode' %}
60 </a>
61 58 <div><a href="{% url "staticpage" name="help" %}">
62 59 {% trans 'Text syntax' %}</a></div>
63 60 </div>
64 61 </div>
65 62
66 63 <script src="{% static 'js/jquery.form.min.js' %}"></script>
67 64 <script src="{% static 'js/thread_update.js' %}"></script>
68 65 <script src="{% static 'js/3party/centrifuge.js' %}"></script>
69 66 {% endif %}
70 67
71 68 <script src="{% static 'js/form.js' %}"></script>
72 69 <script src="{% static 'js/thread.js' %}"></script>
73 70
74 71 {% endcache %}
75 72 {% endblock %}
76 73
77 74 {% block metapanel %}
78 75
79 76 {% get_current_language as LANGUAGE_CODE %}
80 77
81 78 <span class="metapanel"
82 79 data-last-update="{{ last_update }}"
83 80 data-ws-token="{{ ws_token }}"
84 81 data-ws-project="{{ ws_project }}"
85 82 data-ws-host="{{ ws_host }}"
86 83 data-ws-port="{{ ws_port }}">
87 84 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
88 85 <span id="autoupdate">[-]</span>
89 86 <span id="reply-count">{{ thread.get_reply_count }}</span>/{{ max_replies }} {% trans 'messages' %},
90 87 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
91 88 {% trans 'Last update: ' %}<span id="last-update">{{ thread.last_edit_time }}</span>
92 89 [<a href="rss/">RSS</a>]
93 90 {% endcache %}
94 91 </span>
95 92
96 93 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now