diff templates/snippet/snippet_details.djhtml @ 52:349162d0ce19

Fundamental fixes in snippet templates
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Mon, 07 Feb 2011 04:37:08 -0600
parents 329a9d17be88
children d48e8676b18f
line wrap: on
line diff
--- a/templates/snippet/snippet_details.djhtml	Tue Jan 18 23:04:05 2011 -0600
+++ b/templates/snippet/snippet_details.djhtml	Mon Feb 07 04:37:08 2011 -0600
@@ -58,13 +58,6 @@
       {% else %}
       {% trans "Snippet" %} #{{ snippet.id}}
       {% endif %}
-      <span>
-        {% if snippet.author %}
-        {% blocktrans with snippet.author as author %}
-        by {{ author }}
-        {% endblocktrans %}
-        {% endif %}
-      </span>
     </h3>
 
     <div class="whitebox">
@@ -83,6 +76,16 @@
         &mdash;
         {% endif %}
         <a id="toggleWordwrap" href="#">{% trans "Wordwrap" %}</a>
+        <div>
+         author:
+          {% if snippet.author %}
+         <a href="{% url agora.apps.profile.views.showprofile snippet.author %}">
+           {{ snippet.author }}
+         </a>
+          {% else %}
+          anonymous
+          {% endif %}
+        </div>
       </div>
 
       <br />