Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462757
show.html.erb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 11:52 PM
Size
2 KB
Mime Type
text/html
Expires
Tue, May 20, 11:52 PM (3 h, 26 m)
Engine
blob
Format
Raw Data
Handle
220677
Attached To
rARCHIVING archiving
show.html.erb
View Options
<%=
render
partial
:
'header'
%>
<div class="col-xs-5">
<div class="panel panel-default">
<div class="panel-heading">
<h2>User details</h2>
</div>
<br/>
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<tr>
<td><b>Username</b></td>
<td>
<%=
@user
.
username
%>
</td>
</tr>
<tr>
<td><b>Email</b></td>
<td>
<%=
@user
.
email
%>
</td>
</tr>
<tr>
<td><b>User Type</b></td>
<td>
<%=
@user
.
user_type
%>
</td>
</tr>
<tr>
<td><b>Created At</b></td>
<td>
<%=
I18n
.
l
(
@user
.
created_at
,
format
:
:short
)
rescue
'-'
%>
</td>
</tr>
<tr>
<td><b>Login At</b></td>
<td>
<%=
I18n
.
l
(
@user
.
login_at
,
format
:
:short
)
rescue
'-'
%>
</td>
</tr>
<tr>
<td><b>Clients</b></td>
<td>
<%=
inline_list
@user
.
baculized_hosts
%>
</td>
</tr>
<tr>
<td><b>Pending Clients</b></td>
<td>
<%=
inline_list
@user
.
non_baculized_hosts
%>
</td>
</tr>
<%
if
@user
.
institutional?
%>
<tr>
<td><b>Unverified Clients</b></td>
<td>
<%=
inline_list
@user
.
unverified_hosts
%>
</td>
</tr>
<%
end
%>
</table>
</div>
</div>
<%
if
@user
.
editable?
%>
<%=
link_to
edit_admin_user_path
(
@user
),
class
:
'btn btn-primary'
do
%>
<label class="glyphicon glyphicon-ok-edit text-success"></label>
Edit User
<%
end
%>
<%
end
%>
<%
if
@user
.
enabled?
%>
<%=
link_to
ban_admin_user_path
(
@user
),
method
:
:patch
,
class
:
'btn btn-default'
,
data
:
{
confirm
:
"User
#{
@user
.
username
}
will be banned"
}
do
%>
<label class="glyphicon glyphicon-ban-circle text-danger"></label>
Ban User
<%
end
%>
<%
else
%>
<%=
link_to
unban_admin_user_path
(
@user
),
method
:
:patch
,
class
:
'btn btn-default'
,
data
:
{
confirm
:
"User
#{
@user
.
username
}
will be unbanned"
}
do
%>
<label class="glyphicon glyphicon-ok-circle text-success"></label>
Unban User
<%
end
%>
<%
end
%>
<%
if
!
@user
.
admin?
%>
<%
if
@user
.
has_admin_access?
%>
<%=
link_to
revoke_admin_admin_user_path
(
@user
),
method
:
:patch
,
class
:
'btn btn-default'
,
data
:
{
confirm
:
"User
#{
@user
.
username
}
will NOT be an admin from now on"
}
do
%>
<label class="glyphicon glyphicon-ban-circle text-danger"></label>
Revoke Admin
<%
end
%>
<%
else
%>
<%=
link_to
grant_admin_admin_user_path
(
@user
),
method
:
:patch
,
class
:
'btn btn-default'
,
data
:
{
confirm
:
"User
#{
@user
.
username
}
will be an admin from now on"
}
do
%>
<label class="glyphicon glyphicon-ok-circle text-success"></label>
Grant Admin
<%
end
%>
<%
end
%>
<%
end
%>
<%=
link_to
'Back to users'
,
admin_users_path
,
class
:
'right'
%>
</div>
Event Timeline
Log In to Comment