diff options
author | Philip Arndt <parndt@gmail.com> | 2012-01-09 10:38:26 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-01-17 16:56:23 +1300 |
commit | b3a25c1b686d205fc6b8b409a8f90059ae6b934d (patch) | |
tree | b0590a4c85422d000a22423114849fd1679392dd /app/views/refinery/blog/admin/posts/_post.html.erb | |
parent | 2a2fcca64972bc2fb6a3530395366fb2ade42303 (diff) | |
download | refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.tar.gz refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.tar.bz2 refinerycms-blog-b3a25c1b686d205fc6b8b409a8f90059ae6b934d.zip |
Restructured part of the project to Refinery::Blog::Admin not Refinery::Admin::Blog
Diffstat (limited to 'app/views/refinery/blog/admin/posts/_post.html.erb')
-rw-r--r-- | app/views/refinery/blog/admin/posts/_post.html.erb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/refinery/blog/admin/posts/_post.html.erb b/app/views/refinery/blog/admin/posts/_post.html.erb new file mode 100644 index 0000000..c8baa80 --- /dev/null +++ b/app/views/refinery/blog/admin/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"), main_app.blog_post_path(post), + :title => t('.view_live_html'), + :target => "_blank" %> + <%= link_to refinery_icon_tag("application_edit.png"), main_app.edit_refinery_blog_admin_post_path(post), + :title => t('.edit') %> + <%= link_to refinery_icon_tag("delete.png"), main_app.refinery_blog_admin_post_path(post), + :class => "cancel confirm-delete", + :title => t('.delete'), + :method => :delete, + :confirm => t('message', :scope => 'refinery.admin.delete', :title => post.title) %> + </span> +</li> |