equal
deleted
inserted
replaced
95 # repository information |
95 # repository information |
96 repo = req.vreg.config.repository(None) |
96 repo = req.vreg.config.repository(None) |
97 w(u'<h2>%s</h2>' % _('Repository')) |
97 w(u'<h2>%s</h2>' % _('Repository')) |
98 w(u'<h3>%s</h3>' % _('resources usage')) |
98 w(u'<h3>%s</h3>' % _('resources usage')) |
99 w(u'<table>') |
99 w(u'<table>') |
100 stats = repo.stats() |
100 stats = self._cw.call_service('repo_stats') |
101 for element in sorted(stats): |
101 for element in sorted(stats): |
102 w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>' |
102 w(u'<tr><th align="left">%s</th><td>%s %s</td></tr>' |
103 % (element, xml_escape(unicode(stats[element])), |
103 % (element, xml_escape(unicode(stats[element])), |
104 element.endswith('percent') and '%' or '' )) |
104 element.endswith('percent') and '%' or '' )) |
105 w(u'</table>') |
105 w(u'</table>') |