# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1297075028 21600 # Node ID 349162d0ce19ea518beb5d1cb542ea761a9c272f # Parent fd4c5b26b67a2c67275bd6092cb7261ca56ea561 Fundamental fixes in snippet templates diff --git a/templates/profile/user.djhtml b/templates/profile/user.djhtml --- a/templates/profile/user.djhtml +++ b/templates/profile/user.djhtml @@ -68,11 +68,16 @@ + {% endif %} {% endif %} diff --git a/templates/snippet/snippet_details.djhtml b/templates/snippet/snippet_details.djhtml --- a/templates/snippet/snippet_details.djhtml +++ b/templates/snippet/snippet_details.djhtml @@ -58,13 +58,6 @@ {% else %} {% trans "Snippet" %} #{{ snippet.id}} {% endif %} - - {% if snippet.author %} - {% blocktrans with snippet.author as author %} - by {{ author }} - {% endblocktrans %} - {% endif %} -
@@ -83,6 +76,16 @@ — {% endif %} {% trans "Wordwrap" %} +
+ author: + {% if snippet.author %} + + {{ snippet.author }} + + {% else %} + anonymous + {% endif %} +