system-info: improve formatting of snapshot info page.
This commit is contained in:
parent
078d9996e4
commit
83ff493336
2 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue