From f3f405c1b4d4e5f6d5aaa98f272f5453e41454d4 Mon Sep 17 00:00:00 2001 From: chris2tof Date: Mon, 5 Dec 2011 09:56:26 +0800 Subject: [PATCH] Remove useless files in items --- app/views/admin/items/_component.html.erb | 11 ----------- app/views/admin/items/_home.html.erb | 10 ---------- app/views/admin/items/_link.html.erb | 10 ---------- app/views/admin/items/_snippets.html.erb | 15 --------------- 4 files changed, 46 deletions(-) delete mode 100644 app/views/admin/items/_component.html.erb delete mode 100644 app/views/admin/items/_home.html.erb delete mode 100644 app/views/admin/items/_link.html.erb delete mode 100644 app/views/admin/items/_snippets.html.erb diff --git a/app/views/admin/items/_component.html.erb b/app/views/admin/items/_component.html.erb deleted file mode 100644 index fc3b1a92..00000000 --- a/app/views/admin/items/_component.html.erb +++ /dev/null @@ -1,11 +0,0 @@ - - <%= item.class %> - <%= link_to item.name, admin_items_path(:parent_name => item.name) %> - <%=h item.title %> - <%= item.position %> - <%= item.is_published.to_s %> - - <%= link_to t(:show), item.url %> | - <%= link_to t(:edit), edit_admin_component_path(item) %> | - <%= link_to t(:delete), admin_component_path(item), :confirm => t('sure?'), :method => :delete %> - \ No newline at end of file diff --git a/app/views/admin/items/_home.html.erb b/app/views/admin/items/_home.html.erb deleted file mode 100644 index 670fc0c0..00000000 --- a/app/views/admin/items/_home.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<%= item.class %> -<%= link_to item.name, admin_items_path(:parent_id => item.id) %> -<%= item.i18n_variable[I18n.locale] rescue nil %> -<%= item.position %> -<%= item.is_published.to_s %> - - <%= link_to t(:show), item.url %> | - <%= link_to t(:edit), edit_admin_home_path(item) %> | - <%= link_to t(:delete), admin_home_path(item), :confirm => t('sure?'), :method => :delete %> - diff --git a/app/views/admin/items/_link.html.erb b/app/views/admin/items/_link.html.erb deleted file mode 100644 index cb0de8e8..00000000 --- a/app/views/admin/items/_link.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -<%= item.class %> -<%= item.name %> -<%= item.i18n_variable[I18n.locale] rescue nil %> -<%= item.position %> -<%= item.is_published.to_s %> - - <%= link_to t(:show), item.url %> | - <%= link_to t(:edit), edit_admin_link_path(item) %> | - <%= link_to t(:delete), admin_link_path(item), :confirm => t('sure?'), :method => :delete %> - diff --git a/app/views/admin/items/_snippets.html.erb b/app/views/admin/items/_snippets.html.erb deleted file mode 100644 index d5df78b1..00000000 --- a/app/views/admin/items/_snippets.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -

<%= t('admin.list_snippets') %>

- - - - - -<% snippets.each do |snippet| %> - - - - - -<% end if snippets%> -
<%= snippet.name %><%= link_to t(:show), admin_snippet_path(snippet) %> - <%= link_to t(:edit), edit_admin_snippet_path(snippet) %><%= link_to t(:delete), admin_snippet_path(snippet), :confirm => t('sure?'), :method => :delete %>
\ No newline at end of file