From faea52a9a463350ba799bedccdff34ce8932dd5d Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Thu, 6 Aug 2020 12:08:18 +0100
Subject: [PATCH] Staff button

---
 app/views/users/mod.html.erb | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/app/views/users/mod.html.erb b/app/views/users/mod.html.erb
index 8d4c31f40..94b5d8ab3 100644
--- a/app/views/users/mod.html.erb
+++ b/app/views/users/mod.html.erb
@@ -47,7 +47,18 @@
         <button class="button is-muted is-filled" disabled>This user is a Global Admin</button>
       <% else %>
         <button class="button is-outlined js-role-grant-btn" data-toggle="admin-global" data-user="<%= @user.id %>">Grant Gobal Admin</button>
-      <% end %>   
+      <% end %>
+
+      <p>
+        You can also add "staff" status. This status grants no abilities, but marks the user's profile with a "staff" indicator
+        to help others identify who's who.
+      </p>
+
+      <% if @user.is_global_moderator %>
+        <button class="button is-filled js-role-grant-btn" data-toggle="staff" data-user="<%= @user.id %>">Revoke Staff</button>
+      <% else %>
+        <button class="button is-outlined js-role-grant-btn" data-toggle="staff" data-user="<%= @user.id %>">Grant Staff</button>
+      <% end %>
     <% end %>
   </div>
 </div>
-- 
GitLab