##// END OF EJS Templates
Integrated image previews into the templates. Removed fancybox.
neko259 -
r242:2dc7d85c default
parent child Browse files
Show More
@@ -1,19 +1,11 b''
1 $( document ).ready(function() {
1 $( document ).ready(function() {
2 $("a[href='#top']").click(function() {
2 $("a[href='#top']").click(function() {
3 $("html, body").animate({ scrollTop: 0 }, "slow");
3 $("html, body").animate({ scrollTop: 0 }, "slow");
4 return false;
4 return false;
5 });
5 });
6
6
7 $(".fancy").fancybox({
8 closeBtn: false,
9 closeClick: true,
10 padding: 0,
11 openEffect: 'none',
12 closeEffect: 'none'
13 });
14
15 addImgPreview();
7 addImgPreview();
16 addRefLinkMap();
8 addRefLinkMap();
17 addPopups();
9 addPopups();
18 addMarkPanel();
10 addMarkPanel();
19 });
11 });
@@ -1,58 +1,56 b''
1 {% load staticfiles %}
1 {% load staticfiles %}
2 {% load i18n %}
2 {% load i18n %}
3
3
4 <!DOCTYPE html>
4 <!DOCTYPE html>
5 <html>
5 <html>
6 <head>
6 <head>
7 <link rel="stylesheet" type="text/css"
7 <link rel="stylesheet" type="text/css"
8 href="{{ STATIC_URL }}css/jquery.fancybox.css" media="all"/>
9 <link rel="stylesheet" type="text/css"
10 href="{{ STATIC_URL }}css/base.css" media="all"/>
8 href="{{ STATIC_URL }}css/base.css" media="all"/>
11 <link rel="stylesheet" type="text/css"
9 <link rel="stylesheet" type="text/css"
12 href="{{ STATIC_URL }}css/{{ theme }}/base_page.css?5" media="all"/>
10 href="{{ STATIC_URL }}css/{{ theme }}/base_page.css?5" media="all"/>
13 <link rel="alternate" type="application/rss+xml" href="rss/" title="
11 <link rel="alternate" type="application/rss+xml" href="rss/" title="
14 {% trans 'Feed' %}"/>
12 {% trans 'Feed' %}"/>
15
13
16 <link rel="icon" type="image/png"
14 <link rel="icon" type="image/png"
17 href="{{ STATIC_URL }}favicon.png">
15 href="{{ STATIC_URL }}favicon.png">
18
16
19 <meta name="viewport" content="width=device-width, initial-scale=1"/>
17 <meta name="viewport" content="width=device-width, initial-scale=1"/>
20 <meta charset="utf-8"/>
18 <meta charset="utf-8"/>
21 {% block head %}{% endblock %}
19 {% block head %}{% endblock %}
22 </head>
20 </head>
23 <body>
21 <body>
24 <script src="{{ STATIC_URL }}js/jquery-2.0.1.min.js"></script>
22 <script src="{{ STATIC_URL }}js/jquery-2.0.1.min.js"></script>
25 <script src="{{ STATIC_URL }}js/jquery-ui-1.10.3.custom.min.js"></script>
23 <script src="{{ STATIC_URL }}js/jquery-ui-1.10.3.custom.min.js"></script>
26 <script src="{{ STATIC_URL }}js/jquery.mousewheel.js"></script>
24 <script src="{{ STATIC_URL }}js/jquery.mousewheel.js"></script>
27 <script src="{{ STATIC_URL }}js/jquery.fancybox.pack.js"></script>
28 <script src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
25 <script src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
29 <script src="{{ STATIC_URL }}js/refmaps.js"></script>
26 <script src="{{ STATIC_URL }}js/refmaps.js"></script>
30 <script src="{{ STATIC_URL }}js/panel.js"></script>
27 <script src="{{ STATIC_URL }}js/panel.js"></script>
31 <script src="{{ STATIC_URL }}js/popup.js"></script>
28 <script src="{{ STATIC_URL }}js/popup.js"></script>
29 <script src="{{ STATIC_URL }}js/image.js"></script>
32 <script src="{{ STATIC_URL }}js/main.js"></script>
30 <script src="{{ STATIC_URL }}js/main.js"></script>
33
31
34 <div class="navigation_panel">
32 <div class="navigation_panel">
35 <a class="link" href="{% url 'index' %}">{% trans "All threads" %}</a>
33 <a class="link" href="{% url 'index' %}">{% trans "All threads" %}</a>
36 {% for tag in tags %}
34 {% for tag in tags %}
37 <a class="tag" href="{% url 'tag' tag_name=tag.name %}"
35 <a class="tag" href="{% url 'tag' tag_name=tag.name %}"
38 >{{ tag.name }}</a>
36 >{{ tag.name }}</a>
39 {% endfor %}
37 {% endfor %}
40 <a class="tag" href="{% url 'tags' %}" title="{% trans 'Tag management' %}"
38 <a class="tag" href="{% url 'tags' %}" title="{% trans 'Tag management' %}"
41 >[...]</a>
39 >[...]</a>
42 <a class="link" href="{% url 'settings' %}">{% trans 'Settings' %}</a>
40 <a class="link" href="{% url 'settings' %}">{% trans 'Settings' %}</a>
43 </div>
41 </div>
44
42
45 {% block content %}{% endblock %}
43 {% block content %}{% endblock %}
46
44
47 <div class="navigation_panel">
45 <div class="navigation_panel">
48 {% block metapanel %}{% endblock %}
46 {% block metapanel %}{% endblock %}
49 [<a href="{% url "login" %}">{% trans 'Login' %}</a>]
47 [<a href="{% url "login" %}">{% trans 'Login' %}</a>]
50 <a class="link" href="#top">{% trans 'Up' %}</a>
48 <a class="link" href="#top">{% trans 'Up' %}</a>
51 </div>
49 </div>
52
50
53 <div class="footer">
51 <div class="footer">
54 <!-- Put your banners here -->
52 <!-- Put your banners here -->
55 </div>
53 </div>
56
54
57 </body>
55 </body>
58 </html>
56 </html>
General Comments 0
You need to be logged in to leave comments. Login now