Commit 2184e70c authored by mh's avatar mh
Browse files

add edit button if without an id key

parent 4213b1ba
......@@ -17,13 +17,11 @@
<tbody>
<% @domains.each do |domain| -%>
<tr>
<td><%= link_to((t :edit),
"#{domains_path}/#{URI::escape(domain['domain'])}") %>
</td>
<% domain.each do |key, val| -%>
<td>
<%= if key == 'id' then
link_to((t :edit),
"#{domains_path}/#{URI::escape(domain['domain'])}")
else val end %>
</td>
<td><%= val %>
<% end -%>
</tr>
<%- end %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment