From 6d068cbd5a4feb6e398607e3003140dd7d287a42 Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Mon, 17 Oct 2011 17:01:06 -0300 Subject: Block migration complete --- askbot/skins/default/templates/answer_edit.html | 2 +- askbot/skins/default/templates/ask.html | 4 +- askbot/skins/default/templates/base.html | 10 +-- askbot/skins/default/templates/blocks/README | 2 - .../skins/default/templates/blocks/ask_form.html | 46 ---------- .../default/templates/blocks/bottom_scripts.html | 97 ---------------------- .../default/templates/blocks/editor_data.html | 10 --- askbot/skins/default/templates/blocks/footer.html | 61 -------------- askbot/skins/default/templates/blocks/header.html | 17 ---- .../templates/blocks/mandatory_tags_js.html | 25 ------ .../skins/default/templates/blocks/paginator.html | 4 - .../default/templates/blocks/secondary_header.html | 12 --- .../default/templates/blocks/system_messages.html | 8 -- .../default/templates/meta/bottom_scripts.html | 97 ++++++++++++++++++++++ .../skins/default/templates/meta/editor_data.html | 10 +++ .../default/templates/meta/mandatory_tags_js.html | 25 ++++++ .../default/templates/question/javascript.html | 2 +- askbot/skins/default/templates/question_edit.html | 4 +- .../skins/default/templates/widgets/ask_form.html | 46 ++++++++++ askbot/skins/default/templates/widgets/footer.html | 61 ++++++++++++++ askbot/skins/default/templates/widgets/header.html | 17 ++++ .../default/templates/widgets/search_bar.html | 2 +- .../templates/widgets/secondary_header.html | 12 +++ .../default/templates/widgets/system_messages.html | 8 ++ 24 files changed, 288 insertions(+), 294 deletions(-) delete mode 100644 askbot/skins/default/templates/blocks/README delete mode 100644 askbot/skins/default/templates/blocks/ask_form.html delete mode 100644 askbot/skins/default/templates/blocks/bottom_scripts.html delete mode 100644 askbot/skins/default/templates/blocks/editor_data.html delete mode 100644 askbot/skins/default/templates/blocks/footer.html delete mode 100644 askbot/skins/default/templates/blocks/header.html delete mode 100644 askbot/skins/default/templates/blocks/mandatory_tags_js.html delete mode 100644 askbot/skins/default/templates/blocks/paginator.html delete mode 100644 askbot/skins/default/templates/blocks/secondary_header.html delete mode 100644 askbot/skins/default/templates/blocks/system_messages.html create mode 100644 askbot/skins/default/templates/meta/bottom_scripts.html create mode 100644 askbot/skins/default/templates/meta/editor_data.html create mode 100644 askbot/skins/default/templates/meta/mandatory_tags_js.html create mode 100644 askbot/skins/default/templates/widgets/ask_form.html create mode 100644 askbot/skins/default/templates/widgets/footer.html create mode 100644 askbot/skins/default/templates/widgets/header.html create mode 100644 askbot/skins/default/templates/widgets/secondary_header.html create mode 100644 askbot/skins/default/templates/widgets/system_messages.html diff --git a/askbot/skins/default/templates/answer_edit.html b/askbot/skins/default/templates/answer_edit.html index 0ab5f641..168ba784 100644 --- a/askbot/skins/default/templates/answer_edit.html +++ b/askbot/skins/default/templates/answer_edit.html @@ -33,7 +33,7 @@ {% endblock %} {% block endjs %} - {% include "blocks/editor_data.html" %} + {% include "meta/editor_data.html" %} diff --git a/askbot/skins/default/templates/ask.html b/askbot/skins/default/templates/ask.html index 6eb02b64..07bd8424 100644 --- a/askbot/skins/default/templates/ask.html +++ b/askbot/skins/default/templates/ask.html @@ -20,9 +20,9 @@ var minSearchWordLength = {{settings.MIN_SEARCH_WORD_LENGTH}}; - {% include "blocks/editor_data.html" %} + {% include "meta/editor_data.html" %} {% if mandatory_tags %} - {% include "blocks/mandatory_tags_js.html" %} + {% include "meta/mandatory_tags_js.html" %} {% endif %} - - - - - - -{% if settings.ENABLE_MATHJAX %} - -{% endif %} - -{% if settings.USE_CUSTOM_JS %} - -{% endif %} -{% if settings.GOOGLE_ANALYTICS_KEY %} - - -{% endif %} diff --git a/askbot/skins/default/templates/blocks/editor_data.html b/askbot/skins/default/templates/blocks/editor_data.html deleted file mode 100644 index 79ed96fb..00000000 --- a/askbot/skins/default/templates/blocks/editor_data.html +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/askbot/skins/default/templates/blocks/footer.html b/askbot/skins/default/templates/blocks/footer.html deleted file mode 100644 index 14f18786..00000000 --- a/askbot/skins/default/templates/blocks/footer.html +++ /dev/null @@ -1,61 +0,0 @@ - -
-
- {% if settings.USE_LICENSE %}{# could be factored out into separate template #} - {% if settings.LICENSE_USE_URL %} - - {% else %} - - {% endif %} - {% endif %} - - -
-
-
- diff --git a/askbot/skins/default/templates/blocks/header.html b/askbot/skins/default/templates/blocks/header.html deleted file mode 100644 index ad0ae4a2..00000000 --- a/askbot/skins/default/templates/blocks/header.html +++ /dev/null @@ -1,17 +0,0 @@ - -{% import "macros.html" as macros %} - - diff --git a/askbot/skins/default/templates/blocks/mandatory_tags_js.html b/askbot/skins/default/templates/blocks/mandatory_tags_js.html deleted file mode 100644 index f04a6345..00000000 --- a/askbot/skins/default/templates/blocks/mandatory_tags_js.html +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/askbot/skins/default/templates/blocks/paginator.html b/askbot/skins/default/templates/blocks/paginator.html deleted file mode 100644 index 9782407f..00000000 --- a/askbot/skins/default/templates/blocks/paginator.html +++ /dev/null @@ -1,4 +0,0 @@ - -{% import "macros.html" as macros %} -{{ macros.paginator(paginator_context)}} - diff --git a/askbot/skins/default/templates/blocks/secondary_header.html b/askbot/skins/default/templates/blocks/secondary_header.html deleted file mode 100644 index caf190bc..00000000 --- a/askbot/skins/default/templates/blocks/secondary_header.html +++ /dev/null @@ -1,12 +0,0 @@ - -
-
- -
- {% include "widgets/scope_nav.html" %} - {% include "widgets/search_bar.html" %} {# include search form widget #} -
- {% include "widgets/ask_button.html" %} -
-
-
diff --git a/askbot/skins/default/templates/blocks/system_messages.html b/askbot/skins/default/templates/blocks/system_messages.html deleted file mode 100644 index 6b803846..00000000 --- a/askbot/skins/default/templates/blocks/system_messages.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/askbot/skins/default/templates/meta/bottom_scripts.html b/askbot/skins/default/templates/meta/bottom_scripts.html new file mode 100644 index 00000000..1f63b468 --- /dev/null +++ b/askbot/skins/default/templates/meta/bottom_scripts.html @@ -0,0 +1,97 @@ +{# most, if not all javascripts should go here + this template is included at the very bottow of the + main template "base.html" +#} +
+ +
+ + + + + + + +{% if settings.ENABLE_MATHJAX %} + +{% endif %} + +{% if settings.USE_CUSTOM_JS %} + +{% endif %} +{% if settings.GOOGLE_ANALYTICS_KEY %} + + +{% endif %} diff --git a/askbot/skins/default/templates/meta/editor_data.html b/askbot/skins/default/templates/meta/editor_data.html new file mode 100644 index 00000000..79ed96fb --- /dev/null +++ b/askbot/skins/default/templates/meta/editor_data.html @@ -0,0 +1,10 @@ + diff --git a/askbot/skins/default/templates/meta/mandatory_tags_js.html b/askbot/skins/default/templates/meta/mandatory_tags_js.html new file mode 100644 index 00000000..f04a6345 --- /dev/null +++ b/askbot/skins/default/templates/meta/mandatory_tags_js.html @@ -0,0 +1,25 @@ + diff --git a/askbot/skins/default/templates/question/javascript.html b/askbot/skins/default/templates/question/javascript.html index 1e4e47ab..552155de 100644 --- a/askbot/skins/default/templates/question/javascript.html +++ b/askbot/skins/default/templates/question/javascript.html @@ -92,4 +92,4 @@ setupFormValidation($("#fmanswer"), CPValidator.getQuestionFormRules(), CPValidator.getQuestionFormMessages()); } -{% include "blocks/editor_data.html" %} +{% include "meta/editor_data.html" %} diff --git a/askbot/skins/default/templates/question_edit.html b/askbot/skins/default/templates/question_edit.html index e039e33a..3cdcd8bb 100644 --- a/askbot/skins/default/templates/question_edit.html +++ b/askbot/skins/default/templates/question_edit.html @@ -43,10 +43,10 @@ {% endblock %} {% block endjs %} - {% include "blocks/editor_data.html" %} + {% include "meta/editor_data.html" %} {% if mandatory_tags %} - {% include "blocks/mandatory_tags_js.html" %} + {% include "meta/mandatory_tags_js.html" %} {% endif %} diff --git a/askbot/skins/default/templates/widgets/ask_form.html b/askbot/skins/default/templates/widgets/ask_form.html new file mode 100644 index 00000000..606aef78 --- /dev/null +++ b/askbot/skins/default/templates/widgets/ask_form.html @@ -0,0 +1,46 @@ +{% import "macros.html" as macros %} +
{% csrf_token %} +
+
+ {% if not request.user.is_authenticated() %} +

{% trans %}login to post question info{% endtrans %}

+ {% else %} + {% if settings.EMAIL_VALIDATION %} + {% if not request.user.email_isvalid %} + {% trans email=request.user.email %}must have valid {{email}} to post, + see {{email_validation_faq_url}} + {% endtrans %} + {% endif %} + {% endif %} + {% endif %} + + {{ form.title.errors }} +
+
+ {{ form.title.help_text }} +
+
+
+ {{ + macros.edit_post( + form, + post_type = 'question', + edit_title = False, + mandatory_tags = mandatory_tags + ) + }} + {% if not request.user.is_authenticated() %} + + {% else %} + + {% endif %} +
+ {% if settings.WIKI_ON %} + {{ macros.checkbox_in_div(form.wiki) }} + {% endif %} + {% if settings.ALLOW_ASK_ANONYMOUSLY %} + {{ macros.checkbox_in_div(form.ask_anonymously) }} + {% endif %} +
+
diff --git a/askbot/skins/default/templates/widgets/footer.html b/askbot/skins/default/templates/widgets/footer.html new file mode 100644 index 00000000..14f18786 --- /dev/null +++ b/askbot/skins/default/templates/widgets/footer.html @@ -0,0 +1,61 @@ + +
+
+ {% if settings.USE_LICENSE %}{# could be factored out into separate template #} + {% if settings.LICENSE_USE_URL %} + + {% else %} + + {% endif %} + {% endif %} + + +
+
+
+ diff --git a/askbot/skins/default/templates/widgets/header.html b/askbot/skins/default/templates/widgets/header.html new file mode 100644 index 00000000..ad0ae4a2 --- /dev/null +++ b/askbot/skins/default/templates/widgets/header.html @@ -0,0 +1,17 @@ + +{% import "macros.html" as macros %} + + diff --git a/askbot/skins/default/templates/widgets/search_bar.html b/askbot/skins/default/templates/widgets/search_bar.html index 55917fbc..0d4c66a9 100644 --- a/askbot/skins/default/templates/widgets/search_bar.html +++ b/askbot/skins/default/templates/widgets/search_bar.html @@ -44,5 +44,5 @@ {% endspaceless %} {% else %} - {% include "blocks/ask_form.html" %} + {% include "widgets/ask_form.html" %} {% endif %} diff --git a/askbot/skins/default/templates/widgets/secondary_header.html b/askbot/skins/default/templates/widgets/secondary_header.html new file mode 100644 index 00000000..caf190bc --- /dev/null +++ b/askbot/skins/default/templates/widgets/secondary_header.html @@ -0,0 +1,12 @@ + +
+
+ +
+ {% include "widgets/scope_nav.html" %} + {% include "widgets/search_bar.html" %} {# include search form widget #} +
+ {% include "widgets/ask_button.html" %} +
+
+
diff --git a/askbot/skins/default/templates/widgets/system_messages.html b/askbot/skins/default/templates/widgets/system_messages.html new file mode 100644 index 00000000..6b803846 --- /dev/null +++ b/askbot/skins/default/templates/widgets/system_messages.html @@ -0,0 +1,8 @@ + -- cgit v1.2.3-1-g7c22