Noosfero/noosfero

View on GitHub
plugins/oauth_provider/views/doorkeeper/applications/index.html.erb

Summary

Maintainability
Test Coverage
<div class="oauth-provider">
<div class="page-header">
  <h1><%= _('Oauh Provider') %></h1>
</div>

<p><%= link_to _('New Application'), new_oauth_application_path, class: 'btn btn-success' %></p>

<table class="table table-striped">
  <thead>
  <tr>
    <th><%= _('Name') %></th>
    <th><%= _('Callback URL') %></th>
    <th></th>
    <th></th>
  </tr>
  </thead>
  <tbody>
  <% @applications.each do |application| %>
    <tr id="application_<%= application.id %>">
      <td><%= link_to application.name, oauth_application_path(application) %></td>
      <td><%= application.redirect_uri %></td>
      <td><%= link_to _('Edit'), edit_oauth_application_path(application), class: 'btn btn-link' %></td>
      <td><%= render 'delete_form', application: application %></td>
    </tr>
  <% end %>
  </tbody>
</table>
<div class="actions">
  <%= button(:back, _('Go back'), {:controller => 'oauth_provider_plugin_admin', :action => 'index'}) %>
</div>
</div>