Sha256: 9355ea948c5e2dd66697af006e6d012d5c1690925d056fdbdbec167fe35e76b7
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
<h2>Show Clients</h2> <div class="header_buttons"> <%= link_to 'Create a new client', oauth2_provider_engine.new_oauth2_provider_client_path, class: "button icon add" %> </div> <table> <tr> <% if current_user.admin? %> <th>User</th> <% end %> <th>Name</th> <th>Active</th> <th></th> <th></th> <th></th> <th></th> </tr> <% @clients.each do |client| %> <tr> <% if current_user.admin? %> <td><%= link_to User, client.created_from %></td> <% end %> <td><%= client.name %></td> <% unless current_user.admin? %> <td><%= client.blocked? ? "Not Active" : "Active" %></td> <% end %> <td><%= link_to 'Show', oauth2_provider_engine.oauth2_provider_client_path(client), class: "button" %></td> <td><%= link_to 'Edit', oauth2_provider_engine.edit_oauth2_provider_client_path(client), class: "button" %></td> <td><%= link_to 'Destroy', oauth2_provider_engine.oauth2_provider_client_path(client), confirm: 'Are you sure?', method: :delete, class: "button danger" %></td> <% if current_user.admin? %> <% if client.blocked? %> <td><%= link_to 'Unblock!', oauth2_provider_engine.unblock_oauth2_provider_client_path(client), method: :put, class: "button danger icon unlock" %></td> <% else %> <td><%= link_to 'Block!', oauth2_provider_engine.block_oauth2_provider_client_path(client), method: :put, class: "button danger icon lock" %></td> <% end %> <% end %> </tr> <% end %> </table> <br/>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oauth2_provider_engine-0.0.2 | app/views/oauth2_provider/clients/index.html.erb |
oauth2_provider_engine-0.0.1 | app/views/oauth2_provider/clients/index.html.erb |