damned-lies r1111 - in branches/djamnedlies: . stats templates



Author: claudep
Date: Mon Oct 27 10:46:08 2008
New Revision: 1111
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1111&view=rev

Log:
2008-10-27  Claude Paroz  <claude 2xlibre net>

	* stats/models.py: Language has no 'Language' field, but 'language'.
	* templates/module.html: Use person_base to display maintainers.

Modified:
   branches/djamnedlies/ChangeLog
   branches/djamnedlies/stats/models.py
   branches/djamnedlies/templates/module.html

Modified: branches/djamnedlies/stats/models.py
==============================================================================
--- branches/djamnedlies/stats/models.py	(original)
+++ branches/djamnedlies/stats/models.py	Mon Oct 27 10:46:08 2008
@@ -806,8 +806,8 @@
         return "%d%%&nbsp;(%d/%d/%d)" % (self.tr_percentage(), self.translated, self.fuzzy, self.untranslated)
     
     def filename(self):
-        if self.Language:
-            return "%s.%s.%s.po" % (self.domain.potbase(), self.branch.name, self.Language)
+        if self.language:
+            return "%s.%s.%s.po" % (self.domain.potbase(), self.branch.name, self.language.locale)
         else:
             return "%s.%s.pot" % (self.domain.potbase(), self.branch.name)
             

Modified: branches/djamnedlies/templates/module.html
==============================================================================
--- branches/djamnedlies/templates/module.html	(original)
+++ branches/djamnedlies/templates/module.html	Mon Oct 27 10:46:08 2008
@@ -24,15 +24,10 @@
 
 {% if module.maintainers.all %}
   <h2>{% trans "Maintainers" %}</h2>
-  {% for maintainer in module.maintainers.all %}
-    <div class="maintainer">
-    {% if maintainer.image %}
-      <img class="people" src="{{ maintainer.image }}" alt="" />
-    {% else %}
-      <img class="people" src="/media/img/nobody.png" alt="" />
-    {% endif %}
-    <a style="font-size: 140%;" href="{{ maintainer.get_absolute_url }}">{{ maintainer.name }}</a>
-    </div>
+  {% for person in module.maintainers.all %}
+    {% with 0 as printroles %}
+    {% include "person_base.html" %}
+    {% endwith %}
   {% endfor %}
 {% endif %}
 



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