diff options
| author | Michel Etienne | 2015-09-15 14:07:11 +0200 | 
|---|---|---|
| committer | Michel Etienne | 2015-09-15 14:07:11 +0200 | 
| commit | 6b9e5ebf56cd32ac6261fd9d45baf541cf360734 (patch) | |
| tree | 9f7dd03214799df338ae4de891e3f7ffe4a8c51b | |
| parent | 41b99b39816cc4edfb0e7936d004f054fd963d40 (diff) | |
| download | chouette-core-6b9e5ebf56cd32ac6261fd9d45baf541cf360734.tar.bz2 | |
Mantis 38589 : cannot show or copy api-key
| -rw-r--r-- | app/views/api_keys/show.html.erb | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/app/views/api_keys/show.html.erb b/app/views/api_keys/show.html.erb new file mode 100644 index 000000000..1fb5236b3 --- /dev/null +++ b/app/views/api_keys/show.html.erb @@ -0,0 +1,24 @@ +<%= title_tag t('api_keys.show.title') %> + +<div class="api_keys_show"> +   +  <div class="summary"> +    <p> +      <label><%= @api_key.class.human_attribute_name("name") %>: </label> +      <%= @api_key.name %> +    </p> +    <p> +      <label><%= @api_key.class.human_attribute_name("token") %>: </label> +      <%= @api_key.token %>  +    </p> +  </div> +</div> + +<% content_for :sidebar do %> +<ul class="actions"> +  <li><%= link_to t('api_keys.actions.new'), new_referential_api_key_path(@referential), :class => "add" %></li> +  <li><%= link_to t('api_keys.actions.edit'), edit_referential_api_key_path(@referential, @api_key), :class => "edit" %></li> +  <li><%= link_to t('api_keys.actions.destroy'), referential_api_key_path(@referential, @api_key), :method => :delete,  :data => {:confirm =>  t('api_keys.actions.destroy_confirm')}, :class => "remove" %></li> +  <br> +</ul> +<% end %> | 
