Skip to content
Snippets Groups Projects
Commit faea52a9 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Staff button

parent 20c36ed2
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,17 @@ ...@@ -48,6 +48,17 @@
<% else %> <% else %>
<button class="button is-outlined js-role-grant-btn" data-toggle="admin-global" data-user="<%= @user.id %>">Grant Gobal Admin</button> <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 %> <% end %>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment