aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/api_keys/show.html.erb24
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 %>