web/views/baseviews.py
branchstable
changeset 7290 f2051e08cbff
parent 6883 1538542a88ed
child 7310 5c8cf002919d
--- a/web/views/baseviews.py	Fri Apr 29 12:07:59 2011 +0200
+++ b/web/views/baseviews.py	Fri Apr 29 12:12:14 2011 +0200
@@ -201,8 +201,15 @@
             self.w(u'<span class="value">%s</span>'
                    % self._cw.format_date(entity.creation_date))
         if entity.creator:
-            self.w(u' <span>%s</span> ' % _('by'))
+            if entity.creation_date:
+                self.w(u' <span>%s</span> ' % _('by'))
+            else:
+                self.w(u' <span>%s</span> ' % _('created by'))
             self.w(u'<span class="value">%s</span>' % entity.creator.name())
+        meta = entity.cw_metainformation()
+        if meta['source']['uri'] != 'system':
+            self.w(u' (<span>%s</span>' % _('from source'))
+            self.w(u' <span class="value">%s</span>)' % meta['source']['uri'])
         self.w(u'</div>')