aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/comments
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/blog/comments')
-rw-r--r--app/views/admin/blog/comments/_comment.html.erb20
-rw-r--r--app/views/admin/blog/comments/_sortable_list.html.erb7
-rw-r--r--app/views/admin/blog/comments/index.html.erb35
-rw-r--r--app/views/admin/blog/comments/show.html.erb63
4 files changed, 0 insertions, 125 deletions
diff --git a/app/views/admin/blog/comments/_comment.html.erb b/app/views/admin/blog/comments/_comment.html.erb
deleted file mode 100644
index 547b9e4..0000000
--- a/app/views/admin/blog/comments/_comment.html.erb
+++ /dev/null
@@ -1,20 +0,0 @@
-<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= "comment-#{comment.to_param}" -%>">
- <span class='title'>
- <%= comment.name %>
- <span class="preview"> - <%= truncate(comment.message, :length => 75) %></span>
- </span>
- <span class='actions'>
- <%= link_to refinery_icon_tag("application_go.png"),
- blog_post_url(comment.post, :anchor => "comment-#{comment.to_param}"),
- :title => t('.view_live_html'),
- :target => "_blank" unless comment.unmoderated? %>
- <%= link_to refinery_icon_tag('zoom.png'), admin_blog_comment_path(comment),
- :title => t('.read') %>
- <%= link_to refinery_icon_tag("cross.png"),
- rejected_admin_blog_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')),
- :title => t('.reject') unless comment.rejected? %>
- <%= link_to refinery_icon_tag("tick.png"),
- approved_admin_blog_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')),
- :title => t('.approve') unless comment.approved? %>
- </span>
-</li>
diff --git a/app/views/admin/blog/comments/_sortable_list.html.erb b/app/views/admin/blog/comments/_sortable_list.html.erb
deleted file mode 100644
index e141dee..0000000
--- a/app/views/admin/blog/comments/_sortable_list.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<ul id='sortable_list'>
- <%= render :partial => 'comment', :collection => @blog_comments %>
-</ul>
-<%= render :partial => "/shared/admin/sortable_list",
- :locals => {
- :continue_reordering => (defined?(continue_reordering) ? continue_reordering : true)
- } %>
diff --git a/app/views/admin/blog/comments/index.html.erb b/app/views/admin/blog/comments/index.html.erb
deleted file mode 100644
index aaec4ae..0000000
--- a/app/views/admin/blog/comments/index.html.erb
+++ /dev/null
@@ -1,35 +0,0 @@
-<%= render :partial => '/admin/blog/submenu' %>
-<div id='records'>
- <% if searching? %>
- <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
- <% if @blog_comments.any? %>
- <%=# will_paginate @blog_comments
- %>
-
- <ul>
- <%= render :partial => "blog_comments",
- :collection => @blog_comments %>
- </ul>
-
- <%=# will_paginate @blog_comments
- %>
- <% else %>
- <p><%= t('search_no_results', :scope => 'admin') %></p>
- <% end %>
- <% else %>
- <% if @blog_comments.any? %>
- <%=# will_paginate @blog_comments
- %>
-
- <%= render :partial => "sortable_list" %>
-
- <%=# will_paginate @blog_comments
- %>
- <% else %>
- <h3>
- <%= t('.no_items_yet',
- :type => t(action_name.gsub('index', 'new'), :scope => 'admin.blog.submenu.comments').downcase) %>
- </h3>
- <% end %>
- <% end %>
-</div>
diff --git a/app/views/admin/blog/comments/show.html.erb b/app/views/admin/blog/comments/show.html.erb
deleted file mode 100644
index d4c2186..0000000
--- a/app/views/admin/blog/comments/show.html.erb
+++ /dev/null
@@ -1,63 +0,0 @@
-<div id='actions'>
- <h2><%= t('.details')%></h2>
- <p>
- <strong><%= t('.age') %>:</strong> <%= time_ago_in_words(@blog_comment.created_at) %>
- </p>
- <h2><%= t('.actions') %></h2>
- <ul>
- <li>
- <%= link_to t('.back'), {:action => 'index'}, :class => "back_icon" %>
- </li>
- <li>
- <%= link_to t('.reject'), rejected_admin_blog_comment_path(@blog_comment, :return_to => 'rejected'),
- :class => 'comment_cross_icon' unless @blog_comment.rejected? %>
- </li>
- <li>
- <%= link_to t('.approve'), approved_admin_blog_comment_path(@blog_comment, :return_to => 'approved'),
- :class => 'comment_tick_icon' unless @blog_comment.approved? %>
- </li>
- </ul>
-</div>
-<div id='records'>
- <h2><%= t('.comment') %></h2>
- <table id='inquiry'>
- <tr>
- <td>
- <strong><%= t('.blog_post') %></strong>
- </td>
- <td>
- <%= link_to @blog_comment.post.title,
- blog_post_url(@blog_comment.post, :anchor => "comment-#{@blog_comment.to_param}"),
- :target => '_blank' %>
- </td>
- </tr>
- <tr>
- <td>
- <strong><%= t('.from') %></strong>
- </td>
- <td>
- <%= @blog_comment.name %> [<%= mail_to @blog_comment.email, @blog_comment.email, {:title => t('.click_to_email')} %>]
- </td>
- </tr>
- <tr>
- <td>
- <strong><%= t('.date') %></strong>
- </td>
- <td>
- <%= l(Date.parse(@blog_comment.created_at.to_s), :format => :long) %>
- </td>
- </tr>
- <tr>
- <td valign='top'>
- <strong><%= t('.message') %></strong>
- </td>
- <td>
- <p style='margin-top: 0px'>
- <%= @blog_comment.message.gsub("\r\n\r\n", "\r\n").gsub("\r\n", "</p><p>") %>
- </p>
- </td>
- </tr>
- </table>
-</div>
-
-<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog') %>