From a14e2d0bcfcd0c246c96b75f3687e26b2dc57e8a Mon Sep 17 00:00:00 2001 From: olivier <> Date: Fri, 9 Jan 2009 14:15:12 +0000 Subject: [PATCH] move all templates into a subdirectory to avoid conflicts with templates from a given project or other apps --- telemeta/templates/{ => telemeta}/admin.html | 2 +- telemeta/templates/{ => telemeta}/base.html | 0 .../templates/{ => telemeta}/base_xspf.xml | 0 .../templates/{ => telemeta}/collection.m3u | 0 .../{ => telemeta}/collection_detail.html | 4 ++-- .../{ => telemeta}/collection_detail_dc.html | 2 +- .../{ => telemeta}/collection_list.html | 4 ++-- .../{ => telemeta}/collection_xspf.xml | 2 +- .../{ => telemeta}/enumeration_edit.html | 2 +- .../enumeration_edit_value.html | 2 +- .../{ => telemeta}/geo_continents.html | 2 +- .../{ => telemeta}/geo_continents.js | 0 .../{ => telemeta}/geo_countries.html | 2 +- .../geo_country_collections.html | 4 ++-- .../{ => telemeta}/inc/collection_list.html | 0 .../{ => telemeta}/inc/mediaitem_list.html | 0 telemeta/templates/{ => telemeta}/index.html | 2 +- .../{ => telemeta}/mediaitem_detail.html | 2 +- .../{ => telemeta}/mediaitem_detail_dc.html | 2 +- .../{ => telemeta}/mediaitem_list.html | 4 ++-- .../{ => telemeta}/mediaitem_xspf.xml | 2 +- .../{ => telemeta}/search_criteria.html | 2 +- .../{ => telemeta}/search_results.html | 6 ++--- telemeta/urls.py | 16 +++++++------- telemeta/web/base.py | 22 +++++++++---------- 25 files changed, 42 insertions(+), 42 deletions(-) rename telemeta/templates/{ => telemeta}/admin.html (95%) rename telemeta/templates/{ => telemeta}/base.html (100%) rename telemeta/templates/{ => telemeta}/base_xspf.xml (100%) rename telemeta/templates/{ => telemeta}/collection.m3u (100%) rename telemeta/templates/{ => telemeta}/collection_detail.html (97%) rename telemeta/templates/{ => telemeta}/collection_detail_dc.html (96%) rename telemeta/templates/{ => telemeta}/collection_list.html (61%) rename telemeta/templates/{ => telemeta}/collection_xspf.xml (94%) rename telemeta/templates/{ => telemeta}/enumeration_edit.html (97%) rename telemeta/templates/{ => telemeta}/enumeration_edit_value.html (94%) rename telemeta/templates/{ => telemeta}/geo_continents.html (95%) rename telemeta/templates/{ => telemeta}/geo_continents.js (100%) rename telemeta/templates/{ => telemeta}/geo_countries.html (91%) rename telemeta/templates/{ => telemeta}/geo_country_collections.html (77%) rename telemeta/templates/{ => telemeta}/inc/collection_list.html (100%) rename telemeta/templates/{ => telemeta}/inc/mediaitem_list.html (100%) rename telemeta/templates/{ => telemeta}/index.html (93%) rename telemeta/templates/{ => telemeta}/mediaitem_detail.html (97%) rename telemeta/templates/{ => telemeta}/mediaitem_detail_dc.html (93%) rename telemeta/templates/{ => telemeta}/mediaitem_list.html (55%) rename telemeta/templates/{ => telemeta}/mediaitem_xspf.xml (91%) rename telemeta/templates/{ => telemeta}/search_criteria.html (98%) rename telemeta/templates/{ => telemeta}/search_results.html (90%) diff --git a/telemeta/templates/admin.html b/telemeta/templates/telemeta/admin.html similarity index 95% rename from telemeta/templates/admin.html rename to telemeta/templates/telemeta/admin.html index 9993a68a..b586b206 100644 --- a/telemeta/templates/admin.html +++ b/telemeta/templates/telemeta/admin.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% block extra_style %} diff --git a/telemeta/templates/base.html b/telemeta/templates/telemeta/base.html similarity index 100% rename from telemeta/templates/base.html rename to telemeta/templates/telemeta/base.html diff --git a/telemeta/templates/base_xspf.xml b/telemeta/templates/telemeta/base_xspf.xml similarity index 100% rename from telemeta/templates/base_xspf.xml rename to telemeta/templates/telemeta/base_xspf.xml diff --git a/telemeta/templates/collection.m3u b/telemeta/templates/telemeta/collection.m3u similarity index 100% rename from telemeta/templates/collection.m3u rename to telemeta/templates/telemeta/collection.m3u diff --git a/telemeta/templates/collection_detail.html b/telemeta/templates/telemeta/collection_detail.html similarity index 97% rename from telemeta/templates/collection_detail.html rename to telemeta/templates/telemeta/collection_detail.html index 5dea5250..b98a2d08 100644 --- a/telemeta/templates/collection_detail.html +++ b/telemeta/templates/telemeta/collection_detail.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% load telemeta_utils %} {% block extra_javascript %} @@ -150,7 +150,7 @@

Items

