From 8ca51d32b66b96043c8685aac1e478111612c980 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 22 May 2013 16:44:50 -0500 Subject: [PATCH] Move "bits" templates with dashes in them to underscores Moved all references and also added a note to our release notes. This commit sponsored by Juan Rodriguez. Thank you! --- docs/source/siteadmin/relnotes.rst | 16 ++++++++++++++++ mediagoblin/templates/mediagoblin/base.html | 6 +++--- .../{above-content.html => above_content.html} | 0 .../bits/{body-end.html => body_end.html} | 0 .../bits/{body-start.html => body_start.html} | 0 5 files changed, 19 insertions(+), 3 deletions(-) rename mediagoblin/templates/mediagoblin/bits/{above-content.html => above_content.html} (100%) rename mediagoblin/templates/mediagoblin/bits/{body-end.html => body_end.html} (100%) rename mediagoblin/templates/mediagoblin/bits/{body-start.html => body_start.html} (100%) diff --git a/docs/source/siteadmin/relnotes.rst b/docs/source/siteadmin/relnotes.rst index 04863ec6..5d342ef1 100644 --- a/docs/source/siteadmin/relnotes.rst +++ b/docs/source/siteadmin/relnotes.rst @@ -19,6 +19,22 @@ This chapter has important information for releases in it. If you're upgrading from a previous release, please read it carefully, or at least skim over it. +0.4.0 +===== + +**For theme authors** + +If you have your own theme or you have any "user modified templates", +please note the following: + +* mediagoblin/bits/ files above-content.html, body-end.html, + body-start.html now are renamed... they have underscores instead of + dashes in the filenames now :) +* There's a new file: ``mediagoblin/bits/frontpage_welcome.html``. + You can easily customize this to give a welcome page appropriate to + your site. + + 0.3.3 ===== diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 9c42a756..5e2898f9 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -48,7 +48,7 @@ {% endblock mediagoblin_head %} - {% include 'mediagoblin/bits/body-start.html' %} + {% include 'mediagoblin/bits/body_start.html' %} {% block mediagoblin_body %} {% block mediagoblin_header %}
@@ -114,7 +114,7 @@
{% endblock %}
- {% include 'mediagoblin/bits/above-content.html' %} + {% include 'mediagoblin/bits/above_content.html' %}
{% include "mediagoblin/utils/messages.html" %} {% block mediagoblin_content %} @@ -132,6 +132,6 @@ {%- endblock mediagoblin_footer %}
{%- endblock mediagoblin_body %} - {% include 'mediagoblin/bits/body-end.html' %} + {% include 'mediagoblin/bits/body_end.html' %} diff --git a/mediagoblin/templates/mediagoblin/bits/above-content.html b/mediagoblin/templates/mediagoblin/bits/above_content.html similarity index 100% rename from mediagoblin/templates/mediagoblin/bits/above-content.html rename to mediagoblin/templates/mediagoblin/bits/above_content.html diff --git a/mediagoblin/templates/mediagoblin/bits/body-end.html b/mediagoblin/templates/mediagoblin/bits/body_end.html similarity index 100% rename from mediagoblin/templates/mediagoblin/bits/body-end.html rename to mediagoblin/templates/mediagoblin/bits/body_end.html diff --git a/mediagoblin/templates/mediagoblin/bits/body-start.html b/mediagoblin/templates/mediagoblin/bits/body_start.html similarity index 100% rename from mediagoblin/templates/mediagoblin/bits/body-start.html rename to mediagoblin/templates/mediagoblin/bits/body_start.html -- 2.25.1