Show More
@@ -28,7 +28,7 b' from rhodecode.apps.admin.navigation imp' | |||
|
28 | 28 | from rhodecode.lib import helpers as h |
|
29 | 29 | from rhodecode.lib.auth import ( |
|
30 | 30 | LoginRequired, HasPermissionAllDecorator, CSRFRequired) |
|
31 | from rhodecode.lib.utils2 import time_to_utcdatetime | |
|
31 | from rhodecode.lib.utils2 import time_to_utcdatetime, safe_int | |
|
32 | 32 | from rhodecode.lib import exc_tracking |
|
33 | 33 | |
|
34 | 34 | log = logging.getLogger(__name__) |
@@ -96,7 +96,8 b' class ExceptionsTrackerView(BaseAppView)' | |||
|
96 | 96 | _ = self.request.translate |
|
97 | 97 | c = self.load_default_context() |
|
98 | 98 | c.active = 'exceptions_browse' |
|
99 |
c.limit = self.request.GET.get('limit' |
|
|
99 | c.limit = safe_int(self.request.GET.get('limit')) or 50 | |
|
100 | c.next_limit = c.limit + 50 | |
|
100 | 101 | c.exception_list = self.get_all_exceptions(read_metadata=True, limit=c.limit) |
|
101 | 102 | c.exception_list_count = self.count_all_exceptions() |
|
102 | 103 | c.exception_store_dir = exc_tracking.get_exc_store() |
@@ -29,7 +29,8 b'' | |||
|
29 | 29 | |
|
30 | 30 | <div class="panel panel-default"> |
|
31 | 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 | <a class="panel-edit" href="${h.current_route_path(request, limit=c.next_limit)}">${_('Show more')}</a> | |
|
33 | 34 | </div> |
|
34 | 35 | <div class="panel-body"> |
|
35 | 36 | <table class="rctable"> |
General Comments 0
You need to be logged in to leave comments.
Login now