From 49fa7325a74f640ac77436dd0c8a19b2e4c0dda2 Mon Sep 17 00:00:00 2001 From: Jesper Josefsson Date: Tue, 5 Jun 2012 18:56:07 +0300 Subject: [PATCH] Remove views for keys [#181] --- app/views/keys/_key.html.erb | 10 -------- app/views/keys/edit.html.erb | 16 ------------- app/views/keys/index.html.erb | 43 ----------------------------------- app/views/keys/new.html.erb | 19 ---------------- app/views/keys/show.html.erb | 7 ------ 5 files changed, 95 deletions(-) delete mode 100644 app/views/keys/_key.html.erb delete mode 100644 app/views/keys/edit.html.erb delete mode 100644 app/views/keys/index.html.erb delete mode 100644 app/views/keys/new.html.erb delete mode 100644 app/views/keys/show.html.erb diff --git a/app/views/keys/_key.html.erb b/app/views/keys/_key.html.erb deleted file mode 100644 index 236ac0e4..00000000 --- a/app/views/keys/_key.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<% -%> - -
-<% render_if_ready(ssh_key) do -%>
-<%= ssh_key.wrapped_key -%>
-  <%= button_to t("views.common.delete"), user_key_path(current_user, ssh_key),
-             :confirm => t("views.common.confirm"), :method => :delete, :class => "inline" -%>
-<% end -%>
-
diff --git a/app/views/keys/edit.html.erb b/app/views/keys/edit.html.erb deleted file mode 100644 index 612cc75f..00000000 --- a/app/views/keys/edit.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -<% -%> - -<%= breadcrumbs_from(current_user) -%> - -

<%= t("views.keys.edit_title") %>

- -<%= error_messages_for :ssh_key -%> - -<%= form_for @ssh_key, :url => user_key_path(@ssh_key) do |f| -%> -

- <%= f.label :key, t(:key, :scope => "activerecord.attributes.keys") -%>
- <%= f.text_area :key, :class => "text medium" -%> -

- <%= f.submit t("views.common.save") -%> -<% end -%> diff --git a/app/views/keys/index.html.erb b/app/views/keys/index.html.erb deleted file mode 100644 index d44f454d..00000000 --- a/app/views/keys/index.html.erb +++ /dev/null @@ -1,43 +0,0 @@ -<% -%> - -<% @page_title = "SSH Keys" -%> -<%= breadcrumbs_from(@root) -%> - -

<%= t("views.keys.ssh_keys") %>

- - - - - - - - - - - <% @ssh_keys.each do |ssh_key| -%> - - - - - - - - - <% end -%> -
UploadedNameAlgorithmFingerprintReady?
<%= ssh_key.created_at.to_s(:short) -%><%= truncate(h(ssh_key.comment), :length => 20) -%><%=h ssh_key.algorithm -%> - <%= wbr_middle(h(ssh_key.fingerprint)) -%> - - <%= image_tag(ssh_key.ready? ? "silk/tick.png" : "silk/cross.png", - :title => ssh_key.ready? ? 'Ready' : 'Not ready') -%> - - <%= button_to t("views.common.delete"), user_key_path(current_user, ssh_key), - :confirm => t("views.common.confirm"), :method => :delete, :class => "inline" -%> -
- -<% content_for :sidebar do -%> - -<% end -%> - diff --git a/app/views/keys/new.html.erb b/app/views/keys/new.html.erb deleted file mode 100644 index 3284c674..00000000 --- a/app/views/keys/new.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -<% -%> - -<%= breadcrumbs_from(@root) -%> - -

<%= t("views.keys.add_title") %>

- -<%= error_messages_for :ssh_key -%> -<%= form_for @ssh_key, :url => user_keys_path() do |f| -%> -

- <%= f.label :key, t("views.keys.your_public_key") -%>
- <%= t("views.keys.hint") %>
- <%= f.text_area :key, :class => "text medium" -%> -

- <%= f.submit t("views.common.save") -%> -<% end -%> - -<% content_for :sidebar do -%> -<% end -%> \ No newline at end of file diff --git a/app/views/keys/show.html.erb b/app/views/keys/show.html.erb deleted file mode 100644 index 8792bf43..00000000 --- a/app/views/keys/show.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<% -%> - -<%= breadcrumbs_from(current_user) -%> - -<%= render :partial => "key", :locals => {:ssh_key => @ssh_key} -%> -