app/views/trusted_sites/index.html.erb
<h1><%= _('Manage trusted sites') %></h1>
<p>
<%= _('Here you can manage the list of trusted sites of your environment. ' +
'A trusted site is a site that you consider safe enough to incorporate ' +
'their content through <em>iframes</em>.').html_safe %>
</p>
<table>
<tr>
<th><%= _('Site') %></th>
<th><%= _('Actions') %></th>
</tr>
<% @sites.each do |site| %>
<tr>
<td>
<%= link_to site, :action => 'show', :site => site %>
</td>
<td class='actions'>
<%= button_without_text :edit, _('Edit'), :action => 'edit', :site => site %>
<%= button_without_text :trash, _('Remove'), {action: :destroy, site: site},
method: :delete, data: {confirm: _('Are you sure you want to remove ' +
'this site from the list of trusted sites?')} %>
</td>
</tr>
<% end %>
</table>
<%= button_bar do %>
<%= button :add, _('Add a trusted site'), :action => 'new' %>
<%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %>
<% end %>