##// END OF EJS Templates
Disable autoescape where not needed
neko259 -
r1954:2a7c5d13 default
parent child Browse files
Show More
@@ -1,96 +1,96 b''
1 1 {% load staticfiles %}
2 2 {% load i18n %}
3 3 {% load l10n %}
4 4 {% load static from staticfiles %}
5 5
6 6 <!DOCTYPE html>
7 7 <html>
8 8 <head>
9 9 <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}" media="all"/>
10 10 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/highlight.css' %}" media="all"/>
11 11 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery-ui.min.css' %}" media="all"/>
12 12 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery.contextMenu.min.css' %}" media="all"/>
13 13 <link rel="stylesheet" type="text/css" href="{% static theme_css %}" media="all"/>
14 14
15 15 {% if rss_url %}
16 <link rel="alternate" type="application/rss+xml" href="{{ rss_url }}" title="{% trans 'Feed' %}"/>
16 <link rel="alternate" type="application/rss+xml" href="{{ rss_url|safe }}" title="{% trans 'Feed' %}"/>
17 17 {% endif %}
18 18
19 19 <link rel="icon" type="image/png"
20 20 href="{% static 'favicon.png' %}">
21 21
22 22 <meta name="viewport" content="width=device-width, initial-scale=1"/>
23 23 <meta charset="utf-8"/>
24 24
25 25 {% block head %}{% endblock %}
26 26 </head>
27 <body data-image-viewer="{{ image_viewer }}"
28 data-pow-difficulty="{{ pow_difficulty }}"
27 <body data-image-viewer="{{ image_viewer|safe }}"
28 data-pow-difficulty="{{ pow_difficulty|safe }}"
29 29 data-update-script="{% static 'js/updates.js' %}">
30 30 <script src="{% static 'js/jquery-2.2.0.min.js' %}"></script>
31 31
32 32 <header class="navigation_panel">
33 33 <a class="link" href="{% url 'landing' %}">{{ site_name }}</a>
34 34 <a href="{% url 'index' %}" title="{% trans "All threads" %}">~~~</a>,
35 35 {% if tags_str %}
36 36 <form action="{% url 'index' %}" method="post" class="post-button-form">{% csrf_token %}
37 37 {% if only_favorites %}
38 38 <button name="method" value="toggle_fav" class="fav"></button>,
39 39 {% else %}
40 40 <button name="method" value="toggle_fav" class="not_fav"></button>,
41 41 {% endif %}
42 42 </form>
43 43 {{ tags_str|safe }},
44 44 {% endif %}
45 45 <a href="{% url 'search' %}" title="{% trans 'Search' %}">{% trans 'search' %}</a>,
46 46 <a href="{% url 'feed' %}" title="{% trans 'Feed' %}">{% trans 'feed' %}</a>,
47 47 <a href="{% url 'random' %}" title="{% trans 'Random images' %}">{% trans 'images' %}</a>{% if has_fav_threads %},
48 48
49 49 <a href="{% url 'feed' %}?favorites" id="fav-panel-btn">{% trans 'favorites' %} <span id="new-fav-post-count" {% if not new_post_count %}style="display: none" {% endif %}>{{ new_post_count }}</span></a>
50 50 {% endif %}
51 51
52 52 {% if usernames %}
53 53 <a class="right-link link" href="{% url 'notifications' %}" title="{% trans 'Notifications' %}">
54 54 {% trans 'Notifications' %}
55 55 {% ifnotequal new_notifications_count 0 %}
56 (<b>{{ new_notifications_count }}</b>)
56 (<b>{{ new_notifications_count|safe }}</b>)
57 57 {% endifnotequal %}
58 58 </a>
59 59 {% endif %}
60 60
61 61 <a class="right-link link" href="{% url 'settings' %}">{% trans 'Settings' %}</a>
62 62 </header>
63 63
64 64 <div id="fav-panel"><div class="post">{% trans "Loading..." %}</div></div>
65 65
66 66 <script src="{% static 'js/3party/jquery-ui.min.js' %}"></script>
67 67 <script src="{% static 'js/3party/jquery.contextMenu.min.js' %}"></script>
68 68
69 69 {% block content %}{% endblock %}
70 70
71 71 <script src="{% static 'js/jquery.mousewheel.js' %}"></script>
72 72 <script src="{% static 'js/3party/highlight.min.js' %}"></script>
73 73
74 74 <script src="{% url 'js_info_dict' %}"></script>
75 75
76 76 <script src="{% static 'js/popup.js' %}"></script>
77 77 <script src="{% static 'js/image.js' %}"></script>
78 78 <script src="{% static 'js/refpopup.js' %}"></script>
79 79 <script src="{% static 'js/main.js' %}"></script>
80 80
81 81 <footer class="navigation_panel">
82 82 <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b>
83 83 {% block metapanel %}{% endblock %}
84 84 {% if rss_url %}
85 [<a href="{{ rss_url }}">RSS</a>]
85 [<a href="{{ rss_url|safe }}">RSS</a>]
86 86 {% endif %}
87 87 [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>]
88 88 [<a href="{% url 'index' %}?order=pub">{% trans 'New threads' %}</a>]
89 89 {% with ppd=posts_per_day|floatformat:2 %}
90 90 {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %}
91 91 {% endwith %}
92 92 <a class="link" href="#top" id="up">{% trans 'Up' %}</a>
93 93 </footer>
94 94
95 95 </body>
96 96 </html>
@@ -1,34 +1,36 b''
1 1 {% extends "boards/base.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load static %}
5 5 {% load board %}
6 6
7 7 {% block head %}
8 <title>{{ site_name }}</title>
8 <title>{{ site_name|safe }}</title>
9 9 {% endblock %}
10 10
11 11 {% block content %}
12 {% autoescape off %}
12 13 <div id="posts-table">
13 14 <div class="landing-tags">
14 {{ section_str|safe }}
15 {{ section_str }}
15 16 </div>
16 17 <br />
17 18 {% if latest_threads %}
18 19 <div class="landing-threads">
19 20 {% for op in latest_threads %}
20 21 <div class="thread-short gallery_image">
21 22 {{ op.attachments.first.get_view|safe }}
22 23 {% with title=op.get_title_or_text %}
23 24 {% if title %}
24 25 <div>{{ title }}</div>
25 26 {% endif %}
26 27 {% endwith %}
27 <div>{{ op.thread.get_sections_str|safe }}</div>
28 <div>{{ op.get_link_view|safe }} +{{ op.today_post_count }}</div>
28 <div>{{ op.thread.get_sections_str }}</div>
29 <div>{{ op.get_link_view }} +{{ op.today_post_count }}</div>
29 30 </div>
30 31 {% endfor %}
31 32 </div>
32 33 {% endif %}
33 34 </div>
35 {% endautoescape %}
34 36 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now