# HG changeset patch # User cavaliet # Date 1354402091 -3600 # Node ID 1a78608617aa233032d39a5a339480df534fb0ce # Parent c4ee4cab84d38a32652ac004d0227e42f24f7a54 Create user and login user forms are now active. diff -r c4ee4cab84d3 -r 1a78608617aa src/hashcut/templates/bpi_mashup_edit.html --- a/src/hashcut/templates/bpi_mashup_edit.html Fri Nov 30 17:05:15 2012 +0100 +++ b/src/hashcut/templates/bpi_mashup_edit.html Sat Dec 01 23:48:11 2012 +0100 @@ -275,7 +275,7 @@ return newurl; }; var hashcut = IriSP.editor({ - creator: "{{creator}}", + creator: "{{user.username}}", csrf_token: "{{csrf_token}}", filter: { tags__icontains: "BPI" diff -r c4ee4cab84d3 -r 1a78608617aa src/hashcut/templates/bpi_mashup_home.html --- a/src/hashcut/templates/bpi_mashup_home.html Fri Nov 30 17:05:15 2012 +0100 +++ b/src/hashcut/templates/bpi_mashup_home.html Sat Dec 01 23:48:11 2012 +0100 @@ -65,7 +65,7 @@
{% if m1 %} {% thumbnail m1.project.image "302x202" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{{ m1.project.title }} par {{ m1.creator }} | 02:24

+

{{ m1.project.title }} par {{ m1.creator }} | 02:24

{% endif %}
diff -r c4ee4cab84d3 -r 1a78608617aa src/hashcut/templates/iri_mashup_edit.html --- a/src/hashcut/templates/iri_mashup_edit.html Fri Nov 30 17:05:15 2012 +0100 +++ b/src/hashcut/templates/iri_mashup_edit.html Sat Dec 01 23:48:11 2012 +0100 @@ -275,7 +275,7 @@ return newurl; }; var hashcut = IriSP.editor({ - creator: "{{creator}}", + creator: "{{user.username}}", csrf_token: "{{csrf_token}}", filter: { tags__icontains: "BPI" diff -r c4ee4cab84d3 -r 1a78608617aa src/hashcut/templates/iri_mashup_home.html --- a/src/hashcut/templates/iri_mashup_home.html Fri Nov 30 17:05:15 2012 +0100 +++ b/src/hashcut/templates/iri_mashup_home.html Sat Dec 01 23:48:11 2012 +0100 @@ -64,7 +64,7 @@
{% if m1 %} {% thumbnail m1.project.image "302x202" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} -

{{ m1.project.title }} par {{ m1.creator }} | 02:24

+

{{ m1.project.title }} par {{ m1.creator }} | 02:24

{% endif %}
diff -r c4ee4cab84d3 -r 1a78608617aa src/hashcut/templates/partial/bpi_mashup_popin_user.html --- a/src/hashcut/templates/partial/bpi_mashup_popin_user.html Fri Nov 30 17:05:15 2012 +0100 +++ b/src/hashcut/templates/partial/bpi_mashup_popin_user.html Sat Dec 01 23:48:11 2012 +0100 @@ -3,11 +3,13 @@
-

{{creator}}

+ {% if user.is_authenticated %} +

{{user.username}}

{{email_creator}}

- {{nb_mashup_creator}} Hashcuts + {{nb_mashup_creator}} Hashcuts + {% else %}

Vous n'êtes pas identifié. Veuillez vous logguer.

{% endif %}

- +

@@ -16,22 +18,23 @@

Créer un compte :

-