Noosfero/noosfero

View on GitHub
plugins/custom_routes/views/custom_routes_plugin_admin/index.html.erb

Summary

Maintainability
Test Coverage
<h1><%= _('Custom Routes Plugin Settings') %></h1>
<h3><%= _('Custom Route Mappings') %></h3>

<div id="custom-routes">
  <table>
    <thead>
      <tr>
        <th>From URL</th>
        <th>To URL</th>
        <th>Actions</th>
      </tr>
    </thead>
    <tbody>
      <%= render partial: 'route_entry', collection: @routes, as: :route %>
    </tbody>
  </table>

  <%= button_bar do %>
    <%= button(:back, _('Go back'), { :controller => 'plugins', :action => 'index' }) %>
    <%= button(:add, _('New mapping'), { :action => 'new' }) %>
  <% end %>
</div>