Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1433339
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
Mon, Jan 19, 6:42 AM
Size
996 B
Mime Type
text/html
Expires
Wed, Jan 21, 6:42 AM (1 d, 10 h)
Engine
blob
Format
Raw Data
Handle
327075
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">
<%=
group
.
name
%>
</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