Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F4045066
index.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
Sat, Jul 18, 8:20 AM
Size
1017 B
Mime Type
text/html
Expires
Mon, Jul 20, 8:20 AM (3 m, 55 s)
Engine
blob
Format
Raw Data
Handle
417057
Attached To
rWEBDNS WebDNS (edet4)
index.html.erb
View Options
<table class="table table-striped">
<thead>
</thead>
<tbody>
<%
@domains
.
group_by
(
&
:group
)
.
each
do
|
group
,
domains
|
%>
<tr>
<th colspan="2">
<%=
link_to
group
.
name
,
group_path
(
group
)
%>
</th>
<th colspan="2">Controls</th>
</tr>
<%
domains
.
each
do
|
domain
|
%>
<tr>
<td>
<%=
link_to
domain
.
name
,
domain
%>
</td>
<td>
<%
if
domain
.
reverse?
%>
<abbr title="Reverse"><span class="glyphicon glyphicon-chevron-left"></span></abbr>
<%
else
%>
<abbr title="Forward"><span class="glyphicon glyphicon-chevron-right"></span></abbr>
<%
end
%>
</td>
<td>
<%=
link_to_edit
edit_domain_path
(
domain
)
%>
</td>
<td>
<%=
link_to_destroy
domain
,
method
:
:delete
,
data
:
{
confirm
:
'Are you sure?'
}
%>
</td>
</tr>
<%
end
%>
<%
end
%>
</tbody>
</table>
<p>
<%=
link_to
'New Domain »'
.
html_safe
,
new_domain_path
,
class
:
'btn btn-lg btn-primary'
%>
</p>
Event Timeline
Log In to Comment