##// END OF EJS Templates
fix ordering of system packages info
marcink -
r2223:528f987f beta
parent child Browse files
Show More
@@ -67,7 +67,8 b' class SettingsController(BaseController)'
67 c.admin_user = session.get('admin_user')
67 c.admin_user = session.get('admin_user')
68 c.admin_username = session.get('admin_username')
68 c.admin_username = session.get('admin_username')
69 c.modules = sorted([(p.project_name, p.version)
69 c.modules = sorted([(p.project_name, p.version)
70 for p in pkg_resources.working_set])
70 for p in pkg_resources.working_set],
71 key=lambda k: k[0].lower())
71 c.py_version = platform.python_version()
72 c.py_version = platform.python_version()
72 c.platform = platform.platform()
73 c.platform = platform.platform()
73 super(SettingsController, self).__before__()
74 super(SettingsController, self).__before__()
@@ -226,7 +226,7 b''
226 <tbody>
226 <tbody>
227 %for key, value in c.modules:
227 %for key, value in c.modules:
228 <tr>
228 <tr>
229 <th>${key}</th>
229 <th style="text-align: right;padding-right:5px;">${key}</th>
230 <td>${value}</td>
230 <td>${value}</td>
231 </tr>
231 </tr>
232 %endfor
232 %endfor
General Comments 0
You need to be logged in to leave comments. Login now