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