minor edits
This commit is contained in:
@@ -6,6 +6,8 @@ class UsersController < ApplicationController
|
|||||||
|
|
||||||
before_filter :set_user, except: [:index, :new, :create, :lost_password, :reset_password, :suggestions]
|
before_filter :set_user, except: [:index, :new, :create, :lost_password, :reset_password, :suggestions]
|
||||||
|
|
||||||
|
caches_action :show, expires_in: 10.seconds, layout: false
|
||||||
|
|
||||||
def index
|
def index
|
||||||
if params[:role]
|
if params[:role]
|
||||||
if params[:role].downcase == "staff"
|
if params[:role].downcase == "staff"
|
||||||
|
|||||||
@@ -16,9 +16,10 @@
|
|||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<% if @ban_json %>
|
<% if @ban_json %>
|
||||||
<span class="user-banned">This user is banned for "<%=@ban_json["reason"]%>"<%=" until #{@ban_json["expires"]}" unless @ban_json["expires"] == "forever"%></span>
|
<span class="user-banned">This user is banned on the server for "<%=@ban_json["reason"]%>"<%=" until #{@ban_json["expires"]}" unless @ban_json["expires"] == "forever"%></span>
|
||||||
<% elsif @user.banned? %>
|
<% end %>
|
||||||
<span class="user-banned">This user is banned!</span>
|
<% if @user.banned? %>
|
||||||
|
<span class="user-banned">This user is banned on the website!</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<br>
|
<br>
|
||||||
<% if !@user.confirmed? %>
|
<% if !@user.confirmed? %>
|
||||||
|
|||||||
Reference in New Issue
Block a user