From a88d6719290d2715a21e15097d6fad12400b13a4 Mon Sep 17 00:00:00 2001 From: Dmitry Slepichev Date: Tue, 10 Dec 2013 01:26:07 +0400 Subject: [PATCH 1/4] django 1.5 support --- lbforum/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbforum/urls.py b/lbforum/urls.py index 57dc1d0..0c50264 100644 --- a/lbforum/urls.py +++ b/lbforum/urls.py @@ -1,5 +1,5 @@ from django.conf.urls import patterns, include, url -from django.views.generic.simple import direct_to_template +from django.views.generic import TemplateView from django.contrib.auth.decorators import login_required from lbforum import views, accountviews @@ -45,7 +45,7 @@ name='lbforum_user_topics'), url('^user/(?P\d+)/posts/$', views.user_posts, name='lbforum_user_posts'), - url(r'^lang.js$', direct_to_template, {'template': 'lbforum/lang.js'}, + url(r'^lang.js$', TemplateView.as_view(template_name='lbforum/lang.js'), name='lbforum_lang_js'), url('^markitup_preview/$', views.markitup_preview, name='markitup_preview'), From 0c1a8c0bd25230d1f498d933673f97650c3fc50b Mon Sep 17 00:00:00 2001 From: Dmitry Slepichev Date: Tue, 10 Dec 2013 01:52:59 +0400 Subject: [PATCH 2/4] django 1.5 support --- lbforum/templates/lbforum/forum.html | 4 ++-- lbforum/templates_v2ex/lbforum/forum.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lbforum/templates/lbforum/forum.html b/lbforum/templates/lbforum/forum.html index dadae31..2aa0540 100644 --- a/lbforum/templates/lbforum/forum.html +++ b/lbforum/templates/lbforum/forum.html @@ -32,7 +32,7 @@ {% paginate %}

{% if user.is_authenticated %} - {% trans "Post new topic" %} + {% trans "Post new topic" %} {% else %} {% trans "You must" %} {% trans "Login" %} {% trans "or" %} {% trans "register" %} {% trans "to post a topic" %} {% endif %} @@ -52,7 +52,7 @@

{% if user.is_authenticated %} - {% trans "Post new topic" %} + {% trans "Post new topic" %} {% else %} {% trans "You must" %} {% trans "Login" %} {% trans "or" %} {% trans "register" %} {% trans "to post a topic" %} {% endif %} diff --git a/lbforum/templates_v2ex/lbforum/forum.html b/lbforum/templates_v2ex/lbforum/forum.html index ae0696d..f47242d 100644 --- a/lbforum/templates_v2ex/lbforum/forum.html +++ b/lbforum/templates_v2ex/lbforum/forum.html @@ -65,7 +65,7 @@
{% endif %}
From eaebc35f2c77bb3b74a588df350cf4198c838bce Mon Sep 17 00:00:00 2001 From: Dmitry Slepichev Date: Tue, 10 Dec 2013 02:23:36 +0400 Subject: [PATCH 3/4] django 1.5 support --- lbforum/.idea/dictionaries/slepa.xml | 3 +++ lbforum/templates/lbforum/account/base.html | 12 +++++----- .../templates/lbforum/account/profile.html | 6 ++--- .../templates/lbforum/account/signature.html | 2 +- .../templates/lbforum/account/user_posts.html | 8 +++---- .../lbforum/account/user_topics.html | 4 ++-- lbforum/templates/lbforum/forum.html | 2 +- .../lbforum/inc_forum_brd_crumbs.html | 2 +- lbforum/templates/lbforum/inc_header.html | 8 +++---- .../lbforum/inc_new_post_brd_crumbs.html | 2 +- .../templates/lbforum/inc_post_detail.html | 12 +++++----- .../lbforum/inc_topic_brd_crumbs.html | 2 +- .../templates/lbforum/inc_topic_detail.html | 2 +- .../plugins/inc_header_left_links.html | 2 +- lbforum/templates/lbforum/post.html | 12 +++++----- lbforum/templates/lbforum/post_paginate.html | 4 ++-- lbforum/templates/lbforum/topic.html | 16 +++++++------- .../widgets/categories_and_forums.html | 2 +- .../templates/lbforum/widgets/lbf_status.html | 2 +- .../lbforum/widgets/onlineinfos.html | 2 +- .../templates_v2ex/lbforum/account/base.html | 8 +++---- .../lbforum/account/inc_base_profile.html | 4 ++-- lbforum/templates_v2ex/lbforum/forum.html | 2 +- .../templates_v2ex/lbforum/inc_header.html | 6 ++--- .../lbforum/inc_post_detail.html | 8 +++---- .../lbforum/inc_topic_detail.html | 6 ++--- lbforum/templates_v2ex/lbforum/index.html | 2 +- .../plugins/inc_header_left_links.html | 2 +- lbforum/templates_v2ex/lbforum/post.html | 14 ++++++------ .../templates_v2ex/lbforum/post_paginate.html | 4 ++-- lbforum/templates_v2ex/lbforum/recent.html | 2 +- lbforum/templates_v2ex/lbforum/topic.html | 22 +++++++++---------- .../widgets/categories_and_forums.html | 2 +- .../lbforum/widgets/cur_user_profile.html | 4 ++-- .../lbforum/widgets/onlineinfos.html | 4 ++-- 35 files changed, 99 insertions(+), 96 deletions(-) create mode 100644 lbforum/.idea/dictionaries/slepa.xml diff --git a/lbforum/.idea/dictionaries/slepa.xml b/lbforum/.idea/dictionaries/slepa.xml new file mode 100644 index 0000000..9c47f1b --- /dev/null +++ b/lbforum/.idea/dictionaries/slepa.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/lbforum/templates/lbforum/account/base.html b/lbforum/templates/lbforum/account/base.html index f6b9f3c..63b4719 100644 --- a/lbforum/templates/lbforum/account/base.html +++ b/lbforum/templates/lbforum/account/base.html @@ -20,7 +20,7 @@

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » @@ -34,20 +34,20 @@

@@ -68,7 +68,7 @@

{% block main_subhead %}{% endblock %}

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » diff --git a/lbforum/templates/lbforum/account/profile.html b/lbforum/templates/lbforum/account/profile.html index c27bc08..1685634 100644 --- a/lbforum/templates/lbforum/account/profile.html +++ b/lbforum/templates/lbforum/account/profile.html @@ -18,7 +18,7 @@ {% block account_main_content %} {% if user == view_user %}

- {% trans "Change your password" %} + {% trans "Change your password" %}

{% endif %} @@ -42,8 +42,8 @@
diff --git a/lbforum/templates/lbforum/account/signature.html b/lbforum/templates/lbforum/account/signature.html index 60776e6..57cf18e 100644 --- a/lbforum/templates/lbforum/account/signature.html +++ b/lbforum/templates/lbforum/account/signature.html @@ -65,7 +65,7 @@

{% trans "Current signature" %}

{% endblock %} diff --git a/lbforum/templates/lbforum/account/user_posts.html b/lbforum/templates/lbforum/account/user_posts.html index cdfac17..c7d4cbb 100644 --- a/lbforum/templates/lbforum/account/user_posts.html +++ b/lbforum/templates/lbforum/account/user_posts.html @@ -20,7 +20,7 @@

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » @@ -57,7 +57,7 @@

{% page_item_idx page_obj forloop %} @@ -73,7 +73,7 @@

@@ -101,7 +101,7 @@

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » diff --git a/lbforum/templates/lbforum/account/user_topics.html b/lbforum/templates/lbforum/account/user_topics.html index c94f6ed..69b187b 100644 --- a/lbforum/templates/lbforum/account/user_topics.html +++ b/lbforum/templates/lbforum/account/user_topics.html @@ -20,7 +20,7 @@

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » @@ -63,7 +63,7 @@

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » diff --git a/lbforum/templates/lbforum/forum.html b/lbforum/templates/lbforum/forum.html index 2aa0540..3070e9c 100644 --- a/lbforum/templates/lbforum/forum.html +++ b/lbforum/templates/lbforum/forum.html @@ -39,7 +39,7 @@

{% include 'lbforum/inc_topic_list.html' %} diff --git a/lbforum/templates/lbforum/inc_forum_brd_crumbs.html b/lbforum/templates/lbforum/inc_forum_brd_crumbs.html index 83ecad3..81478a4 100644 --- a/lbforum/templates/lbforum/inc_forum_brd_crumbs.html +++ b/lbforum/templates/lbforum/inc_forum_brd_crumbs.html @@ -1,6 +1,6 @@

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » diff --git a/lbforum/templates/lbforum/inc_header.html b/lbforum/templates/lbforum/inc_header.html index 7cf638b..12a27fd 100644 --- a/lbforum/templates/lbforum/inc_header.html +++ b/lbforum/templates/lbforum/inc_header.html @@ -2,7 +2,7 @@

@@ -15,8 +15,8 @@ {% trans "Search" %} {% if user.is_authenticated %} - - + + {% else %} @@ -28,7 +28,7 @@

{% if user.is_authenticated %} - {% blocktrans %}Hello {{user}}{% endblocktrans %}, {% trans "Logout" %} + {% blocktrans %}Hello {{user}}{% endblocktrans %}, {% trans "Logout" %} {% else %} {% trans "Login" %} | diff --git a/lbforum/templates/lbforum/inc_new_post_brd_crumbs.html b/lbforum/templates/lbforum/inc_new_post_brd_crumbs.html index 21ffa20..b21380b 100644 --- a/lbforum/templates/lbforum/inc_new_post_brd_crumbs.html +++ b/lbforum/templates/lbforum/inc_new_post_brd_crumbs.html @@ -1,7 +1,7 @@ {% load i18n %}

- {{ LBFORUM_TITLE }} + {{ LBFORUM_TITLE }} » diff --git a/lbforum/templates/lbforum/inc_post_detail.html b/lbforum/templates/lbforum/inc_post_detail.html index 6c187d2..0c7ccd1 100644 --- a/lbforum/templates/lbforum/inc_post_detail.html +++ b/lbforum/templates/lbforum/inc_post_detail.html @@ -8,7 +8,7 @@

{% page_item_idx page_obj forloop %} {{ post.created_on|lbtimesince }} @@ -18,8 +18,8 @@

- + @@ -167,13 +167,13 @@

+ @@ -98,13 +98,13 @@