# HG changeset patch # User cavaliet # Date 1354113085 -3600 # Node ID 45416f40602e45c606320f5447c9abfdef277eff # Parent 57a5ecd3ef5996cb7ccaba865ac2cd24c468cbb6 enhance template management diff -r 57a5ecd3ef59 -r 45416f40602e src/hashcut/templates/bpi_mashup_edit.html --- a/src/hashcut/templates/bpi_mashup_edit.html Wed Nov 28 13:31:00 2012 +0100 +++ b/src/hashcut/templates/bpi_mashup_edit.html Wed Nov 28 15:31:25 2012 +0100 @@ -13,76 +13,7 @@ {% block wrap_header %}
- - - -
-
-
-

Mashup75

-

mash@cinecast.fr

- 12 Hashcuts -

- -

-
-
- - - - - - - + {% include 'partial/bpi_mashup_popin_user.html' %}
@@ -101,10 +32,8 @@
-

- Hashcut - Le Mashup
Cliquable
-

+ {% include 'partial/bpi_hashcut_logo.html' %} +

Hashcut sans titre @@ -113,7 +42,7 @@

diff -r 57a5ecd3ef59 -r 45416f40602e src/hashcut/templates/bpi_mashup_hashcut.html --- a/src/hashcut/templates/bpi_mashup_hashcut.html Wed Nov 28 13:31:00 2012 +0100 +++ b/src/hashcut/templates/bpi_mashup_hashcut.html Wed Nov 28 15:31:25 2012 +0100 @@ -12,79 +12,8 @@ {% block wrap_header %}
- - -
-
-
-

Mashup75

-

mash@cinecast.fr

- 12 Hashcuts -

- -

-
-
- - - - - - - -

- Hashcut - Le Mashup
Cliquable
-

+ {% include 'partial/bpi_mashup_popin_user.html' %} + {% include 'partial/bpi_hashcut_logo.html' %}
@@ -103,8 +32,8 @@
diff -r 57a5ecd3ef59 -r 45416f40602e src/hashcut/templates/bpi_mashup_home.html --- a/src/hashcut/templates/bpi_mashup_home.html Wed Nov 28 13:31:00 2012 +0100 +++ b/src/hashcut/templates/bpi_mashup_home.html Wed Nov 28 15:31:25 2012 +0100 @@ -37,79 +37,8 @@ {% block wrap_header %}
- - - - - - - - - - -

- Hashcut - Le Mashup
Cliquable
-

+ {% include 'partial/bpi_mashup_popin_user.html' %} + {% include 'partial/bpi_hashcut_logo.html' %} diff -r 57a5ecd3ef59 -r 45416f40602e src/hashcut/templates/partial/bpi_hashcut_logo.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hashcut/templates/partial/bpi_hashcut_logo.html Wed Nov 28 15:31:25 2012 +0100 @@ -0,0 +1,5 @@ +{% load static %} +

+ Hashcut + Le Mashup
Cliquable
+

\ No newline at end of file diff -r 57a5ecd3ef59 -r 45416f40602e src/hashcut/templates/partial/bpi_mashup_popin_user.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hashcut/templates/partial/bpi_mashup_popin_user.html Wed Nov 28 15:31:25 2012 +0100 @@ -0,0 +1,68 @@ + + +
+
+
+

Mashup75

+

mash@cinecast.fr

+ 12 Hashcuts +

+ +

+
+
+ + + + + + \ No newline at end of file diff -r 57a5ecd3ef59 -r 45416f40602e src/hashcut/views.py --- a/src/hashcut/views.py Wed Nov 28 13:31:00 2012 +0100 +++ b/src/hashcut/views.py Wed Nov 28 15:31:25 2012 +0100 @@ -24,7 +24,6 @@ # the branding template is supposed to override the default template. So we insert instead of append if self.branding and self.branding != "": - #names.insert(0,"%s_%s" % (self.branding, self.template_name)) names.insert(0,"%s_%s" % (self.branding, self.template_suffix)) return names @@ -61,7 +60,6 @@ # the branding template is supposed to override the default template. So we insert instead of append if self.branding and self.branding != "": - #names.insert(0,"%s_%s" % (self.branding, self.template_name)) names.insert(0,"%s_%s" % (self.branding, self.template_suffix)) return names @@ -93,7 +91,6 @@ # the branding template is supposed to override the default template. So we insert instead of append if self.branding and self.branding != "": - #names.insert(0,"%s_%s" % (self.branding, self.template_name)) names.insert(0,"%s_%s" % (self.branding, self.template_suffix)) return names @@ -102,9 +99,6 @@ self.branding = branding if not ldt_id: return HttpResponseNotFound("A project id must be given.") -# project = Project.objects.get(ldt_id=ldt_id) -# if not project: -# return HttpResponseNotFound("Project not found.") context = {"branding":self.branding, "ldt_id":ldt_id} return self.render_to_response(context)