equal
deleted
inserted
replaced
172 def cell_call(self, row, col): |
172 def cell_call(self, row, col): |
173 _ = self._cw._ |
173 _ = self._cw._ |
174 entity = self.cw_rset.get_entity(row, col) |
174 entity = self.cw_rset.get_entity(row, col) |
175 self.w(u'<div class="metadata">') |
175 self.w(u'<div class="metadata">') |
176 if self.show_eid: |
176 if self.show_eid: |
177 self.w(u'#%s - ' % entity.eid) |
177 self.w(u'%s #%s - ' % (entity.dc_type(), entity.eid)) |
178 if entity.modification_date != entity.creation_date: |
178 if entity.modification_date != entity.creation_date: |
179 self.w(u'<span>%s</span> ' % _('latest update on')) |
179 self.w(u'<span>%s</span> ' % _('latest update on')) |
180 self.w(u'<span class="value">%s</span>, ' |
180 self.w(u'<span class="value">%s</span>, ' |
181 % self._cw.format_date(entity.modification_date)) |
181 % self._cw.format_date(entity.modification_date)) |
182 # entities from external source may not have a creation date (eg ldap) |
182 # entities from external source may not have a creation date (eg ldap) |