diff options
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/blog/comments/_comment.html.erb | 17 | ||||
-rw-r--r-- | app/views/admin/blog/comments/_sortable_list.html.erb | 7 |
2 files changed, 24 insertions, 0 deletions
diff --git a/app/views/admin/blog/comments/_comment.html.erb b/app/views/admin/blog/comments/_comment.html.erb new file mode 100644 index 0000000..e03605a --- /dev/null +++ b/app/views/admin/blog/comments/_comment.html.erb @@ -0,0 +1,17 @@ +<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(comment) -%>"> + <span class='title'> + <%=h 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'), + :target => "_blank" %> + <%= link_to refinery_icon_tag("application_edit.png"), edit_admin_blog_comment_path(comment), + :title => t('.edit') %> + <%= link_to refinery_icon_tag("delete.png"), admin_blog_comment_path(comment), + :class => "cancel confirm-delete", + :title => t('.delete') %> + </span> +</li> diff --git a/app/views/admin/blog/comments/_sortable_list.html.erb b/app/views/admin/blog/comments/_sortable_list.html.erb new file mode 100644 index 0000000..e141dee --- /dev/null +++ b/app/views/admin/blog/comments/_sortable_list.html.erb @@ -0,0 +1,7 @@ +<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) + } %> |