Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1300566
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
Wed, Nov 19, 2:22 PM
Size
3 KB
Mime Type
text/html
Expires
Fri, Nov 21, 2:22 PM (51 m, 51 s)
Engine
blob
Format
Raw Data
Handle
293413
Attached To
rWEBDNS WebDNS (edet4)
show.html.erb
View Options
<%
content_for
:more_breadcrumbs
do
%>
<li>
<%=
link_to_edit
edit_admin_group_path
(
@group
)
%>
<%=
link_to_destroy
admin_group_path
(
@group
),
method
:
:delete
,
data
:
{
confirm
:
'Are you sure?'
}
%>
</li>
<%
end
if
admin?
%>
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a id="tab-link-domains" data-toggle="tab" href="#domains_tab">Domains</a></li>
<li role="presentation"><a id="tab-link-members" data-toggle="tab" href="#members_tab">Members</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="domains_tab">
<table id="domains" class="table table-striped">
<thead>
<tr>
<th>Domain</th>
<th>Serial</th>
<th>Group</th>
<th>State</th>
<th>Slave</th>
<th>DNSSEC</th>
<th class="no-order-and-search">Controls</th>
</tr>
</thead>
<tbody>
<%
@domains
.
group_by
(
&
:group
)
.
each
do
|
group
,
domains
|
%>
<%
domains
.
each
do
|
domain
|
%>
<tr class="group-
<%=
group
.
id
=
%>
">
<td>
<%=
link_to
domain
.
name
,
domain
%>
</td>
<td>
<%=
domain
.
serial
%>
</td>
<td>
<%=
link_to
group
.
name
,
group_path
(
group
)
%>
</td>
<td>
<%=
human_state
(
domain
.
state
)
%>
</td>
<td>
<%=
domain
.
slave?
?
domain
.
master
:
'-'
%>
</td>
<td>
<%=
domain
.
dnssec?
?
'secure'
:
'-'
%>
</td>
<td>
<%=
link_to_edit
edit_domain_path
(
domain
)
%>
<%
if
@optouts
.
include?
domain
.
id
%>
<%=
link_to_unmute
user_domain_unmute_path
(
current_user
,
domain
),
method
:
:put
%>
<%
else
%>
<%=
link_to_mute
user_domain_mute_path
(
current_user
,
domain
),
method
:
:put
%>
<%
end
%>
<%=
link_to_destroy
domain
,
method
:
:delete
,
data
:
{
confirm
:
'Are you sure?'
}
if
domain
.
can_remove?
%>
<%=
link_to_full_destroy
full_destroy_domain_path
(
domain
),
method
:
:delete
,
data
:
{
confirm
:
'Are you sure?'
}
if
domain
.
can_remove?
&&
domain
.
dnssec?
%>
</td>
</tr>
<%
end
%>
<%
end
%>
</tbody>
</table>
<p>
<%
if
current_user
.
memberships
.
any?
%>
<%=
link_to
'Add Domain'
,
new_domain_path
(
group_id
:
@group
.
id
),
class
:
'btn btn-primary'
%>
<%
else
%>
<%=
link_to
'Add Domain'
,
new_domain_path
(
group_id
:
@group
.
id
),
class
:
'btn btn-primary disabled'
%>
<%
end
%>
</p>
</div>
<div role="tabpanel" class="tab-pane" id="members_tab">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Member</th>
<th>Controls</th>
</tr>
</thead>
<tbody>
<%
@group
.
memberships
.
includes
(
:user
)
.
each
do
|
membership
|
%>
<tr>
<td>
<%=
membership
.
user
.
email
%><%=
" (you)"
if
current_user
==
membership
.
user
%>
</td>
<td>
<%=
link_to_destroy
destroy_member_group_path
(
@group
,
membership
.
user_id
),
method
:
:delete
%>
</td>
</tr>
<%
end
%>
</tbody>
</table>
<p>
<%=
bootstrap_form_tag
(
url
:
create_member_group_path
(
@group
),
layout
:
:inline
)
do
|
f
|
%>
<%=
f
.
text_field
:email
,
prepend
:
'Add Member'
,
hide_label
:
true
,
id
:
'js-search-member'
,
data
:
{
group
:
@group
.
id
}
%>
<%=
f
.
submit
'Add'
,
class
:
'btn btn-primary'
%>
<%
end
%>
</p>
</div>
</div>
Event Timeline
Log In to Comment