Archived
Removed hostnames from user profiles.
This commit is contained in:
@@ -22,12 +22,6 @@ class UsersController < ApplicationController
|
|||||||
flash.now[:alert] = "An error occured while checking if this user is banned from the server!"
|
flash.now[:alert] = "An error occured while checking if this user is banned from the server!"
|
||||||
@ban_json = nil
|
@ban_json = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
|
||||||
@hostname = Resolv.new.getname(@user.last_ip)
|
|
||||||
rescue
|
|
||||||
@hostname = "No hostname found."
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# SIGNUP
|
# SIGNUP
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<% if mod? || @user.is?(current_user) %>
|
<% if mod? || @user.is?(current_user) %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>Last IP</b></td>
|
<td><b>Last IP</b></td>
|
||||||
<td><%= @user.last_ip %> (<%= @hostname %>)</td>
|
<td><%= @user.last_ip %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>Email</b></td>
|
<td><b>Email</b></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user