Noosfero/noosfero

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

Summary

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

<main role="main">
  <table class="table table-striped">
    <thead>
    <tr>
      <th><%= _('Application') %></th>
      <th><%= _('Created at') %></th>
      <th></th>
      <th></th>
    </tr>
    </thead>
    <tbody>
    <% @applications.each do |application| %>
      <tr>
        <td><%= application.name %></td>
        <td><%= application.created_at.strftime('%Y-%m-%d %H:%M:%S') %></td>
        <td><%= render 'delete_form', application: application %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
</main>
<div class="actions">
  <%= button(:back, _('Go back'), :back) %>
</div>
</div>