From 170fba42dbceeed52a7335fedb4696fa978e9cbe Mon Sep 17 00:00:00 2001 From: MrYummy Date: Sun, 2 Jul 2017 21:21:19 -0400 Subject: Added "All staff" as title when doing user filter --- app/views/users/index.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 05e9249..74f65e5 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -12,6 +12,8 @@ text = "All '#{params[:badge]}' users" elsif params[:role] && params[:badge] text = "All '#{params[:role]}' and '#{params[:badge]}' users" + elsif params.include?(:staff) + text = "All staff" else text = "All users" end -- cgit v1.2.3