Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F448992
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
Thu, Apr 24, 12:56 PM
Size
2 KB
Mime Type
text/html
Expires
Sat, Apr 26, 12:56 PM (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
214792
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 data-toggle="tab" href="#domains">Domains</a></li>
<li role="presentation"><a data-toggle="tab" href="#members">Members</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="domains">
<table class="table table-striped table-hover">
<thead>
<tr>
<th colspan="2">Domain</th>
<th>State</th>
<th colspan="2">Controls</th>
</tr>
</thead>
<tbody>
<%
@group
.
domains
.
each
do
|
domain
|
%>
<tr>
<td>
<%
if
domain
.
reverse?
%>
<%=
abbr_glyph
(
'chevron-left'
,
'Reverse'
)
%>
<%
elsif
domain
.
enum?
%>
<%=
abbr_glyph
(
'phone-alt'
,
'Enum'
)
%>
<%
else
%>
<%=
abbr_glyph
(
'chevron-right'
,
'Forward'
)
%>
<%
end
%>
<%
if
domain
.
slave?
%>
<%=
abbr_glyph
(
'link'
,
'Slave'
)
%>
<%
end
%>
<%
if
domain
.
dnssec?
%>
<%=
abbr_glyph
(
'flash'
,
'DNSSEC'
)
%>
<%
end
%>
</td>
<td>
<%=
link_to
domain
.
name
,
domain
%>
</td>
<td>
<%=
human_state
(
domain
.
state
)
%>
</td>
<td>
<%=
link_to_edit
edit_domain_path
(
domain
)
%>
</td>
<td>
<%=
link_to_destroy
domain
,
method
:
:delete
,
data
:
{
confirm
:
'Are you sure?'
}
if
domain
.
can_remove?
%>
</td>
</tr>
<%
end
%>
</tbody>
</table>
<p>
<%=
link_to
'Add Domain'
,
new_domain_path
(
group_id
:
@group
.
id
),
class
:
'btn btn-primary'
%>
</p>
</div>
<div role="tabpanel" class="tab-pane" id="members">
<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