##// END OF EJS Templates
system-info: improve formatting of snapshot info page.
marcink -
r1114:4074d5a1 default
parent child Browse files
Show More
@@ -630,6 +630,7 b' class SettingsController(BaseController)'
630
630
631 if snapshot:
631 if snapshot:
632 if c.allowed_to_snapshot:
632 if c.allowed_to_snapshot:
633 c.data_items.pop(0) # remove server info
633 return render('admin/settings/settings_system_snapshot.html')
634 return render('admin/settings/settings_system_snapshot.html')
634 else:
635 else:
635 h.flash('You are not allowed to do this', category='warning')
636 h.flash('You are not allowed to do this', category='warning')
@@ -4,8 +4,7 b' SYSTEM INFO'
4 -----------
4 -----------
5
5
6 % for dt, dd, warn in c.data_items:
6 % for dt, dd, warn in c.data_items:
7 ${dt}${':' if dt else '---'}
7 ${dt.lower().replace(' ', '_')}${': '+dd if dt else '---'}
8 ${dd}
9 % if warn and warn['message']:
8 % if warn and warn['message']:
10 ALERT_${warn['type'].upper()} ${warn['message']}
9 ALERT_${warn['type'].upper()} ${warn['message']}
11 % endif
10 % endif
General Comments 0
You need to be logged in to leave comments. Login now