Merge lp:~widelands-dev/widelands-website/django_staticfiles into lp:widelands-website

Proposed by kaputtnik
Status: Merged
Merged at revision: 511
Proposed branch: lp:~widelands-dev/widelands-website/django_staticfiles
Merge into: lp:widelands-website
Diff against target: 1563 lines (+226/-241)
48 files modified
.bzrignore (+1/-9)
README.txt (+11/-0)
documentation/conf.py (+1/-1)
local_settings.py.sample (+4/-6)
local_urls.py.sample (+11/-6)
mainpage/templatetags/wl_markdown.py (+8/-3)
media/js/jquery.sexy-vote.js (+0/-76)
pybb/models.py (+7/-4)
settings.py (+11/-7)
templates/base.html (+9/-8)
templates/django_messages/base.html (+4/-2)
templates/django_messages/inbox.html (+3/-2)
templates/django_messages/outbox.html (+2/-1)
templates/django_messages/trash.html (+4/-3)
templates/header.html (+6/-5)
templates/mainpage.html (+4/-3)
templates/mainpage/developers.html (+2/-2)
templates/news/base_news.html (+2/-1)
templates/news/post_detail.html (+3/-2)
templates/notification/base.html (+2/-1)
templates/privacy_policy.html (+2/-2)
templates/pybb/base.html (+2/-1)
templates/pybb/category.html (+3/-2)
templates/pybb/forum.html (+8/-7)
templates/pybb/index.html (+7/-6)
templates/pybb/inlines/display_category.html (+9/-8)
templates/pybb/inlines/forum_row.html (+4/-2)
templates/pybb/inlines/post.html (+8/-7)
templates/pybb/inlines/topic_row.html (+7/-5)
templates/pybb/post_form.html (+5/-4)
templates/pybb/topic.html (+28/-27)
templates/registration/base.html (+0/-1)
templates/search/search.html (+2/-1)
templates/threadedcomments/preview_comment.html (+2/-1)
templates/wiki/base.html (+2/-1)
templates/wiki/edit.html (+2/-1)
templates/wlhelp/base.html (+3/-2)
templates/wlmaps/base.html (+2/-2)
templates/wlmaps/edit_comment.html (+3/-2)
templates/wlmaps/index.html (+2/-1)
templates/wlmaps/map_detail.html (+4/-3)
templates/wlmaps/upload.html (+3/-1)
templates/wlpoll/base.html (+4/-2)
templates/wlpoll/poll_list.html (+3/-1)
templates/wlprofile/base.html (+3/-1)
templates/wlscheduling/base.html (+6/-4)
templates/wlscreens/base.html (+3/-1)
templates/wlscreens/index.html (+4/-3)
To merge this branch: bzr merge lp:~widelands-dev/widelands-website/django_staticfiles
Reviewer Review Type Date Requested Status
GunChleoc Approve
kaputtnik (community) Needs Resubmitting
Review via email: mp+359345@code.launchpad.net

Commit message

Implement django's default behavior for static files (css, js, images)

Description of the change

The problem i had when introducing django-star-ratings (https://wl.widelands.org/forum/topic/4389/) was a result of not implementing django's default behavior for static files (css, js, images), which was introduced many versions ago. Modern third party django-apps rely on this default behavior, and this is what had bitten me this time. On the server i have fixed this by configuring local_settings.py. This branch reflects the changes i did on the server, and some other related stuff. As a sideeffect, this solves also this bug :-)

Main concepts of new static files handling:
1. Setting STATIC_ROOT to an absolute path where static files will be collected using the management command 'collectstatic'. This command needs executed if settings.DEBUG=False. 'collectstatic' searches all apps which are in INSTALLED_APPS for a folder called 'static' and copies, or symlink, all of it's content into STATIC_ROOT. https://docs.djangoproject.com/en/1.11/ref/contrib/staticfiles/#collectstatic

2. Different urls for static files and user uploaded files.

3. Use of the 'static' template tag in the templates to refer to static content (this is the main reason why this diff is that big)

Differences to the current state on the server:
1. Using the collectstatic command from this branch collects static files in 'media/static_collected/' (on the server i used 'media/static_foreign', which was a bad name).

Unchanged:
Files uploaded by a user where still uploaded to 'media/[wlmaps|wlprofile|wlimages|wlscreens|..]'. The name of the link stays unchanged, so '/wlmedia/'.

Other things:
1. Moved own static files from 'media/' to 'mainpage/static/' or to the app (folder) where it belongs to. I am planning to do the same with the subfolders in 'templates/*' to have all things related to one app in one folder. So working e.g. on some things in pybb, pybb related css is found in 'pybb/static/css/' and templates will be in 'pybb/templates/pybb/*.html'
2. I found also 2 issues if one wants to setup the website from scratch. Those are fixed in https://bazaar.launchpad.net/~widelands-dev/widelands-website/django_staticfiles/revision/514

To get this in:

1. Set website maintenance
2. Remove the contents of 'media/static_foreign' to avoid merge conflicts
3. merge the branch
4. Remove setting of STATIC_ROOT or set it to the destination where you want to collect static files. Remove the lines containing 'bd' and set MEDIA_ROOT to the destination where uploaded media should be stored. Remove STATIC_MEDIA_PATH (this was useless at all, because prior only used in local_urls.py)
5. run 'python manage.py collectstatic -l' (the switch '-l' creates symlinks instead of copying the files)
6. Change the url which refers to static content to point to the folder of STATIC_ROOT
7. pybb posts containing a smiley needs resaving to exchange the url pointing to the new smiley directory for field 'body_html'. This can be done best in the management shell:
from pybb.models import Post
for post in Post.objects.filter(body_html__contains='/wlmedia/img/smileys/'):
    post.save()
This takes some time...
8. Unset website maintenance

I will setup the alpha site for testing.

To post a comment you must log in.
Revision history for this message
kaputtnik (franku) wrote :

Alpha is up and running :-)

Revision history for this message
kaputtnik (franku) wrote :

I found some strange inconsistencies in the alpha database, which i want to fix. So alpha is down again.

Revision history for this message
kaputtnik (franku) wrote :

Alpha is up again...

Revision history for this message
GunChleoc (gunchleoc) wrote :

When clicking on a screenshot, it won't bring up the lightbox with the bigger version. I don't have admin rights on the Alpha site, so I can't add a new one to test if it's just an issue with old data.

I have added some diff comments.

We should also grep for "MEDIA_URL" and "foreign" to make sure it's clean - I can't do that right now, because bzr keeps crapping out on this machine.

Revision history for this message
kaputtnik (franku) wrote :

Found what's was wrong with the screens :-) This is fixed.

> I have added some diff comments.

> We should also grep for "MEDIA_URL" and "foreign"

Oh you're so right... i grep'ed only for "{{ MEDIA_URL" to search for it in the templates but MEDIA_URL is also used in some python scripts. Searching for 'foreign' isn't needed.

Will push a fixed branch next week.

Many thanks for testing and your input :-). Currently i am feeling getting stupider with every day :-S

Revision history for this message
kaputtnik (franku) wrote :

python scripts are fine, but pybb posts needs resaving to apply the new static directory for smileys.

Revision history for this message
kaputtnik (franku) :
review: Needs Fixing
519. By kaputtnik

addressed code review; fixed an error for links with no texts; fixed loading lightbox_v2 css

520. By kaputtnik

removed superfluos variable

521. By kaputtnik

don't collect static files for the documentation

Revision history for this message
kaputtnik (franku) wrote :

The latest changes are applied to alpha now.

review: Needs Resubmitting
Revision history for this message
GunChleoc (gunchleoc) wrote :

Tested again. Looks good to me :)

review: Approve
Revision history for this message
kaputtnik (franku) wrote :

Thanks :-)

522. By kaputtnik

fixed showing last posts

Revision history for this message
kaputtnik (franku) wrote :

Merged and deployed.

I had some errors when re-saving the posts, so i added an additional try clause.

A question: The additional try clause is not included in this branch, because i merged this branch, changed the code, and then commited into trunk. Should i push into this branch also?

Revision history for this message
GunChleoc (gunchleoc) wrote :

For small fix-ups like that, I think it's OK to recycle the branch and merge it again.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2018-11-21 17:36:00 +0000
+++ .bzrignore 2018-11-28 19:45:23 +0000
@@ -13,12 +13,4 @@
13whoosh_index13whoosh_index
14media/map_object_info14media/map_object_info
15media/wlhelp15media/wlhelp
16media/static_foreign/admin16media/static_collected/*
17media/static_foreign/basic.css
18media/static_foreign/black20.png
19media/static_foreign/but1.png
20media/static_foreign/parchment.png
21media/static_foreign/pygments.css
22media/static_foreign/star-ratings
23media/static_foreign/widelands.css
24media/static_foreign/wood.png
2517
=== modified file 'README.txt'
--- README.txt 2018-05-09 06:02:44 +0000
+++ README.txt 2018-11-28 19:45:23 +0000
@@ -99,6 +99,17 @@
9999
100Now everything should work.100Now everything should work.
101101
102Runnning with DBUG=False
103------------------------
104In case you want to test the site with the setting DEBUG=False, you might
105notice that at least the admin site is missing all css. To fix this run:
106
107 $ ./manage.py collectstatic -l
108
109This will create symbolic links (-l) to static contents of third party apps in
110the folder defined by STATIC_ROOT. See:
111https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#collectstatic
112
102Accessing the website from other machines113Accessing the website from other machines
103-----------------------------------------114-----------------------------------------
104115
105116
=== modified file 'documentation/conf.py'
--- documentation/conf.py 2018-05-09 16:31:18 +0000
+++ documentation/conf.py 2018-11-28 19:45:23 +0000
@@ -123,7 +123,7 @@
123# Add any paths that contain custom static files (such as style sheets) here,123# Add any paths that contain custom static files (such as style sheets) here,
124# relative to this directory. They are copied after the builtin static files,124# relative to this directory. They are copied after the builtin static files,
125# so a file named "default.css" will overwrite the builtin "default.css".125# so a file named "default.css" will overwrite the builtin "default.css".
126html_static_path = ['static/']126html_static_path = ['styles/']
127127
128# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,128# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
129# using the given strftime format.129# using the given strftime format.
130130
=== renamed directory 'documentation/static' => 'documentation/styles'
=== modified file 'local_settings.py.sample'
--- local_settings.py.sample 2018-10-01 16:01:40 +0000
+++ local_settings.py.sample 2018-11-28 19:45:23 +0000
@@ -8,11 +8,9 @@
8import os8import os
9import re9import re
1010
11bd = os.getcwd() # Better make this a static path11# Absolute path for uploaded files, e.g.:
1212# images for avatars, wiki, wlscreens, news cathegories and also mapfiles
13STATIC_MEDIA_PATH = os.path.join(bd, 'media')13MEDIA_ROOT = os.path.join(os.getcwd(), 'media/')
14MEDIA_ROOT = os.path.join(bd, 'media/')
15
1614
17# If you are using the developer version of widelands from Launchpad15# If you are using the developer version of widelands from Launchpad
18# set WIDELANDS_SVN_DIR to the correct path. See also:16# set WIDELANDS_SVN_DIR to the correct path. See also:
@@ -89,7 +87,7 @@
89# 'logfile': {87# 'logfile': {
90# 'level':'DEBUG',88# 'level':'DEBUG',
91# 'class':'logging.FileHandler',89# 'class':'logging.FileHandler',
92# 'filename': bd + "/log.txt",90# 'filename': os.getcwd() + "/log.txt",
93# },91# },
94# },92# },
95# 'root': {93# 'root': {
9694
=== modified file 'local_urls.py.sample'
--- local_urls.py.sample 2018-05-24 07:23:08 +0000
+++ local_urls.py.sample 2018-11-28 19:45:23 +0000
@@ -6,16 +6,21 @@
6# Don't use this file on the server!6# Don't use this file on the server!
77
8local_urlpatterns = [8local_urlpatterns = [
9 # Files uploaded by users
9 url(r'^wlmedia/(?P<path>.*)$',10 url(r'^wlmedia/(?P<path>.*)$',
10 serve,11 serve,
11 {'document_root': settings.STATIC_MEDIA_PATH},12 {'document_root': settings.MEDIA_ROOT},
12 name='static_media'),13 name='static_media'),
13 url(r'^media/(?P<path>.*)$',14 # Static files if DEBUG=False. Use the 'collectstatic' command to fetch them
15 url(r'^static/(?P<path>.*)$',
14 serve,16 serve,
15 {'document_root': settings.STATIC_MEDIA_PATH},17 {'document_root': settings.STATIC_ROOT},
16 name='static_media_pybb'),18 name='static_media_collected'),
19 # HTML documentation created by ./manage.py create_docs
17 url(r'^documentation/(?P<path>.*)$',20 url(r'^documentation/(?P<path>.*)$',
18 serve,21 serve,
19 {'document_root': path.join(settings.STATIC_MEDIA_PATH, 'documentation/html')},22 {'document_root': path.join(
20 name='documentation'),23 settings.MEDIA_ROOT, 'documentation/html')},
24 name='documentation')
21]25]
26
2227
=== added directory 'mainpage/static'
=== renamed directory 'media/css' => 'mainpage/static/css'
=== renamed file 'media/favicon.ico' => 'mainpage/static/favicon.ico'
=== renamed directory 'media/img' => 'mainpage/static/img'
=== renamed directory 'media/js' => 'mainpage/static/js'
=== modified file 'mainpage/templatetags/wl_markdown.py'
--- mainpage/templatetags/wl_markdown.py 2018-11-16 07:20:46 +0000
+++ mainpage/templatetags/wl_markdown.py 2018-11-28 19:45:23 +0000
@@ -102,15 +102,20 @@
102 tag: classify for this tag102 tag: classify for this tag
103103
104 """104 """
105 # No class change for image links
106 if tag.next_element.name == 'img':
107 return
108105
109 try:106 try:
110 href = tag['href'].lower()107 href = tag['href'].lower()
108 if not tag.string:
109 # Apply href to empty linkname, e.g.: [](/some/link)
110 # Just to be sure tag.next_element is never None
111 tag.string = href
111 except KeyError:112 except KeyError:
112 return113 return
113114
115 # No class change for image links
116 if tag.next_element.name == 'img':
117 return
118
114 # Check for external link119 # Check for external link
115 if href.startswith('http'):120 if href.startswith('http'):
116 for domain in LOCAL_DOMAINS:121 for domain in LOCAL_DOMAINS:
117122
=== removed file 'media/css/register.css'
=== removed file 'media/img/active_star.gif'
118Binary files media/img/active_star.gif 2011-07-03 14:00:24 +0000 and media/img/active_star.gif 1970-01-01 00:00:00 +0000 differ123Binary files media/img/active_star.gif 2011-07-03 14:00:24 +0000 and media/img/active_star.gif 1970-01-01 00:00:00 +0000 differ
=== removed file 'media/img/passive_star.gif'
119Binary files media/img/passive_star.gif 2011-07-03 14:00:24 +0000 and media/img/passive_star.gif 1970-01-01 00:00:00 +0000 differ124Binary files media/img/passive_star.gif 2011-07-03 14:00:24 +0000 and media/img/passive_star.gif 1970-01-01 00:00:00 +0000 differ
=== removed file 'media/js/jquery.sexy-vote.js'
--- media/js/jquery.sexy-vote.js 2017-09-23 08:52:36 +0000
+++ media/js/jquery.sexy-vote.js 1970-01-01 00:00:00 +0000
@@ -1,76 +0,0 @@
1jQuery.fn.sexyVote = function(config) {
2 config = config || {};
3 var defaults = {
4 activeImageSrc: "active_star.gif",
5 passiveImageSrc: "passive_star.gif",
6 maxScore: 5,
7 fn: new Function(),
8 messages: [
9 "Your vote have been saved.",
10 "Very bad",
11 "Bad",
12 "Good, but could be better",
13 "Good enough",
14 "Very good"
15 ]
16 };
17
18 config = jQuery.extend(defaults, config);
19
20
21
22 return this.each(function() {
23 var $container = jQuery(this);
24
25 for (var i = 0, num = config.maxScore * 2; i < num; ++i) {
26 jQuery("<img />").appendTo($container);
27 }
28
29 jQuery("<span />").appendTo($container);
30
31 $container.find("img:even").
32 attr("src", config.passiveImageSrc).
33 css({display: "inline"}).
34 on("mouseover", function(e) {
35 var len = $container.find("img:even").index(e.target) + 1;
36
37 $container.find("img:even").slice(0, len).css({display: "none"});
38
39 $container.find("img:odd").slice(0, len).css({display: "inline"});
40
41 $container.find("span").text(config.messages[len]);
42
43
44 }).
45 end().
46 find("img:odd").
47 attr("src", config.activeImageSrc).
48 css({display: "none"}).
49 on("mouseout", function(e) {
50
51 var len = $container.find("img:odd").
52 index(e.target) + 1;
53
54 $container.find("img:odd")
55 .slice(0, len).
56 css({display: "none"});
57 $container.find("img:even").
58 slice(0, len).
59 css({display: "inline"});
60
61 $container.find("span").
62 text("");
63
64
65 }).
66 on("click", function(e) {
67 $container.find("img").
68 off("mouseover").
69 off("mouseout").
70 off("click");
71 $container.find("span").
72 text(config.messages[0]);
73 config.fn.call(this, e, $container.find("img:odd").index(e.target) + 1);
74 });
75 });
76};
770
=== added directory 'media/static_collected'
=== removed directory 'media/static_foreign'
=== added directory 'news/static'
=== added directory 'news/static/css'
=== renamed file 'media/css/news.css' => 'news/static/css/news.css'
=== added directory 'notification/static'
=== added directory 'notification/static/css'
=== renamed file 'media/css/notice.css' => 'notification/static/css/notice.css'
=== modified file 'pybb/models.py'
--- pybb/models.py 2018-11-18 10:28:03 +0000
+++ pybb/models.py 2018-11-28 19:45:23 +0000
@@ -220,10 +220,13 @@
220 self).get_queryset().filter(hidden=True)220 self).get_queryset().filter(hidden=True)
221221
222 hidden_topics = []222 hidden_topics = []
223 for post in qs:223 try:
224 if post.topic.is_hidden:224 for post in qs:
225 hidden_topics.append(post.topic)225 if post.topic.is_hidden:
226 return hidden_topics226 hidden_topics.append(post.topic)
227 return hidden_topics
228 except:
229 return []
227230
228231
229class Post(RenderableItem):232class Post(RenderableItem):
230233
=== added directory 'pybb/static'
=== added directory 'pybb/static/css'
=== renamed file 'media/css/forum.css' => 'pybb/static/css/forum.css'
=== renamed directory 'media/forum' => 'pybb/static/forum'
=== modified file 'settings.py'
--- settings.py 2018-11-19 17:34:37 +0000
+++ settings.py 2018-11-28 19:45:23 +0000
@@ -48,6 +48,7 @@
4848
49# Absolute path to the directory that holds media.49# Absolute path to the directory that holds media.
50# Example: "/home/media/media.lawrence.com/"50# Example: "/home/media/media.lawrence.com/"
51# Overwritten in local_settings.py
51MEDIA_ROOT = ''52MEDIA_ROOT = ''
5253
53# URL that handles the media served from MEDIA_ROOT. Make sure to use a54# URL that handles the media served from MEDIA_ROOT. Make sure to use a
@@ -55,6 +56,15 @@
55# Examples: "http://media.lawrence.com", "http://example.com/media/"56# Examples: "http://media.lawrence.com", "http://example.com/media/"
56MEDIA_URL = '/wlmedia/'57MEDIA_URL = '/wlmedia/'
5758
59# Absolute path where static files from thirdparty apps will be collected using
60# the command: ./manage.py collectstatic
61STATIC_ROOT = os.path.join(BASE_DIR, 'media/static_collected/')
62
63# URL to use when referring to static files located in STATIC_ROOT.
64# Must be different than MEDIA_URL!
65# https://docs.djangoproject.com/en/1.8/howto/static-files/
66STATIC_URL = '/static/'
67
58# Make this unique, and don't share it with anybody.68# Make this unique, and don't share it with anybody.
59SECRET_KEY = '#*bc7*q0-br42fc&6l^x@zzk&(=-#gr!)fn@t30n54n05jkqcu'69SECRET_KEY = '#*bc7*q0-br42fc&6l^x@zzk&(=-#gr!)fn@t30n54n05jkqcu'
6070
@@ -63,7 +73,6 @@
63# List of finder classes that know how to find static files in73# List of finder classes that know how to find static files in
64# various locations.74# various locations.
65STATICFILES_FINDERS = [75STATICFILES_FINDERS = [
66 'django.contrib.staticfiles.finders.FileSystemFinder',
67 'django.contrib.staticfiles.finders.AppDirectoriesFinder',76 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
68]77]
6978
@@ -101,7 +110,6 @@
101 # Modified 3rd party apps110 # Modified 3rd party apps
102 'wiki.apps.WikiConfig', # This is based on wikiapp, but has some local modifications111 'wiki.apps.WikiConfig', # This is based on wikiapp, but has some local modifications
103 'news', # This is based on simple-blog, but has some local modifications112 'news', # This is based on simple-blog, but has some local modifications
104 'news.managers',
105 'pybb.apps.PybbConfig', # Feature enriched version of pybb113 'pybb.apps.PybbConfig', # Feature enriched version of pybb
106114
107 # Thirdparty apps115 # Thirdparty apps
@@ -149,10 +157,6 @@
149 },157 },
150]158]
151159
152# Static files (CSS, JavaScript, Images)
153# https://docs.djangoproject.com/en/1.8/howto/static-files/
154STATIC_URL = '/media/'
155
156############################160############################
157# Activation configuration #161# Activation configuration #
158############################162############################
@@ -198,7 +202,7 @@
198 'xoops.widelands.org'202 'xoops.widelands.org'
199]203]
200204
201SMILEY_DIR = MEDIA_URL + 'img/smileys/'205SMILEY_DIR = STATIC_URL + 'img/smileys/'
202# Keep this list ordered by length of smileys206# Keep this list ordered by length of smileys
203SMILEYS = [207SMILEYS = [
204 ('O:-)', 'face-angel.png'),208 ('O:-)', 'face-angel.png'),
205209
=== modified file 'templates/base.html'
--- templates/base.html 2018-10-15 16:11:43 +0000
+++ templates/base.html 2018-11-28 19:45:23 +0000
@@ -5,6 +5,7 @@
5 This file is extended by all other files which are not5 This file is extended by all other files which are not
6 included here6 included here
7{% endcomment %}7{% endcomment %}
8{% load static %}
8<html lang="en">9<html lang="en">
910
10 <head>11 <head>
@@ -14,20 +15,20 @@
14 <meta name="google-site-verification" content="1A5uFV_zNuXazJ46-572-_lLzcCTEQ77iHaSPFZd53Y" />15 <meta name="google-site-verification" content="1A5uFV_zNuXazJ46-572-_lLzcCTEQ77iHaSPFZd53Y" />
1516
16 <title>{% block title %}Widelands.org{% endblock %}</title> 17 <title>{% block title %}Widelands.org{% endblock %}</title>
17 <link href="{{ MEDIA_URL }}favicon.ico" rel="icon" />18 <link href="{% static 'favicon.ico' %}" rel="icon" />
1819
19 <!-- CSS --> 20 <!-- CSS -->
20 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/base.css?v1" />21 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/base.css' %}?v1" />
21 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/navigation.css" />22 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/navigation.css' %}" />
22 <!--[if lt IE 9]>23 <!--[if lt IE 9]>
23 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/base_ielt9.css" />24 <link rel="stylesheet" type="text/css" href="{% static 'css/base_ielt9.css' %}" />
24 <![endif]-->25 <![endif]-->
2526
26 <!-- Javascript Bread & Butter Scripts -->27 <!-- Javascript Bread & Butter Scripts -->
27 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-3.2.1.js"></script>28 <script type="text/javascript" src="{% static 'js/jquery-3.2.1.js' %}"></script>
28 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-ui.min.js"></script>29 <script type="text/javascript" src="{% static 'js/jquery-ui.min.js' %}"></script>
29 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery_csrf_ajax.js"></script>30 <script type="text/javascript" src="{% static 'js/jquery_csrf_ajax.js' %}"></script>
30 <script type="text/javascript" src="{{ MEDIA_URL }}js/search.js"></script>31 <script type="text/javascript" src="{% static 'js/search.js' %}"></script>
31 {% block extra_head %}{% endblock %}32 {% block extra_head %}{% endblock %}
32 </head>33 </head>
3334
3435
=== modified file 'templates/django_messages/base.html'
--- templates/django_messages/base.html 2018-11-09 07:00:30 +0000
+++ templates/django_messages/base.html 2018-11-28 19:45:23 +0000
@@ -1,9 +1,11 @@
1{% extends "wlprofile/base.html" %}1{% extends "wlprofile/base.html" %}
2{% load i18n %} 2{% load i18n %}
3{% load static %}
4
3{% block bodyclass %}about{% endblock %}5{% block bodyclass %}about{% endblock %}
46
5{% block extra_head %}7{% block extra_head %}
6 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/messages.css" />8 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/messages.css' %}" />
7{{ block.super}}{% endblock %}9{{ block.super}}{% endblock %}
810
9{% block messages %}class="active"{% endblock %}11{% block messages %}class="active"{% endblock %}
1012
=== modified file 'templates/django_messages/inbox.html'
--- templates/django_messages/inbox.html 2018-09-08 09:44:03 +0000
+++ templates/django_messages/inbox.html 2018-11-28 19:45:23 +0000
@@ -2,6 +2,7 @@
2{% load i18n %} 2{% load i18n %}
3{% load custom_date %}3{% load custom_date %}
4{% load wlprofile_extras %}4{% load wlprofile_extras %}
5{% load static %}
56
6{% block title %}7{% block title %}
7Inbox - {{ block.super }}8Inbox - {{ block.super }}
@@ -25,14 +26,14 @@
25 <td>{{ message.sender|user_link }}</td>26 <td>{{ message.sender|user_link }}</td>
26 <td>27 <td>
27 {% if message.replied %}28 {% if message.replied %}
28 <img src="{{ MEDIA_URL }}img/replied.png" alt="replied" title="replied" />29 <img src="{% static 'img/replied.png' %}" alt="replied" title="replied" />
29 {% endif %}30 {% endif %}
30 <a href="{{message.get_absolute_url }}">{{ message.subject }}</a>31 <a href="{{message.get_absolute_url }}">{{ message.subject }}</a>
31 </td>32 </td>
32 <td>{{ message.sent_at|custom_date:user }}</td>33 <td>{{ message.sent_at|custom_date:user }}</td>
33 <td>34 <td>
34 <a href="{% url 'messages_delete' message.id %}?next={{ request.path|iriencode }}">35 <a href="{% url 'messages_delete' message.id %}?next={{ request.path|iriencode }}">
35 <img src="{{ MEDIA_URL }}img/delete.png" alt="delete" title="delete" />36 <img src="{% static 'img/delete.png' %}" alt="delete" title="delete" />
36 </a>37 </a>
37 </td>38 </td>
38 </tr>39 </tr>
3940
=== modified file 'templates/django_messages/outbox.html'
--- templates/django_messages/outbox.html 2018-04-11 07:43:01 +0000
+++ templates/django_messages/outbox.html 2018-11-28 19:45:23 +0000
@@ -2,6 +2,7 @@
2{% load i18n %} 2{% load i18n %}
3{% load custom_date %}3{% load custom_date %}
4{% load wlprofile_extras %}4{% load wlprofile_extras %}
5{% load static %}
56
6{% block title %}7{% block title %}
7Outbox - {{ block.super }}8Outbox - {{ block.super }}
@@ -28,7 +29,7 @@
28 <td>{{ message.sent_at|custom_date:user }}</td>29 <td>{{ message.sent_at|custom_date:user }}</td>
29 <td>30 <td>
30 <a href="{% url 'messages_delete' message.id %}?next={{ request.path|iriencode }}">31 <a href="{% url 'messages_delete' message.id %}?next={{ request.path|iriencode }}">
31 <img src="{{ MEDIA_URL }}img/delete.png" alt="delete" title="delete" />32 <img src="{% static 'img/delete.png' %}" alt="delete" title="delete" />
32 </a>33 </a>
33 </td>34 </td>
34 </tr>35 </tr>
3536
=== modified file 'templates/django_messages/trash.html'
--- templates/django_messages/trash.html 2018-04-13 07:31:42 +0000
+++ templates/django_messages/trash.html 2018-11-28 19:45:23 +0000
@@ -2,6 +2,7 @@
2{% load i18n %} 2{% load i18n %}
3{% load custom_date %}3{% load custom_date %}
4{% load wlprofile_extras %}4{% load wlprofile_extras %}
5{% load static %}
56
6{% block title %}7{% block title %}
7Trash - {{ block.super }}8Trash - {{ block.super }}
@@ -27,7 +28,7 @@
27 <td>{{ message.recipient|user_link }}</td>28 <td>{{ message.recipient|user_link }}</td>
28 <td>29 <td>
29 {% if message.replied %}30 {% if message.replied %}
30 <img src="{{ MEDIA_URL }}img/replied.png" alt="replied" title="replied" />31 <img src="{% static 'img/replied.png' %}" alt="replied" title="replied" />
31 {% endif %}32 {% endif %}
32 <a href="{{message.get_absolute_url }}">{{ message.subject }}</a>33 <a href="{{message.get_absolute_url }}">{{ message.subject }}</a>
33 </td>34 </td>
@@ -35,11 +36,11 @@
35 <td>36 <td>
36 {% if message.sender == request.user %}37 {% if message.sender == request.user %}
37 <a href="{% url 'messages_undelete' message.id %}?next=/messages/outbox/">38 <a href="{% url 'messages_undelete' message.id %}?next=/messages/outbox/">
38 <img src="{{ MEDIA_URL }}img/undelete.png" alt="undelete" title="undelete" />39 <img src="{% static 'img/undelete.png' %}" alt="undelete" title="undelete" />
39 </a>40 </a>
40 {% else %}41 {% else %}
41 <a href="{% url 'messages_undelete' message.id %}?next=/messages/inbox/">42 <a href="{% url 'messages_undelete' message.id %}?next=/messages/inbox/">
42 <img src="{{ MEDIA_URL }}img/undelete.png" alt="undelete" title="undelete" />43 <img src="{% static 'img/undelete.png' %}" alt="undelete" title="undelete" />
43 </a>44 </a>
44 {% endif %}45 {% endif %}
45 </td>46 </td>
4647
=== modified file 'templates/header.html'
--- templates/header.html 2018-11-28 08:08:18 +0000
+++ templates/header.html 2018-11-28 19:45:23 +0000
@@ -1,31 +1,32 @@
1{% load wlprofile_extras %}1{% load wlprofile_extras %}
2{% load wl_extras %}2{% load wl_extras %}
3{% load static %}
34
4<div id="logo">5<div id="logo">
5 <a href="{% url 'mainpage' %}"><img src=6 <a href="{% url 'mainpage' %}"><img src=
6 "{{ MEDIA_URL }}img/{% wl_logo %}" alt=7 "{% static 'img/'%}{% wl_logo %}" alt=
7 "Widelands Logo"></a>8 "Widelands Logo"></a>
8</div>9</div>
9<ul class="header_boxes">10<ul class="header_boxes">
10 <li class="small">11 <li class="small">
11 <a href="{% url 'wlscreens_index' %}" title="Screenshots">Screenshots<br />12 <a href="{% url 'wlscreens_index' %}" title="Screenshots">Screenshots<br />
12 <img src="{{ MEDIA_URL }}/img/camera.png" alt="Screenshots" />13 <img src="{% static '/img/camera.png' %}" alt="Screenshots" />
13 </a>14 </a>
14 </li>15 </li>
15 <li class="small">16 <li class="small">
16 <a href="{% url 'wiki_article' "Download" %}" title="Download">Download<br />17 <a href="{% url 'wiki_article' "Download" %}" title="Download">Download<br />
17 <img src="{{ MEDIA_URL }}/img/download.png" alt="Get Widelands" />18 <img src="{% static '/img/download.png' %}" alt="Get Widelands" />
18 </a>19 </a>
19 </li>20 </li>
20 <li class="small">21 <li class="small">
21 <a href="{% url 'wlmaps_index' %}" title="Get new maps">Maps<br />22 <a href="{% url 'wlmaps_index' %}" title="Get new maps">Maps<br />
22 <img src="{{ MEDIA_URL }}img/maps.png" alt="Get Free Maps" />23 <img src="{% static 'img/maps.png' %}" alt="Get Free Maps" />
23 </a>24 </a>
24 </li>25 </li>
25 <li class="small">26 <li class="small">
26 <p>Social Media</p>27 <p>Social Media</p>
27 <a href="https://www.facebook.com/WidelandsOfficial" target="_blank">28 <a href="https://www.facebook.com/WidelandsOfficial" target="_blank">
28 <img src="{{ MEDIA_URL }}img/socialmedia/facebook.png" alt="Facebook" />29 <img src="{% static 'img/socialmedia/facebook.png' %}" alt="Facebook" />
29 </a>30 </a>
30 </li>31 </li>
31 <li class="loginBox small">32 <li class="loginBox small">
3233
=== modified file 'templates/mainpage.html'
--- templates/mainpage.html 2018-10-14 14:20:48 +0000
+++ templates/mainpage.html 2018-11-28 19:45:23 +0000
@@ -7,11 +7,12 @@
7 they reach our homepage7 they reach our homepage
88
9{% endcomment %}9{% endcomment %}
1010{% load static %}
11{% load news_extras %}11{% load news_extras %}
12
12{% block extra_head %}13{% block extra_head %}
13<meta name="google-site-verification" content="1A5uFV_zNuXazJ46-572-_lLzcCTEQ77iHaSPFZd53Y" />14<meta name="google-site-verification" content="1A5uFV_zNuXazJ46-572-_lLzcCTEQ77iHaSPFZd53Y" />
14<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/news.css" />15<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/news.css' %}" />
15<link rel="alternate" type="application/rss+xml" title="Widelands News" href="news/feed/" />16<link rel="alternate" type="application/rss+xml" title="Widelands News" href="news/feed/" />
1617
17{{ block.super}}{% endblock %}18{{ block.super}}{% endblock %}
@@ -20,7 +21,7 @@
20{% endblock %}21{% endblock %}
21{% block content_main %}22{% block content_main %}
22<div class="blogEntry" style="min-height: 380px;">23<div class="blogEntry" style="min-height: 380px;">
23 <img class="landing posRight" src="{{ MEDIA_URL }}img/welcome.jpg" alt="Welcome!" />24 <img class="landing posRight" src="{% static 'img/welcome.jpg' %}" alt="Welcome!" />
24 <p>25 <p>
25 <a href="{% url 'wiki_article' "Description" %}">Widelands</a> is a 26 <a href="{% url 'wiki_article' "Description" %}">Widelands</a> is a
26 <a href="{% url 'wiki_article' "The Widelands Project" %}">free, open source</a>27 <a href="{% url 'wiki_article' "The Widelands Project" %}">free, open source</a>
2728
=== modified file 'templates/mainpage/developers.html'
--- templates/mainpage/developers.html 2018-10-14 14:20:48 +0000
+++ templates/mainpage/developers.html 2018-11-28 19:45:23 +0000
@@ -1,9 +1,9 @@
1{% extends "base.html" %}1{% extends "base.html" %}
22{% load static %}
3{% block title %}Widelands Development Team - {{ block.super }}{% endblock %}3{% block title %}Widelands Development Team - {{ block.super }}{% endblock %}
44
5{% block extra_head %}5{% block extra_head %}
6<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/wiki.css" />6<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/wiki.css' %}" />
7{{ block.super}}7{{ block.super}}
8{% endblock %}8{% endblock %}
99
1010
=== modified file 'templates/news/base_news.html'
--- templates/news/base_news.html 2016-11-18 23:50:23 +0000
+++ templates/news/base_news.html 2018-11-28 19:45:23 +0000
@@ -1,8 +1,9 @@
1{% extends "base.html" %}1{% extends "base.html" %}
2{% load static %}
23
3{% block title %}News Archive {% endblock %}4{% block title %}News Archive {% endblock %}
45
5{% block extra_head %}6{% block extra_head %}
6<link rel="alternate" type="application/rss+xml" title="Widelands News" href="/feeds/news/" />7<link rel="alternate" type="application/rss+xml" title="Widelands News" href="/feeds/news/" />
7<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/news.css" />8<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/news.css' %}" />
8{{ block.super}}{% endblock %}9{{ block.super}}{% endblock %}
910
=== modified file 'templates/news/post_detail.html'
--- templates/news/post_detail.html 2018-10-14 14:20:48 +0000
+++ templates/news/post_detail.html 2018-11-28 19:45:23 +0000
@@ -6,13 +6,14 @@
66
77
8{% load threadedcommentstags %}8{% load threadedcommentstags %}
9{% load static %}
910
10{% block title %}{{ object.title }} - {{ block.super }}{% endblock %}11{% block title %}{{ object.title }} - {{ block.super }}{% endblock %}
1112
12{% block extra_head %}13{% block extra_head %}
13{{ block.super }}14{{ block.super }}
14 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/news.css" />15 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/news.css' %}" />
15 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/comments.css" />16 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/comments.css' %}" />
16{% endblock %}17{% endblock %}
1718
18{% block content_header %}19{% block content_header %}
1920
=== modified file 'templates/notification/base.html'
--- templates/notification/base.html 2018-10-15 16:11:43 +0000
+++ templates/notification/base.html 2018-11-28 19:45:23 +0000
@@ -1,5 +1,6 @@
1{% extends "wlprofile/base.html" %}1{% extends "wlprofile/base.html" %}
2{% load static %}
23
3{% block extra_head %}4{% block extra_head %}
4 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/notice.css" />{{ block.super}}5 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/notice.css' %}" />{{ block.super}}
5{% endblock %}6{% endblock %}
6\ No newline at end of file7\ No newline at end of file
78
=== modified file 'templates/privacy_policy.html'
--- templates/privacy_policy.html 2018-10-14 13:24:15 +0000
+++ templates/privacy_policy.html 2018-11-28 19:45:23 +0000
@@ -1,11 +1,11 @@
1{% extends "base.html" %}1{% extends "base.html" %}
2{% load wl_markdown %}2{% load wl_markdown %}
33{% load static %}
4{% block title %}Privacy policy {{ cur_lang }} {{ block.super }}{% endblock %}4{% block title %}Privacy policy {{ cur_lang }} {{ block.super }}{% endblock %}
55
6{% block extra_head %}6{% block extra_head %}
7{{ block.super}}7{{ block.super}}
8<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/wiki.css" />8<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/wiki.css' %}" />
9{% endblock %}9{% endblock %}
1010
11{% block content_header %}11{% block content_header %}
1212
=== modified file 'templates/pybb/base.html'
--- templates/pybb/base.html 2016-04-28 18:33:44 +0000
+++ templates/pybb/base.html 2018-11-28 19:45:23 +0000
@@ -1,12 +1,13 @@
1{% extends "base.html" %}1{% extends "base.html" %}
2{% load i18n %}2{% load i18n %}
3{% load static %}
34
4{% block title %}5{% block title %}
5Forum - {{ block.super }}6Forum - {{ block.super }}
6{% endblock %}7{% endblock %}
78
8{% block extra_head %}9{% block extra_head %}
9<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/forum.css" />10<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/forum.css' %}" />
1011
11<link rel="alternate" type="application/atom+xml" title="Latest Posts on all forums" href="{% url 'pybb_feed_posts' %}" />12<link rel="alternate" type="application/atom+xml" title="Latest Posts on all forums" href="{% url 'pybb_feed_posts' %}" />
12<link rel="alternate" type="application/atom+xml" title="Latest Topics on all forums" href="{% url 'pybb_feed_topics' %}" />13<link rel="alternate" type="application/atom+xml" title="Latest Topics on all forums" href="{% url 'pybb_feed_topics' %}" />
1314
=== modified file 'templates/pybb/category.html'
--- templates/pybb/category.html 2018-10-14 13:24:15 +0000
+++ templates/pybb/category.html 2018-11-28 19:45:23 +0000
@@ -1,5 +1,6 @@
1{% extends 'pybb/base.html' %}1{% extends 'pybb/base.html' %}
2{% load pybb_extras %}2{% load pybb_extras %}
3{% load static %}
34
4{% block content_header %}5{% block content_header %}
5 <h1>Category: {{category.name}}</h1>6 <h1>Category: {{category.name}}</h1>
@@ -13,9 +14,9 @@
13</div>14</div>
1415
15<div class="center green">16<div class="center green">
16 <img src="{{ MEDIA_URL }}forum/img/folder_big_work_star.png" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" />17 <img src="{% static 'forum/img/folder_big_work_star.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" />
17 = Unread posts18 = Unread posts
18 <img src="{{ MEDIA_URL }}forum/img/folder_big_work.png" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" /> 19 <img src="{% static 'forum/img/folder_big_work.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" />
19 = No unread posts20 = No unread posts
20</div>21</div>
21{% endblock %}22{% endblock %}
2223
=== modified file 'templates/pybb/forum.html'
--- templates/pybb/forum.html 2018-11-16 08:27:29 +0000
+++ templates/pybb/forum.html 2018-11-28 19:45:23 +0000
@@ -5,6 +5,7 @@
5{% load wlprofile_extras %}5{% load wlprofile_extras %}
6{% load custom_date %}6{% load custom_date %}
7{% load pagination_tags %}7{% load pagination_tags %}
8{% load static %}
89
9{% block extra_head %}10{% block extra_head %}
10<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ forum.name }}'" href="{% url 'pybb_feed_posts' %}{{forum.id}}/" />11<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ forum.name }}'" href="{% url 'pybb_feed_posts' %}{{forum.id}}/" />
@@ -54,14 +55,14 @@
54 {% if not topic.is_hidden %}55 {% if not topic.is_hidden %}
55 <td class="forumIcon center">56 <td class="forumIcon center">
56 {% if topic|pybb_has_unreads:user %}57 {% if topic|pybb_has_unreads:user %}
57 <img src="{{ MEDIA_URL }}forum/img/doc_big_work_star.png" style="margin: 0px;" alt="" class="middle" />58 <img src="{% static 'forum/img/doc_big_work_star.png' %}" style="margin: 0px;" alt="" class="middle" />
58 {% else %}59 {% else %}
59 <img src="{{ MEDIA_URL }}forum/img/doc_big_work.png" style="margin: 0px;" alt="" class="middle" />60 <img src="{% static 'forum/img/doc_big_work.png' %}" style="margin: 0px;" alt="" class="middle" />
60 {% endif %}61 {% endif %}
61 </td>62 </td>
62 <td class="forumTitle">63 <td class="forumTitle">
63 {% if topic.sticky %}<img src="{{ MEDIA_URL }}forum/img/sticky.png" alt="Sticky" title="Sticky" />{% endif %}64 {% if topic.sticky %}<img src="{% static 'forum/img/sticky.png' %}" alt="Sticky" title="Sticky" />{% endif %}
64 {% if topic.closed %}<img src="{{ MEDIA_URL }}forum/img/closed.png" alt="Closed" title="Closed" />{% endif %}65 {% if topic.closed %}<img src="{% static 'forum/img/closed.png' %}" alt="Closed" title="Closed" />{% endif %}
65 <a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a><br />66 <a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a><br />
66 <span class="small">Created by {{ topic.user|user_link }} on {{ topic.created|custom_date:user }}</span>67 <span class="small">Created by {{ topic.user|user_link }} on {{ topic.created|custom_date:user }}</span>
67 </td>68 </td>
@@ -83,16 +84,16 @@
83 </tbody>84 </tbody>
84 </table>85 </table>
85 <a class="button posRight" href="{% url 'pybb_add_topic' forum.id %}">86 <a class="button posRight" href="{% url 'pybb_add_topic' forum.id %}">
86 <img src="{{ MEDIA_URL }}forum/img/new_topic.png" alt ="{% trans "New Topic" %}" class="middle" />87 <img src="{% static 'forum/img/new_topic.png' %}" alt ="{% trans "New Topic" %}" class="middle" />
87 <span class="middle">{% trans "New Topic" %}</span>88 <span class="middle">{% trans "New Topic" %}</span>
88 </a>89 </a>
89 {% paginate %}90 {% paginate %}
90</div>91</div>
9192
92<div class="center green">93<div class="center green">
93 <img src="{{ MEDIA_URL }}forum/img/doc_big_work_star.png" alt="" class="middle" />94 <img src="{% static 'forum/img/doc_big_work_star.png' %}" alt="" class="middle" />
94 = Unread posts95 = Unread posts
95 <img src="{{ MEDIA_URL }}forum/img/doc_big_work.png" alt="" class="middle" /> 96 <img src="{% static 'forum/img/doc_big_work.png' %}" alt="" class="middle" />
96 = No unread posts97 = No unread posts
97</div>98</div>
98{% endblock %}99{% endblock %}
99100
=== modified file 'templates/pybb/index.html'
--- templates/pybb/index.html 2018-10-14 13:24:15 +0000
+++ templates/pybb/index.html 2018-11-28 19:45:23 +0000
@@ -1,5 +1,6 @@
1{% extends 'pybb/base.html' %}1{% extends 'pybb/base.html' %}
2{% load pybb_extras %}2{% load pybb_extras %}
3{% load static %}
34
4{% block content_header %}5{% block content_header %}
5 <h1>Forums</h1>6 <h1>Forums</h1>
@@ -14,9 +15,9 @@
14{% endfor %}15{% endfor %}
1516
16<div class="center green">17<div class="center green">
17 <img src="{{ MEDIA_URL }}forum/img/folder_big_work_star.png" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" />18 <img src="{% static 'forum/img/folder_big_work_star.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" />
18 = Unread posts19 = Unread posts
19 <img src="{{ MEDIA_URL }}forum/img/folder_big_work.png" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" /> 20 <img src="{% static 'forum/img/folder_big_work.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" class="middle" />
20 = No unread posts21 = No unread posts
21</div>22</div>
2223
@@ -24,20 +25,20 @@
24<table class="legend">25<table class="legend">
25 <tr>26 <tr>
26 <td>27 <td>
27 <img src="{{ MEDIA_URL }}forum/img/folder_new_big.png" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />28 <img src="{% static 'forum/img/folder_new_big.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />
28 </td>29 </td>
29 <td>= Unread posts</td>30 <td>= Unread posts</td>
30 <td>31 <td>
31 <img src="{{ MEDIA_URL }}forum/img/folder_big.png" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" /> 32 <img src="{% static 'forum/img/folder_big.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />
32 </td><td>= No unread posts</td>33 </td><td>= No unread posts</td>
33 </tr>34 </tr>
3435
35 <tr>36 <tr>
36 <td>37 <td>
37 <img src="{{ MEDIA_URL }}forum/img/folder_locked_big.png" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />38 <img src="{% static 'forum/img/folder_locked_big.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />
38 </td><td>= Locked topic</td>39 </td><td>= Locked topic</td>
39 <td>40 <td>
40 <img src="{{ MEDIA_URL }}forum/img/folder_new_locked_big.png" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />41 <img src="{% static 'forum/img/folder_new_locked_big.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />
41 </td><td>= Unread posts in locked topic</td>42 </td><td>= Unread posts in locked topic</td>
42 </tr>43 </tr>
43</table>44</table>
4445
=== modified file 'templates/pybb/inlines/display_category.html'
--- templates/pybb/inlines/display_category.html 2018-11-17 10:51:02 +0000
+++ templates/pybb/inlines/display_category.html 2018-11-28 19:45:23 +0000
@@ -8,6 +8,7 @@
8{% load pybb_extras %}8{% load pybb_extras %}
9{% load wlprofile_extras %}9{% load wlprofile_extras %}
10{% load custom_date %}10{% load custom_date %}
11{% load static %}
1112
12<table class="forum">13<table class="forum">
13 {# List all forums #}14 {# List all forums #}
@@ -15,9 +16,9 @@
15 <tr class="{% cycle 'odd' 'even' %}">16 <tr class="{% cycle 'odd' 'even' %}">
16 <td class="forumIcon center">17 <td class="forumIcon center">
17 {% if forum|pybb_has_unreads:user %}18 {% if forum|pybb_has_unreads:user %}
18 <img src="{{ MEDIA_URL }}forum/img/folder_big_work_star.png" style="width: 48px; height:48px; margin: 0px;" alt="" />19 <img src="{% static 'forum/img/folder_big_work_star.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" />
19 {% else %}20 {% else %}
20 <img src="{{ MEDIA_URL }}forum/img/folder_big_work.png" style="width: 48px; height:48px; margin: 0px;" alt="" />21 <img src="{% static 'forum/img/folder_big_work.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" />
21 {% endif %}22 {% endif %}
22 </td>23 </td>
23 <td class="forumTitle">24 <td class="forumTitle">
@@ -30,15 +31,15 @@
30 Posts: {{ forum.posts.count }}31 Posts: {{ forum.posts.count }}
31 </td>32 </td>
32 <td class="lastPost">33 <td class="lastPost">
33 {% with last_post=forum.last_post %}34 {% if forum.last_post %}
34 {% if last_post %}35 {% with last_post=forum.last_post %}
35 <a href="{{last_post.get_absolute_url}}">{{ last_post.topic.name }}</a><br />36 <a href="{{last_post.get_absolute_url}}">{{ last_post.topic.name }}</a><br />
36 <span class="small">by {{ last_post.user|user_link }}<br />37 <span class="small">by {{ last_post.user|user_link }}<br />
37 on {{ last_post.created|custom_date:user}}</span>38 on {{ last_post.created|custom_date:user}}</span>
39 {% endwith %}
38 {% else %}40 {% else %}
39 &nbsp;41 &nbsp;
40 {% endif %}42 {% endif %}
41 {% endwith %}
42 </td>43 </td>
43 </tr>44 </tr>
44 {% endfor %}45 {% endfor %}
4546
=== modified file 'templates/pybb/inlines/forum_row.html'
--- templates/pybb/inlines/forum_row.html 2017-01-21 19:06:19 +0000
+++ templates/pybb/inlines/forum_row.html 2018-11-28 19:45:23 +0000
@@ -5,12 +5,14 @@
5{% load pybb_extras %}5{% load pybb_extras %}
6{% load wlprofile_extras %}6{% load wlprofile_extras %}
7{% load custom_date %}7{% load custom_date %}
8{% load static %}
9
8 <tr>10 <tr>
9 <td class="even" align="center" valign="middle">11 <td class="even" align="center" valign="middle">
10 {% if forum|pybb_has_unreads:user %}12 {% if forum|pybb_has_unreads:user %}
11 <img src="{{ MEDIA_URL }}forum/img/folder_new_big.png" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />13 <img src="{% static 'forum/img/folder_new_big.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />
12 {% else %}14 {% else %}
13 <img src="{{ MEDIA_URL }}forum/img/folder_big.png" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />15 <img src="{% static 'forum/img/folder_big.png' %}" style="width: 48px; height:48px; margin: 0px;" alt="" align="middle" />
14 {% endif %}16 {% endif %}
15 </td>17 </td>
16 <td class="odd">18 <td class="odd">
1719
=== modified file 'templates/pybb/inlines/post.html'
--- templates/pybb/inlines/post.html 2017-11-01 15:51:57 +0000
+++ templates/pybb/inlines/post.html 2018-11-28 19:45:23 +0000
@@ -8,6 +8,7 @@
8{% load wiki_extras %}8{% load wiki_extras %}
9{% load wlprofile_extras %}9{% load wlprofile_extras %}
10{% load custom_date %}10{% load custom_date %}
11{% load static %}
11 <a name="post-{{ post.id }}"></a>12 <a name="post-{{ post.id }}"></a>
12 <table class="{% cycle "odd" "even" %}" width="100%">13 <table class="{% cycle "odd" "even" %}" width="100%">
13 <tr>14 <tr>
@@ -17,7 +18,7 @@
17 <tr>18 <tr>
18 <td style="text-align: left; border: 0px;">19 <td style="text-align: left; border: 0px;">
19 <a href="{{post.get_absolute_url}}">20 <a href="{{post.get_absolute_url}}">
20 <img src="{{ MEDIA_URL }}forum/img/en/permalink.png" height="25" alt ="{% trans "Permalink" %}" />21 <img src="{% static 'forum/img/en/permalink.png' %}" height="25" alt ="{% trans "Permalink" %}" />
21 </a>22 </a>
22 </td>23 </td>
23 <td style="text-align: right; border: 0px;">24 <td style="text-align: right; border: 0px;">
@@ -39,7 +40,7 @@
39 {% endif %}40 {% endif %}
40 <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />41 <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
41 <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />42 <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
42 <img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" />43 <img src="{% static 'img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" />
43 <br />44 <br />
44 <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />45 <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
45 {% if post.user.wlprofile.location %}46 {% if post.user.wlprofile.location %}
@@ -80,7 +81,7 @@
80 <tr>81 <tr>
81 <td class="toplink">82 <td class="toplink">
82 <a href="#top">83 <a href="#top">
83 <img src="{{ MEDIA_URL }}forum/img/en/top.png" height="25" alt ="{% trans "Top" %}" />84 <img src="{% static 'forum/img/en/top.png' %}" height="25" alt ="{% trans "Top" %}" />
84 </a>85 </a>
85 </td>86 </td>
8687
@@ -89,25 +90,25 @@
89 {% if user.is_authenticated %}90 {% if user.is_authenticated %}
90 {% ifnotequal user post.user %}91 {% ifnotequal user post.user %}
91 <a href="{% url 'messages_compose_to' post.user %}">92 <a href="{% url 'messages_compose_to' post.user %}">
92 <img src="{{ MEDIA_URL }}forum/img/en/send_pm.png" height="25" alt ="{% trans "Send PM" %}" />93 <img src="{% static 'forum/img/en/send_pm.png' %}" height="25" alt ="{% trans "Send PM" %}" />
93 </a>94 </a>
94 {% endifnotequal %}95 {% endifnotequal %}
95 {% endif %}96 {% endif %}
96 {% if moderator or post|pybb_posted_by:user %}97 {% if moderator or post|pybb_posted_by:user %}
97 <a href="{% url 'pybb_edit_post' post.id %}">98 <a href="{% url 'pybb_edit_post' post.id %}">
98 <img src="{{ MEDIA_URL }}forum/img/en/edit.png" height="25" alt ="{% trans "Edit" %}" />99 <img src="{% static 'forum/img/en/edit.png' %}" height="25" alt ="{% trans "Edit" %}" />
99 </a>100 </a>
100 {% endif %}101 {% endif %}
101 {% if moderator or post|pybb_equal_to:last_post %}102 {% if moderator or post|pybb_equal_to:last_post %}
102 {% if moderator or post.user|pybb_equal_to:user %}103 {% if moderator or post.user|pybb_equal_to:user %}
103 <a href="{% url 'pybb_delete_post' post.id %}">104 <a href="{% url 'pybb_delete_post' post.id %}">
104 <img src="{{ MEDIA_URL }}forum/img/en/delete.png" height="25" alt ="{% trans "Delete" %}" />105 <img src="{% static 'forum/img/en/delete.png' %}" height="25" alt ="{% trans "Delete" %}" />
105 </a>106 </a>
106 {% endif %}107 {% endif %}
107 </div>108 </div>
108 <div class="tools" style="float: right;">109 <div class="tools" style="float: right;">
109 <a href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">110 <a href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
110 <img src="{{ MEDIA_URL }}forum/img/en/quote.png" height="25" alt ="{% trans "Quote" %}" />111 <img src="{% static 'forum/img/en/quote.png' %}" height="25" alt ="{% trans "Quote" %}" />
111 </a>112 </a>
112 {% endif %}113 {% endif %}
113 </div>114 </div>
114115
=== modified file 'templates/pybb/inlines/topic_row.html'
--- templates/pybb/inlines/topic_row.html 2016-03-02 21:02:38 +0000
+++ templates/pybb/inlines/topic_row.html 2018-11-28 19:45:23 +0000
@@ -5,12 +5,14 @@
5{% load pybb_extras %}5{% load pybb_extras %}
6{% load wlprofile_extras %}6{% load wlprofile_extras %}
7{% load custom_date %}7{% load custom_date %}
8{% load static %}
9
8 <tr class="topic_description {% cycle "odd" "even" %}">10 <tr class="topic_description {% cycle "odd" "even" %}">
9 <td align="center" valign="middle">11 <td align="center" valign="middle">
10 {% if topic|pybb_has_unreads:user %}12 {% if topic|pybb_has_unreads:user %}
11 <img src="{{ MEDIA_URL }}forum/img/folder_new.png" style="margin: 0px;" alt="" align="middle" />13 <img src="{% static 'forum/img/folder_new.png' %}" style="margin: 0px;" alt="" align="middle" />
12 {% else %}14 {% else %}
13 <img src="{{ MEDIA_URL }}forum/img/folder.png" style="margin: 0px;" alt="" align="middle" />15 <img src="{% static 'forum/img/folder.png' %}" style="margin: 0px;" alt="" align="middle" />
14 {% endif %}16 {% endif %}
15 </td>17 </td>
16 <td id="name">18 <td id="name">
@@ -19,9 +21,9 @@
19 {% comment %}21 {% comment %}
20 oehm ja, geht nicht weil ka muss ich guggn, die frage ist. soll es fuer alle gelten oder nur fuer eine topic22 oehm ja, geht nicht weil ka muss ich guggn, die frage ist. soll es fuer alle gelten oder nur fuer eine topic
21 {% endcomment %}23 {% endcomment %}
22 {% if subscribed %}<img src="{{ MEDIA_URL }}forum/img/en/subscribe_small.png" height="20" alt="subscribe" style="float:left" />{% endif %}24 {% if subscribed %}<img src="{% static 'forum/img/en/subscribe_small.png' %}" height="20" alt="subscribe" style="float:left" />{% endif %}
23 {% if topic.sticky %}<img src="{{ MEDIA_URL }}forum/img/en/stick_topic_small.png" height="20" alt ="Sticky" style="float:left;" /> {% endif %}25 {% if topic.sticky %}<img src="{% static 'forum/img/en/stick_topic_small.png' %}" height="20" alt ="Sticky" style="float:left;" /> {% endif %}
24 {% if topic.closed %}<img src="{{ MEDIA_URL }}forum/img/en/close_small.png" height="20" alt ="Closed" style="float:left; " /> {% endif %}26 {% if topic.closed %}<img src="{% static 'forum/img/en/close_small.png' %}" height="20" alt ="Closed" style="float:left; " /> {% endif %}
25 &nbsp;{{ topic.name }}27 &nbsp;{{ topic.name }}
26 </a>28 </a>
27 </span>29 </span>
2830
=== modified file 'templates/pybb/post_form.html'
--- templates/pybb/post_form.html 2016-04-24 19:30:03 +0000
+++ templates/pybb/post_form.html 2018-11-28 19:45:23 +0000
@@ -1,4 +1,5 @@
1{% load i18n %}1{% load i18n %}
2{% load static %}
23
3{% comment %}4{% comment %}
4This template is used to prevent using same code5This template is used to prevent using same code
@@ -6,7 +7,7 @@
6{% endcomment %}7{% endcomment %}
78
8{% block extra_head %}9{% block extra_head %}
9<script type="text/javascript" src="{{ MEDIA_URL }}js/disableOnSubmit.js"></script>10<script type="text/javascript" src="{% static 'js/disableOnSubmit.js' %}"></script>
10<script type="text/javascript">11<script type="text/javascript">
11 $(function() {12 $(function() {
12 $('form').disableOnSubmit();13 $('form').disableOnSubmit();
@@ -45,7 +46,7 @@
4546
46 <div class="posRight">47 <div class="posRight">
47 <a href="/wiki/WikiSyntax" title="Opens new Tab/Window" target="_blank">48 <a href="/wiki/WikiSyntax" title="Opens new Tab/Window" target="_blank">
48 <img src="{{ MEDIA_URL }}img/menu_help.png" alt="Help on Syntax" class="middle">49 <img src="{% static 'img/menu_help.png' %}" alt="Help on Syntax" class="middle">
49 Help on Syntax50 Help on Syntax
50 </a>51 </a>
51 </div>52 </div>
@@ -54,11 +55,11 @@
54 {{ form.as_p }}55 {{ form.as_p }}
55 {% csrf_token %}56 {% csrf_token %}
56 <button type="submit">57 <button type="submit">
57 <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />58 <img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
58 <span class="middle">{% trans "Send" %}</span>59 <span class="middle">{% trans "Send" %}</span>
59 </button>60 </button>
60 <button type="button" class="preview-button">61 <button type="button" class="preview-button">
61 <img src="{{ MEDIA_URL }}forum/img/preview.png" alt ="" class="middle" />62 <img src="{% static 'forum/img/preview.png' %}" alt ="" class="middle" />
62 <span class="middle">{% trans "Preview" %}</span>63 <span class="middle">{% trans "Preview" %}</span>
63 </button>64 </button>
64 </form>65 </form>
6566
=== modified file 'templates/pybb/topic.html'
--- templates/pybb/topic.html 2018-11-18 10:28:03 +0000
+++ templates/pybb/topic.html 2018-11-28 19:45:23 +0000
@@ -6,6 +6,7 @@
6{% load wlprofile_extras %}6{% load wlprofile_extras %}
7{% load custom_date %}7{% load custom_date %}
8{% load pagination_tags %}8{% load pagination_tags %}
9{% load static %}
910
10{% block title %}11{% block title %}
11{{ topic.name }} - {{ topic.forum.name }} - {{ block.super }}12{{ topic.name }} - {{ topic.forum.name }} - {{ block.super }}
@@ -38,7 +39,7 @@
38 <div class="posRight">39 <div class="posRight">
39 {% if moderator %}40 {% if moderator %}
40 <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">41 <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
41 <img src="{{ MEDIA_URL }}forum/img/topic_show.png" alt ="" class="middle" />42 <img src="{% static 'forum/img/topic_show.png' %}" alt ="" class="middle" />
42 <span class="middle">{% trans "Toggle Visibility" %}</span>43 <span class="middle">{% trans "Toggle Visibility" %}</span>
43 </a>44 </a>
44 {% endif %}45 {% endif %}
@@ -46,28 +47,28 @@
46 <div class="posRight">47 <div class="posRight">
47 {% if moderator %}48 {% if moderator %}
48 <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">49 <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
49 <img src="{{ MEDIA_URL }}forum/img/topic_hide.png" alt ="" class="middle" />50 <img src="{% static 'forum/img/topic_hide.png' %}" alt ="" class="middle" />
50 <span class="middle">{% trans "Toggle Visibility" %}</span>51 <span class="middle">{% trans "Toggle Visibility" %}</span>
51 </a>52 </a>
52 {% if topic.sticky %}53 {% if topic.sticky %}
53 <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">54 <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
54 <img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />55 <img src="{% static 'forum/img/unstick.png' %}" alt ="" class="middle" />
55 <span class="middle">{% trans "Unstick Topic" %}</span>56 <span class="middle">{% trans "Unstick Topic" %}</span>
56 </a>57 </a>
57 {% else %}58 {% else %}
58 <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">59 <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
59 <img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />60 <img src="{% static 'forum/img/sticky.png' %}" alt ="" class="middle" />
60 <span class="middle">{% trans "Stick Topic" %}</span>61 <span class="middle">{% trans "Stick Topic" %}</span>
61 </a>62 </a>
62 {% endif %}63 {% endif %}
63 {% if topic.closed %}64 {% if topic.closed %}
64 <a class="button" href="{% url 'pybb_open_topic' topic.id %}">65 <a class="button" href="{% url 'pybb_open_topic' topic.id %}">
65 <img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />66 <img src="{% static 'forum/img/open.png' %}" alt ="" class="middle" />
66 <span class="middle">{% trans "Open Topic" %}</span>67 <span class="middle">{% trans "Open Topic" %}</span>
67 </a>68 </a>
68 {% else %}69 {% else %}
69 <a class="button" href="{% url 'pybb_close_topic' topic.id %}">70 <a class="button" href="{% url 'pybb_close_topic' topic.id %}">
70 <img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />71 <img src="{% static 'forum/img/closed.png' %}" alt ="" class="middle" />
71 <span class="middle">{% trans "Close Topic" %}</span>72 <span class="middle">{% trans "Close Topic" %}</span>
72 </a>73 </a>
73 {% endif %}74 {% endif %}
@@ -75,17 +76,17 @@
75 {% if user.is_authenticated %}76 {% if user.is_authenticated %}
76 {% if subscribed %}77 {% if subscribed %}
77 <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">78 <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
78 <img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />79 <img src="{% static 'forum/img/unsubscribe.png' %}" alt ="" class="middle" />
79 <span class="middle">{% trans "Unsubscribe" %}</span>80 <span class="middle">{% trans "Unsubscribe" %}</span>
80 </a>81 </a>
81 {% else %}82 {% else %}
82 <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">83 <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
83 <img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />84 <img src="{% static 'forum/img/subscribe.png' %}" alt ="" class="middle" />
84 <span class="middle">{% trans "Subscribe" %}</span>85 <span class="middle">{% trans "Subscribe" %}</span>
85 </a>86 </a>
86 {% endif %}87 {% endif %}
87 <a class="button" href="{% url 'pybb_add_post' topic.id %}">88 <a class="button" href="{% url 'pybb_add_post' topic.id %}">
88 <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />89 <img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
89 <span class="middle">{% trans "New Reply" %}</span>90 <span class="middle">{% trans "New Reply" %}</span>
90 </a>91 </a>
91 {% endif %}92 {% endif %}
@@ -110,7 +111,7 @@
110 <div class="authorStats">111 <div class="authorStats">
111 <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />112 <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
112 <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />113 <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
113 <img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />114 <img src="{% static 'img/' %}{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
114 <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />115 <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
115 {% if post.user.wlprofile.location %}116 {% if post.user.wlprofile.location %}
116 <strong>Location:</strong> {{ post.user.wlprofile.location }}<br />117 <strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
@@ -148,22 +149,22 @@
148 {% endif %}149 {% endif %}
149150
150 <button onclick="window.location.href='#top';" class="posRight">151 <button onclick="window.location.href='#top';" class="posRight">
151 <img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />152 <img src="{% static 'forum/img/top.png' %}" alt ="" class="middle" />
152 <span class="middle">{% trans "Top" %}</span>153 <span class="middle">{% trans "Top" %}</span>
153 </button>154 </button>
154155
155 <button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">156 <button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">
156 <img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />157 <img src="{% static 'forum/img/quote.png' %}" alt ="" class="middle" />
157 <span class="middle">{% trans "Quote" %}</span>158 <span class="middle">{% trans "Quote" %}</span>
158 </button>159 </button>
159 {% if moderator or post|pybb_posted_by:user %}160 {% if moderator or post|pybb_posted_by:user %}
160 <button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">161 <button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">
161 <img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />162 <img src="{% static 'forum/img/edit.png' %}" alt ="" class="middle" />
162 <span class="middle">{% trans "Edit" %}</span>163 <span class="middle">{% trans "Edit" %}</span>
163 </button>164 </button>
164 {% if moderator or post|pybb_equal_to:last_post %}165 {% if moderator or post|pybb_equal_to:last_post %}
165 <button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">166 <button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">
166 <img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />167 <img src="{% static 'forum/img/delete.png' %}" alt ="" class="middle" />
167 <span class="middle">{% trans "Delete" %}</span>168 <span class="middle">{% trans "Delete" %}</span>
168 </button>169 </button>
169 {% endif %}170 {% endif %}
@@ -195,7 +196,7 @@
195 <div class="authorStats">196 <div class="authorStats">
196 <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />197 <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
197 <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />198 <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
198 <img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />199 <img src="{% static 'img/'%}{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
199 <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />200 <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
200 {% if post.user.wlprofile.location %}201 {% if post.user.wlprofile.location %}
201 <strong>Location:</strong> {{ post.user.wlprofile.location }}<br />202 <strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
@@ -233,22 +234,22 @@
233 {% endif %}234 {% endif %}
234235
235 <a class="button posRight" href="#top">236 <a class="button posRight" href="#top">
236 <img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />237 <img src="{% static 'forum/img/top.png' %}" alt ="" class="middle" />
237 <span class="middle">{% trans "Top" %}</span>238 <span class="middle">{% trans "Top" %}</span>
238 </a>239 </a>
239240
240 <a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">241 <a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
241 <img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />242 <img src="{% static 'forum/img/quote.png' %}" alt ="" class="middle" />
242 <span class="middle">{% trans "Quote" %}</span>243 <span class="middle">{% trans "Quote" %}</span>
243 </a>244 </a>
244 {% if moderator or post|pybb_posted_by:user %}245 {% if moderator or post|pybb_posted_by:user %}
245 <a class="button" href="{% url 'pybb_edit_post' post.id %}">246 <a class="button" href="{% url 'pybb_edit_post' post.id %}">
246 <img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />247 <img src="{% static 'forum/img/edit.png' %}" alt ="" class="middle" />
247 <span class="middle">{% trans "Edit" %}</span>248 <span class="middle">{% trans "Edit" %}</span>
248 </a>249 </a>
249 {% if moderator or post|pybb_equal_to:last_post %}250 {% if moderator or post|pybb_equal_to:last_post %}
250 <a class="button" href="{% url 'pybb_delete_post' post.id %}">251 <a class="button" href="{% url 'pybb_delete_post' post.id %}">
251 <img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />252 <img src="{% static 'forum/img/delete.png' %}" alt ="" class="middle" />
252 <span class="middle">{% trans "Delete" %}</span>253 <span class="middle">{% trans "Delete" %}</span>
253 </a>254 </a>
254 {% endif %}255 {% endif %}
@@ -269,28 +270,28 @@
269 <div class="posRight">270 <div class="posRight">
270 {% if moderator %}271 {% if moderator %}
271 <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">272 <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
272 <img src="{{ MEDIA_URL }}forum/img/topic_hide.png" alt ="" class="middle" />273 <img src="{% static 'forum/img/topic_hide.png' %}" alt ="" class="middle" />
273 <span class="middle">{% trans "Toggle Visibility" %}</span>274 <span class="middle">{% trans "Toggle Visibility" %}</span>
274 </a>275 </a>
275 {% if topic.sticky %}276 {% if topic.sticky %}
276 <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">277 <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
277 <img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />278 <img src="{% static 'forum/img/unstick.png' %}" alt ="" class="middle" />
278 <span class="middle">{% trans "Unstick Topic" %}</span>279 <span class="middle">{% trans "Unstick Topic" %}</span>
279 </a>280 </a>
280 {% else %}281 {% else %}
281 <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">282 <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
282 <img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />283 <img src="{% static 'forum/img/sticky.png' %}" alt ="" class="middle" />
283 <span class="middle">{% trans "Stick Topic" %}</span>284 <span class="middle">{% trans "Stick Topic" %}</span>
284 </a>285 </a>
285 {% endif %}286 {% endif %}
286 {% if topic.closed %}287 {% if topic.closed %}
287 <a class="button" href="{% url 'pybb_open_topic' topic.id %}">288 <a class="button" href="{% url 'pybb_open_topic' topic.id %}">
288 <img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />289 <img src="{% static 'forum/img/open.png' %}" alt ="" class="middle" />
289 <span class="middle">{% trans "Open Topic" %}</span>290 <span class="middle">{% trans "Open Topic" %}</span>
290 </a>291 </a>
291 {% else %}292 {% else %}
292 <a class="button" href="{% url 'pybb_close_topic' topic.id %}">293 <a class="button" href="{% url 'pybb_close_topic' topic.id %}">
293 <img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />294 <img src="{% static 'forum/img/closed.png' %}" alt ="" class="middle" />
294 <span class="middle">{% trans "Close Topic" %}</span>295 <span class="middle">{% trans "Close Topic" %}</span>
295 </a>296 </a>
296 {% endif %}297 {% endif %}
@@ -298,17 +299,17 @@
298 {% if user.is_authenticated %}299 {% if user.is_authenticated %}
299 {% if subscribed %}300 {% if subscribed %}
300 <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">301 <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
301 <img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />302 <img src="{% static 'forum/img/unsubscribe.png' %}" alt ="" class="middle" />
302 <span class="middle">{% trans "Unsubscribe" %}</span>303 <span class="middle">{% trans "Unsubscribe" %}</span>
303 </a>304 </a>
304 {% else %}305 {% else %}
305 <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">306 <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
306 <img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />307 <img src="{% static 'forum/img/subscribe.png' %}" alt ="" class="middle" />
307 <span class="middle">{% trans "Subscribe" %}</span>308 <span class="middle">{% trans "Subscribe" %}</span>
308 </a>309 </a>
309 {% endif %}310 {% endif %}
310 <a class="button" href="{% url 'pybb_add_post' topic.id %}">311 <a class="button" href="{% url 'pybb_add_post' topic.id %}">
311 <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />312 <img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
312 <span class="middle">{% trans "New Reply" %}</span>313 <span class="middle">{% trans "New Reply" %}</span>
313 </a>314 </a>
314 {% endif %}315 {% endif %}
315316
=== modified file 'templates/registration/base.html'
--- templates/registration/base.html 2016-06-03 14:22:24 +0000
+++ templates/registration/base.html 2018-11-28 19:45:23 +0000
@@ -4,6 +4,5 @@
4{% endcomment %}4{% endcomment %}
55
6{% block extra_head %}6{% block extra_head %}
7<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/register.css" />{{ block.super}}
8<script src="https://www.google.com/recaptcha/api.js" async defer></script>7<script src="https://www.google.com/recaptcha/api.js" async defer></script>
9{% endblock %}8{% endblock %}
109
=== modified file 'templates/search/search.html'
--- templates/search/search.html 2018-10-14 13:24:15 +0000
+++ templates/search/search.html 2018-11-28 19:45:23 +0000
@@ -1,8 +1,9 @@
1{% extends 'base.html' %}1{% extends 'base.html' %}
2{% load custom_date %}2{% load custom_date %}
3{% load static %}
34
4{% block extra_head %}5{% block extra_head %}
5<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/search.css" />6<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/search.css' %}" />
6{{block.super}}7{{block.super}}
7{% endblock %}8{% endblock %}
89
910
=== modified file 'templates/threadedcomments/preview_comment.html'
--- templates/threadedcomments/preview_comment.html 2018-10-14 14:20:48 +0000
+++ templates/threadedcomments/preview_comment.html 2018-11-28 19:45:23 +0000
@@ -1,10 +1,11 @@
1{% extends "base.html" %}1{% extends "base.html" %}
22
3{% load threadedcommentstags %}3{% load threadedcommentstags %}
4{% load static %}
45
5{% block extra_head %}6{% block extra_head %}
6{{ block.super }}7{{ block.super }}
7<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/comments.css" />8<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/comments.css' %}" />
8{% endblock %}9{% endblock %}
910
10{% block content_header %}11{% block content_header %}
1112
=== modified file 'templates/wiki/base.html'
--- templates/wiki/base.html 2018-06-03 15:33:37 +0000
+++ templates/wiki/base.html 2018-11-28 19:45:23 +0000
@@ -1,5 +1,6 @@
1{% extends "base.html" %}1{% extends "base.html" %}
2{% load i18n %}2{% load i18n %}
3{% load static %}
34
4{% block title %}5{% block title %}
5Wiki - {{ block.super }}6Wiki - {{ block.super }}
@@ -9,7 +10,7 @@
9{{ block.super}}10{{ block.super}}
10<link rel="alternate" type="application/rss+xml" title="Wiki History (RSS)" href="{% url 'wiki_history_feed_rss' %}" />11<link rel="alternate" type="application/rss+xml" title="Wiki History (RSS)" href="{% url 'wiki_history_feed_rss' %}" />
11<link rel="alternate" type="application/atom+xml" title="Wiki History (Atom)" href="{% url 'wiki_history_feed_atom' %}" />12<link rel="alternate" type="application/atom+xml" title="Wiki History (Atom)" href="{% url 'wiki_history_feed_atom' %}" />
12<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/wiki.css" />13<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/wiki.css' %}" />
13{% endblock %}14{% endblock %}
1415
15{# Define all(!) tabs for the wiki here (all in one place).16{# Define all(!) tabs for the wiki here (all in one place).
1617
=== modified file 'templates/wiki/edit.html'
--- templates/wiki/edit.html 2018-10-09 18:23:07 +0000
+++ templates/wiki/edit.html 2018-11-28 19:45:23 +0000
@@ -1,13 +1,14 @@
1{% extends 'wiki/base.html' %}1{% extends 'wiki/base.html' %}
2{% load i18n %}2{% load i18n %}
3{% load wlimages_extras %}3{% load wlimages_extras %}
4{% load static %}
45
5{% block title %}6{% block title %}
6{% trans "Editing" %} {{ article.title }} - {{ block.super }}7{% trans "Editing" %} {{ article.title }} - {{ block.super }}
7{% endblock %}8{% endblock %}
89
9{% block extra_head %}10{% block extra_head %}
10<script type="text/javascript" src="{{ MEDIA_URL }}js/disableOnSubmit.js"></script>11<script type="text/javascript" src="{% static 'js/disableOnSubmit.js' %}"></script>
11<script type="text/javascript">12<script type="text/javascript">
12 $(function() {13 $(function() {
13 $('form').disableOnSubmit();14 $('form').disableOnSubmit();
1415
=== modified file 'templates/wlhelp/base.html'
--- templates/wlhelp/base.html 2018-03-09 12:12:02 +0000
+++ templates/wlhelp/base.html 2018-11-28 19:45:23 +0000
@@ -1,11 +1,12 @@
1{% extends "base.html" %}1{% extends "base.html" %}
2{% load static %}
23
3{% block title %}4{% block title %}
4Encyclopedia - {{ block.super }}5Encyclopedia - {{ block.super }}
5{% endblock %}6{% endblock %}
67
7{% block extra_head %}8{% block extra_head %}
8 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/encyclopedia.css" />9 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/encyclopedia.css' %}" />
9 <script src="{{ MEDIA_URL }}js/encyclopedia.js"></script>10 <script src="{% static 'js/encyclopedia.js' %}"></script>
10{{ block.super}}11{{ block.super}}
11{% endblock %}12{% endblock %}
12\ No newline at end of file13\ No newline at end of file
1314
=== modified file 'templates/wlmaps/base.html'
--- templates/wlmaps/base.html 2018-11-21 06:21:45 +0000
+++ templates/wlmaps/base.html 2018-11-28 19:45:23 +0000
@@ -5,8 +5,8 @@
5{% endcomment %}5{% endcomment %}
66
7{% block extra_head %}7{% block extra_head %}
8<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/forum.css" />8<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/forum.css' %}" />
9<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/maps.css" />9<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/maps.css' %}" />
10<link rel="stylesheet" href="{% static 'star-ratings/css/star-ratings.css' %}" />10<link rel="stylesheet" href="{% static 'star-ratings/css/star-ratings.css' %}" />
11<script type="text/javascript" src="{% static 'star-ratings/js/dist/star-ratings.min.js' %}"></script>11<script type="text/javascript" src="{% static 'star-ratings/js/dist/star-ratings.min.js' %}"></script>
12{{block.super}}12{{block.super}}
1313
=== modified file 'templates/wlmaps/edit_comment.html'
--- templates/wlmaps/edit_comment.html 2018-10-14 13:24:15 +0000
+++ templates/wlmaps/edit_comment.html 2018-11-28 19:45:23 +0000
@@ -1,4 +1,5 @@
1{% extends "wlmaps/base.html" %}1{% extends "wlmaps/base.html" %}
2{% load static %}
23
3{% block content_header %}4{% block content_header %}
4 <h1>Edit comment: {{ map.name }}</h1>5 <h1>Edit comment: {{ map.name }}</h1>
@@ -10,7 +11,7 @@
10 {{ form.uploader_comment.label_tag }}11 {{ form.uploader_comment.label_tag }}
11 <span class="posRight">12 <span class="posRight">
12 <a href="/wiki/WikiSyntax" title="Opens new Tab/Window" target="_blank">13 <a href="/wiki/WikiSyntax" title="Opens new Tab/Window" target="_blank">
13 <img src="{{ MEDIA_URL }}img/menu_help.png" alt="Help on Syntax" class="middle">14 <img src="{% static 'img/menu_help.png' %}" alt="Help on Syntax" class="middle">
14 Help on Syntax15 Help on Syntax
15 </a>16 </a>
16 </span>17 </span>
@@ -21,7 +22,7 @@
21 {% endif %}22 {% endif %}
22 {% csrf_token %}23 {% csrf_token %}
23 <button type="submit">24 <button type="submit">
24 <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="Submit" class="middle" />25 <img src="{% static 'forum/img/send.png' %}" alt ="Submit" class="middle" />
25 <span class="middle">Submit</span>26 <span class="middle">Submit</span>
26 </button>27 </button>
27 </form>28 </form>
2829
=== modified file 'templates/wlmaps/index.html'
--- templates/wlmaps/index.html 2018-11-18 17:03:56 +0000
+++ templates/wlmaps/index.html 2018-11-28 19:45:23 +0000
@@ -8,6 +8,7 @@
8{% load threadedcommentstags %}8{% load threadedcommentstags %}
9{% load pagination_tags %}9{% load pagination_tags %}
10{% load ratings %}10{% load ratings %}
11{% load static %}
1112
12{% block content_header %}13{% block content_header %}
13 <h1>Maps</h1>14 <h1>Maps</h1>
@@ -82,7 +83,7 @@
82 <td class="spacer"></td>83 <td class="spacer"></td>
83 <td colspan="2">84 <td colspan="2">
84 <a class="button" href="{% url 'wlmaps_download' map.slug %}">85 <a class="button" href="{% url 'wlmaps_download' map.slug %}">
85 <img src="{{ MEDIA_URL }}img/arrow_down_short.png" alt ="" class="middle" />86 <img src="{% static 'img/arrow_down_short.png' %}" alt ="" class="middle" />
86 <span class="middle">Direct Download</span>87 <span class="middle">Direct Download</span>
87 </a>88 </a>
88 </td>89 </td>
8990
=== modified file 'templates/wlmaps/map_detail.html'
--- templates/wlmaps/map_detail.html 2018-11-18 17:22:39 +0000
+++ templates/wlmaps/map_detail.html 2018-11-28 19:45:23 +0000
@@ -8,12 +8,13 @@
8{% load threadedcommentstags %}8{% load threadedcommentstags %}
9{% load wl_markdown %}9{% load wl_markdown %}
10{% load ratings %}10{% load ratings %}
11{% load static %}
1112
12{% block title %}{{ map.name }} - {{ block.super }}{% endblock %}13{% block title %}{{ map.name }} - {{ block.super }}{% endblock %}
1314
14{% block extra_head %}15{% block extra_head %}
15{{ block.super }}16{{ block.super }}
16 <link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/comments.css" />17 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/comments.css' %}" />
17{% endblock %}18{% endblock %}
1819
19{% block content_header %}20{% block content_header %}
@@ -41,7 +42,7 @@
41 <div>{{ map.uploader_comment|wl_markdown:"bleachit" }}</div>42 <div>{{ map.uploader_comment|wl_markdown:"bleachit" }}</div>
42 {% if user == map.uploader %}43 {% if user == map.uploader %}
43 <a class="button posLeft" href="{% url 'wlmaps_edit_comment' map.slug %}">44 <a class="button posLeft" href="{% url 'wlmaps_edit_comment' map.slug %}">
44 <img alt="Edit" title="Edit your comment" class="middle" src="{{ MEDIA_URL }}forum/img/edit.png">45 <img alt="Edit" title="Edit your comment" class="middle" src="{% static 'forum/img/edit.png' %}">
45 <span class="middle">Edit</span>46 <span class="middle">Edit</span>
46 </a>47 </a>
47 {% endif %}48 {% endif %}
@@ -102,7 +103,7 @@
102 103
103 <div style="margin: 1em 0px 1em 0px">104 <div style="margin: 1em 0px 1em 0px">
104 <a class="button posLeft" href="{% url 'wlmaps_download' map.slug %}">105 <a class="button posLeft" href="{% url 'wlmaps_download' map.slug %}">
105 <img src="{{ MEDIA_URL }}img/arrow_down_short.png" alt ="" class="middle" />106 <img src="{% static 'img/arrow_down_short.png' %}" alt ="" class="middle" />
106 <span class="middle">Download this map</span>107 <span class="middle">Download this map</span>
107 </a>108 </a>
108 </div>109 </div>
109110
=== modified file 'templates/wlmaps/upload.html'
--- templates/wlmaps/upload.html 2018-10-14 13:24:15 +0000
+++ templates/wlmaps/upload.html 2018-11-28 19:45:23 +0000
@@ -3,6 +3,8 @@
3 vim:ft=htmldjango3 vim:ft=htmldjango
4{% endcomment %}4{% endcomment %}
55
6{% load static %}
7
6{% block title %}Upload - {{ block.super }}{% endblock %}8{% block title %}Upload - {{ block.super }}{% endblock %}
79
8{% block content_header %}10{% block content_header %}
@@ -22,7 +24,7 @@
22 {{ form.uploader_comment.label_tag }}24 {{ form.uploader_comment.label_tag }}
23 <span class="posRight">25 <span class="posRight">
24 <a href="/wiki/WikiSyntax" title="Opens new Tab/Window" target="_blank">26 <a href="/wiki/WikiSyntax" title="Opens new Tab/Window" target="_blank">
25 <img src="{{ MEDIA_URL }}img/menu_help.png" alt="Help on Syntax" class="middle">27 <img src="{% static 'img/menu_help.png' %}" alt="Help on Syntax" class="middle">
26 Help on Syntax28 Help on Syntax
27 </a>29 </a>
28 </span>30 </span>
2931
=== modified file 'templates/wlpoll/base.html'
--- templates/wlpoll/base.html 2017-09-23 08:52:36 +0000
+++ templates/wlpoll/base.html 2018-11-28 19:45:23 +0000
@@ -3,10 +3,12 @@
3 vim:ft=htmldjango3 vim:ft=htmldjango
4{% endcomment %}4{% endcomment %}
55
6{% load static %}
7
6{% block extra_head %}8{% block extra_head %}
7{{block.super}}9{{block.super}}
8<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/comments.css" />10<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/comments.css' %}" />
9<script src="{{ MEDIA_URL }}js/highcharts_v5/highcharts.js" type="text/javascript"></script>11<script src="{% static 'js/highcharts_v5/highcharts.js' %}" type="text/javascript"></script>
10{% endblock %}12{% endblock %}
1113
12{% block title %}Polls - {{ block.super }}{% endblock %}14{% block title %}Polls - {{ block.super }}{% endblock %}
1315
=== modified file 'templates/wlpoll/poll_list.html'
--- templates/wlpoll/poll_list.html 2018-03-11 11:06:46 +0000
+++ templates/wlpoll/poll_list.html 2018-11-28 19:45:23 +0000
@@ -3,9 +3,11 @@
3 vim:ft=htmldjango3 vim:ft=htmldjango
4{% endcomment %}4{% endcomment %}
55
6{% load static %}
7
6{% block extra_head %}8{% block extra_head %}
7{{ block.super}}9{{ block.super}}
8<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/wiki.css" />10<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/wiki.css' %}" />
9{% endblock %}11{% endblock %}
1012
11{% load threadedcommentstags custom_date %}13{% load threadedcommentstags custom_date %}
1214
=== modified file 'templates/wlprofile/base.html'
--- templates/wlprofile/base.html 2018-10-14 13:24:15 +0000
+++ templates/wlprofile/base.html 2018-11-28 19:45:23 +0000
@@ -4,12 +4,14 @@
4 vim:ft=htmldjango4 vim:ft=htmldjango
5{% endcomment %}5{% endcomment %}
66
7{% load static %}
8
7{% block title %}9{% block title %}
8{{ block.super }}10{{ block.super }}
9{% endblock %}11{% endblock %}
1012
11{% block extra_head %}13{% block extra_head %}
12<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/profile.css" />{{ block.super}}14<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/profile.css' %}" />{{ block.super}}
13{% endblock %}15{% endblock %}
1416
15{% block content_tabbing %}17{% block content_tabbing %}
1618
=== modified file 'templates/wlscheduling/base.html'
--- templates/wlscheduling/base.html 2018-10-15 16:11:43 +0000
+++ templates/wlscheduling/base.html 2018-11-28 19:45:23 +0000
@@ -1,10 +1,12 @@
1{% extends "wlprofile/base.html" %}1{% extends "wlprofile/base.html" %}
2{% load static %}
3
2{% block extra_head %}4{% block extra_head %}
3<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/jquery-ui.multidatespicker.css" >5<link rel="stylesheet" type="text/css" href="{% static 'css/jquery-ui.multidatespicker.css' %}" >
4<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/scheduling.css" >6<link rel="stylesheet" type="text/css" href="{% static 'css/scheduling.css' %}" >
57
6<script src="{{ MEDIA_URL }}js/jquery-ui.multidatespicker.js" type="text/javascript"></script>8<script src="{% static 'js/jquery-ui.multidatespicker.js' %}" type="text/javascript"></script>
7<script src="{{ MEDIA_URL }}js/scheduling.js" type="text/javascript"></script>9<script src="{% static 'js/scheduling.js' %}" type="text/javascript"></script>
8{% endblock %}10{% endblock %}
911
10{% block title %}12{% block title %}
1113
=== modified file 'templates/wlscreens/base.html'
--- templates/wlscreens/base.html 2012-04-02 09:41:12 +0000
+++ templates/wlscreens/base.html 2018-11-28 19:45:23 +0000
@@ -3,9 +3,11 @@
3 vim:ft=htmldjango3 vim:ft=htmldjango
4{% endcomment %}4{% endcomment %}
55
6{% load static %}
7
6{% block extra_head %}8{% block extra_head %}
7{{ block.super }}9{{ block.super }}
8<link rel="stylesheet" type="text/css" media="all" href="{{ MEDIA_URL }}css/screens.css" />10<link rel="stylesheet" type="text/css" media="all" href="{% static 'css/screens.css' %}" />
9{% endblock %}11{% endblock %}
1012
11{% block title %}Screenshots - {{ block.super }}{% endblock %}13{% block title %}Screenshots - {{ block.super }}{% endblock %}
1214
=== modified file 'templates/wlscreens/index.html'
--- templates/wlscreens/index.html 2018-10-14 13:24:15 +0000
+++ templates/wlscreens/index.html 2018-11-28 19:45:23 +0000
@@ -4,13 +4,14 @@
4{% endcomment %}4{% endcomment %}
55
6{% load wl_markdown %}6{% load wl_markdown %}
7{% load static %}
78
8{% block extra_head %}9{% block extra_head %}
9{{ block.super }}10{{ block.super }}
10<link rel="stylesheet" href="{{ MEDIA_URL }}lightbox_v2/css/lightbox.css" type="text/css" media="screen" />11<link rel="stylesheet" href="{% static 'lightbox_v2/css/lightbox.css' %}" type="text/css" media="screen" />
11<link rel="stylesheet" href="{{ MEDIA_URL }}lightbox_v2/css/custom.css" type="text/css" media="screen" />12<link rel="stylesheet" href="{% static 'lightbox_v2/css/custom.css' %}" type="text/css" media="screen" />
12<!-- lightbox-plus-jquery.min.js supports also IE9+ -->13<!-- lightbox-plus-jquery.min.js supports also IE9+ -->
13<script type="text/javascript" src="{{ MEDIA_URL }}lightbox_v2/lightbox-plus-jquery.min.js"></script>14<script type="text/javascript" src="{% static 'lightbox_v2/lightbox-plus-jquery.min.js' %}"></script>
14<script type="text/javascript">15<script type="text/javascript">
15 lightbox.option({16 lightbox.option({
16 'resizeDuration': 400,17 'resizeDuration': 400,
1718
=== added directory 'threadedcomments/static'
=== added directory 'threadedcomments/static/css'
=== renamed file 'media/css/comments.css' => 'threadedcomments/static/css/comments.css'
=== added directory 'wiki/css'
=== added directory 'wiki/static'
=== added directory 'wiki/static/css'
=== renamed file 'media/css/wiki.css' => 'wiki/static/css/wiki.css'
=== added directory 'wlhelp/static'
=== added directory 'wlhelp/static/css'
=== renamed file 'media/css/encyclopedia.css' => 'wlhelp/static/css/encyclopedia.css'
=== added directory 'wlhelp/static/js'
=== renamed file 'media/js/encyclopedia.js' => 'wlhelp/static/js/encyclopedia.js'
=== added directory 'wlmaps/static'
=== added directory 'wlmaps/static/css'
=== renamed file 'media/css/maps.css' => 'wlmaps/static/css/maps.css'
=== added directory 'wlpoll/static'
=== added directory 'wlpoll/static/js'
=== renamed directory 'media/js/highcharts_v5' => 'wlpoll/static/js/highcharts_v5'
=== added directory 'wlprofile/static'
=== added directory 'wlprofile/static/css'
=== renamed file 'media/css/profile.css' => 'wlprofile/static/css/profile.css'
=== added directory 'wlscheduling/static'
=== added directory 'wlscheduling/static/css'
=== renamed file 'media/css/jquery-ui.multidatespicker.css' => 'wlscheduling/static/css/jquery-ui.multidatespicker.css'
=== renamed file 'media/css/scheduling.css' => 'wlscheduling/static/css/scheduling.css'
=== added directory 'wlscheduling/static/js'
=== renamed file 'media/js/jquery-ui.multidatespicker.js' => 'wlscheduling/static/js/jquery-ui.multidatespicker.js'
=== renamed file 'media/js/scheduling.js' => 'wlscheduling/static/js/scheduling.js'
=== added directory 'wlscreens/static'
=== added directory 'wlscreens/static/css'
=== renamed file 'media/css/screens.css' => 'wlscreens/static/css/screens.css'
=== renamed directory 'media/lightbox_v2' => 'wlscreens/static/lightbox_v2'
=== added directory 'wlsearch/static'
=== added directory 'wlsearch/static/css'
=== renamed file 'media/css/search.css' => 'wlsearch/static/css/search.css'
=== added directory 'wlsearch/static/js'
=== renamed file 'media/js/search.js' => 'wlsearch/static/js/search.js'

Subscribers

People subscribed via source and target branches