summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2018-12-11 15:29:52 +0100
committerSimon Knox <psimyn@gmail.com>2018-12-11 15:29:52 +0100
commit98c8f6b246c63cf7b1a7c7ca7e1683de92eab723 (patch)
tree3340d7cad30a3ef9b1fa3efc1ad6732d8f7cbbe2
parentdbde6aa89192fac42995032d304ca93927695f59 (diff)
downloadgitlab-ce-add-error-tracking-list-view.tar.gz
Fix empty/no results filenames [ci-skip]add-error-tracking-list-view
-rw-r--r--app/views/projects/error_tracking/trackings/_errors.html.haml2
-rw-r--r--app/views/projects/error_tracking/trackings/_no_results.html.haml1
-rw-r--r--app/views/projects/error_tracking/trackings/index.html.haml5
3 files changed, 6 insertions, 2 deletions
diff --git a/app/views/projects/error_tracking/trackings/_errors.html.haml b/app/views/projects/error_tracking/trackings/_errors.html.haml
index 574e38a4d7d..ed196ac31c7 100644
--- a/app/views/projects/error_tracking/trackings/_errors.html.haml
+++ b/app/views/projects/error_tracking/trackings/_errors.html.haml
@@ -2,7 +2,7 @@
%ul.content-list.issues-list.issuable-list
= render partial: "projects/error_tracking/trackings/error", collection: @errors
- if @errors.blank?
- = render "empty"
+ = render "no_results"
- if @errors.present?
= paginate @errors, theme: "gitlab", total_pages: @total_pages
diff --git a/app/views/projects/error_tracking/trackings/_no_results.html.haml b/app/views/projects/error_tracking/trackings/_no_results.html.haml
index e69de29bb2d..5a9eba7fbce 100644
--- a/app/views/projects/error_tracking/trackings/_no_results.html.haml
+++ b/app/views/projects/error_tracking/trackings/_no_results.html.haml
@@ -0,0 +1 @@
+No errors :(
diff --git a/app/views/projects/error_tracking/trackings/index.html.haml b/app/views/projects/error_tracking/trackings/index.html.haml
index 46ccf283425..da7a3899885 100644
--- a/app/views/projects/error_tracking/trackings/index.html.haml
+++ b/app/views/projects/error_tracking/trackings/index.html.haml
@@ -1,4 +1,7 @@
- breadcrumb_title _('Error Tracking')
- page_title _('Error Tracking')
-= render "errors"
+- if true # todo: feature check
+ = render "errors"
+- else
+ = render "empty"