##// END OF EJS Templates
exceptions-store: show number of exceptions.
marcink -
r2910:a9c53180 default
parent child Browse files
Show More
@@ -1,52 +1,56 b''
1 <div class="panel panel-default">
1 <div class="panel panel-default">
2 <div class="panel-heading">
2 <div class="panel-heading">
3 <h3 class="panel-title">${_('Exceptions Tracker ')}</h3>
3 <h3 class="panel-title">${_('Exceptions Tracker ')}</h3>
4 </div>
4 </div>
5 <div class="panel-body">
5 <div class="panel-body">
6 % if c.exception_list_count == 1:
6 % if c.exception_list_count == 1:
7 ${_('There is {} stored exception.').format(c.exception_list_count)}
7 ${_('There is {} stored exception.').format(c.exception_list_count)}
8 % else:
8 % else:
9 ${_('There are {} stored exceptions.').format(c.exception_list_count)}
9 ${_('There are {} stored exceptions.').format(c.exception_list_count)}
10 % endif
10 % endif
11 ${_('Store directory')}: ${c.exception_store_dir}
11 ${_('Store directory')}: ${c.exception_store_dir}
12
12
13 ${h.secure_form(h.route_path('admin_settings_exception_tracker_delete_all'), request=request)}
13 ${h.secure_form(h.route_path('admin_settings_exception_tracker_delete_all'), request=request)}
14 <div style="margin: 0 0 20px 0" class="fake-space"></div>
14 <div style="margin: 0 0 20px 0" class="fake-space"></div>
15
15
16 <div class="field">
16 <div class="field">
17 <button class="btn btn-small btn-danger" type="submit"
17 <button class="btn btn-small btn-danger" type="submit"
18 onclick="return confirm('${_('Confirm to delete all exceptions')}');">
18 onclick="return confirm('${_('Confirm to delete all exceptions')}');">
19 <i class="icon-remove-sign"></i>
19 <i class="icon-remove-sign"></i>
20 ${_('Delete All')}
20 ${_('Delete All')}
21 </button>
21 </button>
22 </div>
22 </div>
23
23
24 ${h.end_form()}
24 ${h.end_form()}
25
25
26 </div>
26 </div>
27 </div>
27 </div>
28
28
29
29
30 <div class="panel panel-default">
30 <div class="panel panel-default">
31 <div class="panel-heading">
31 <div class="panel-heading">
32 <h3 class="panel-title">${_('Exceptions Tracker - Showing the last {} Exceptions').format(c.limit)}</h3>
32 <h3 class="panel-title">${_('Exceptions Tracker - Showing the last {} Exceptions').format(c.limit)}</h3>
33 </div>
33 </div>
34 <div class="panel-body">
34 <div class="panel-body">
35 <table class="rctable">
35 <table class="rctable">
36 <tr>
36 <tr>
37 <th>#</th>
37 <th>Exception ID</th>
38 <th>Exception ID</th>
38 <th>Date</th>
39 <th>Date</th>
39 <th>App Type</th>
40 <th>App Type</th>
40 <th>Exc Type</th>
41 <th>Exc Type</th>
41 </tr>
42 </tr>
43 <% cnt = len(c.exception_list)%>
42 % for tb in c.exception_list:
44 % for tb in c.exception_list:
43 <tr>
45 <tr>
46 <td>${cnt}</td>
44 <td><a href="${h.route_path('admin_settings_exception_tracker_show', exception_id=tb['exc_id'])}"><code>${tb['exc_id']}</code></a></td>
47 <td><a href="${h.route_path('admin_settings_exception_tracker_show', exception_id=tb['exc_id'])}"><code>${tb['exc_id']}</code></a></td>
45 <td>${h.format_date(tb['exc_utc_date'])}</td>
48 <td>${h.format_date(tb['exc_utc_date'])}</td>
46 <td>${tb['app_type']}</td>
49 <td>${tb['app_type']}</td>
47 <td>${tb['exc_type']}</td>
50 <td>${tb['exc_type']}</td>
48 </tr>
51 </tr>
52 <% cnt -=1 %>
49 % endfor
53 % endfor
50 </table>
54 </table>
51 </div>
55 </div>
52 </div>
56 </div>
General Comments 0
You need to be logged in to leave comments. Login now