system-info: improve formatting of snapshot info page.

This commit is contained in:
Marcin Kuzminski 2016-11-15 00:35:08 +01:00
parent 078d9996e4
commit 83ff493336
2 changed files with 2 additions and 2 deletions

View file

@ -630,6 +630,7 @@ class SettingsController(BaseController):
if snapshot:
if c.allowed_to_snapshot:
c.data_items.pop(0) # remove server info
return render('admin/settings/settings_system_snapshot.html')
else:
h.flash('You are not allowed to do this', category='warning')

View file

@ -4,8 +4,7 @@ SYSTEM INFO
-----------
% for dt, dd, warn in c.data_items:
${dt}${':' if dt else '---'}
${dd}
${dt.lower().replace(' ', '_')}${': '+dd if dt else '---'}
% if warn and warn['message']:
ALERT_${warn['type'].upper()} ${warn['message']}
% endif