[damned-lies] Show hackergotchis in vertimus pages (Fixes #567399)



commit d9a5363932065cdf05b2b7cc4a02400399ea8bde
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Oct 31 17:47:05 2009 +0100

    Show hackergotchis in vertimus pages (Fixes #567399)

 templates/vertimus/vertimus_detail.html |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/templates/vertimus/vertimus_detail.html b/templates/vertimus/vertimus_detail.html
index c2a622a..a5c60bd 100644
--- a/templates/vertimus/vertimus_detail.html
+++ b/templates/vertimus/vertimus_detail.html
@@ -122,7 +122,10 @@ $(document).ready(function() {
   {% for action,files in action_history %}
   <div class="vertimus_action">
     <div class="vertimus_action_head">
-      <a name="{{ action.id }}"></a><img src="{{ MEDIA_URL }}img/nobody-16.png" alt="Person"/>
+      <a name="{{ action.id }}"></a>
+      {% if action.person.image %}<img src="{{ action.person.image }}" alt="face" height="18"/>
+      {% else %}<img src="{{ MEDIA_URL }}img/nobody-16.png" alt="Person"/>
+      {% endif %}
       <a href="{{ action.person.get_absolute_url }}">{{ action.person.name }}</a>
       , <strong>{{ action }}</strong>, {{ action.created|date:_("Y-m-d g:i a O") }}
     </div>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]