Allow user to creates named auth keys with token

This commit is contained in:
Thibault Jouan
2015-05-04 04:34:13 +00:00
parent 7d1274cbb3
commit 763c9789ec
12 changed files with 174 additions and 1 deletions

42
app/views/keys/index.haml Normal file
View File

@@ -0,0 +1,42 @@
%h1
Listing
keys
- if @keys.empty?
%p No record found.
- else
%table
%thead
%tr
%th
Name
%th
Created at
%th
Updated at
%th
Actions
%tbody
- @keys.each do |e|
%tr
%td
= link_to e.name, e
%td
= e.created_at
%td
= e.updated_at
%td
%ul
%li
= link_to 'Edit', edit_key_path(e)
%li
= link_to 'Destroy', e, method: :delete,
data: { confirm: 'Are you sure?' }
%ul
%li
= link_to 'New key', new_key_path