{% with object.ordered_items as items %} - {% include "inc/mediaitem_list.html" %} + {% include "telemeta/inc/mediaitem_list.html" %} {% endwith %} diff --git a/telemeta/templates/collection_detail_dc.html b/telemeta/templates/telemeta/collection_detail_dc.html similarity index 96% rename from telemeta/templates/collection_detail_dc.html rename to telemeta/templates/telemeta/collection_detail_dc.html index 8f01ecac..0cf3e394 100644 --- a/telemeta/templates/collection_detail_dc.html +++ b/telemeta/templates/telemeta/collection_detail_dc.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% load telemeta_utils %} {% if object %} diff --git a/telemeta/templates/collection_list.html b/telemeta/templates/telemeta/collection_list.html similarity index 61% rename from telemeta/templates/collection_list.html rename to telemeta/templates/telemeta/collection_list.html index 6d975df4..35a21eda 100644 --- a/telemeta/templates/collection_list.html +++ b/telemeta/templates/telemeta/collection_list.html @@ -1,11 +1,11 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% load telemeta_utils %} {% block content %}

Collections

{% with object_list as collections %} -{% include "inc/collection_list.html" %} +{% include "telemeta/inc/collection_list.html" %} {% endwith %} {% endblock %} diff --git a/telemeta/templates/collection_xspf.xml b/telemeta/templates/telemeta/collection_xspf.xml similarity index 94% rename from telemeta/templates/collection_xspf.xml rename to telemeta/templates/telemeta/collection_xspf.xml index acc8a3cb..2e8066c0 100644 --- a/telemeta/templates/collection_xspf.xml +++ b/telemeta/templates/telemeta/collection_xspf.xml @@ -1,4 +1,4 @@ -{% extends "base_xspf.xml" %} +{% extends "telemeta/base_xspf.xml" %} {% load telemeta_utils %} {% block listinfo %} diff --git a/telemeta/templates/enumeration_edit.html b/telemeta/templates/telemeta/enumeration_edit.html similarity index 97% rename from telemeta/templates/enumeration_edit.html rename to telemeta/templates/telemeta/enumeration_edit.html index 8a426538..ae5262a5 100644 --- a/telemeta/templates/enumeration_edit.html +++ b/telemeta/templates/telemeta/enumeration_edit.html @@ -1,4 +1,4 @@ -{% extends "admin.html" %} +{% extends "telemeta/admin.html" %} {% block tabcontents %}

Manage {{ enumeration_name_plural|capfirst }}

diff --git a/telemeta/templates/enumeration_edit_value.html b/telemeta/templates/telemeta/enumeration_edit_value.html similarity index 94% rename from telemeta/templates/enumeration_edit_value.html rename to telemeta/templates/telemeta/enumeration_edit_value.html index b574a1b5..f1fc8ad1 100644 --- a/telemeta/templates/enumeration_edit_value.html +++ b/telemeta/templates/telemeta/enumeration_edit_value.html @@ -1,4 +1,4 @@ -{% extends "admin.html" %} +{% extends "telemeta/admin.html" %} {% block tabcontents %}

Manage {{ enumeration_name_plural|capfirst }}

diff --git a/telemeta/templates/geo_continents.html b/telemeta/templates/telemeta/geo_continents.html similarity index 95% rename from telemeta/templates/geo_continents.html rename to telemeta/templates/telemeta/geo_continents.html index d59e9faa..9e2a7314 100644 --- a/telemeta/templates/geo_continents.html +++ b/telemeta/templates/telemeta/geo_continents.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% load telemeta_utils %} {% block content %} diff --git a/telemeta/templates/geo_continents.js b/telemeta/templates/telemeta/geo_continents.js similarity index 100% rename from telemeta/templates/geo_continents.js rename to telemeta/templates/telemeta/geo_continents.js diff --git a/telemeta/templates/geo_countries.html b/telemeta/templates/telemeta/geo_countries.html similarity index 91% rename from telemeta/templates/geo_countries.html rename to telemeta/templates/telemeta/geo_countries.html index b7f90a04..8b25e9ee 100644 --- a/telemeta/templates/geo_countries.html +++ b/telemeta/templates/telemeta/geo_countries.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% load telemeta_utils %} {% block content %} diff --git a/telemeta/templates/geo_country_collections.html b/telemeta/templates/telemeta/geo_country_collections.html similarity index 77% rename from telemeta/templates/geo_country_collections.html rename to telemeta/templates/telemeta/geo_country_collections.html index 2fc474c2..29bb27e9 100644 --- a/telemeta/templates/geo_country_collections.html +++ b/telemeta/templates/telemeta/geo_country_collections.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% load telemeta_utils %} {% block content %} @@ -7,7 +7,7 @@ / {{ country }} {% with object_list as collections %} -{% include "inc/collection_list.html" %} +{% include "telemeta/inc/collection_list.html" %} {% endwith %} {% endblock %} diff --git a/telemeta/templates/inc/collection_list.html b/telemeta/templates/telemeta/inc/collection_list.html similarity index 100% rename from telemeta/templates/inc/collection_list.html rename to telemeta/templates/telemeta/inc/collection_list.html diff --git a/telemeta/templates/inc/mediaitem_list.html b/telemeta/templates/telemeta/inc/mediaitem_list.html similarity index 100% rename from telemeta/templates/inc/mediaitem_list.html rename to telemeta/templates/telemeta/inc/mediaitem_list.html diff --git a/telemeta/templates/index.html b/telemeta/templates/telemeta/index.html similarity index 93% rename from telemeta/templates/index.html rename to telemeta/templates/telemeta/index.html index 041e169d..08d4e9bf 100644 --- a/telemeta/templates/index.html +++ b/telemeta/templates/telemeta/index.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "telemeta/base.html" %} {% block content %}