aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/admin/blog/posts/_post.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/admin/blog/posts/_post.html.erb')
-rw-r--r--app/views/refinery/admin/blog/posts/_post.html.erb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/refinery/admin/blog/posts/_post.html.erb b/app/views/refinery/admin/blog/posts/_post.html.erb
new file mode 100644
index 0000000..a7f09e0
--- /dev/null
+++ b/app/views/refinery/admin/blog/posts/_post.html.erb
@@ -0,0 +1,21 @@
+<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(post) -%>">
+ <span class='title'>
+ <%= post.title %>
+ <span class="preview">
+ <%= post.published_at.try(:strftime, '%b %d, %Y') || 'draft' %>
+ <%= " by #{post.author.username}" if post.author.present? %>
+ </span>
+ </span>
+ <span class='actions'>
+ <%= link_to refinery_icon_tag("application_go.png"), blog_post_url(post),
+ :title => t('.view_live_html'),
+ :target => "_blank" %>
+ <%= link_to refinery_icon_tag("application_edit.png"), edit_admin_blog_post_path(post),
+ :title => t('.edit') %>
+ <%= link_to refinery_icon_tag("delete.png"), admin_blog_post_path(post),
+ :class => "cancel confirm-delete",
+ :title => t('.delete'),
+ :method => :delete,
+ :confirm => t('message', :scope => 'shared.admin.delete', :title => post.title) %>
+ </span>
+</li>