aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/admin/posts/_post.html.erb
blob: fea3eb87a2825396f01490b83c8f5d45af66ff84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(post) -%>">
  <span class='title'>
    <%= post.title %>
    <span class="preview">
      <%= " by #{post.author.username}" if post.author.present? %>
      <% if post.draft? %>
        <span class="label notice"><%= t('refinery.blog.admin.posts.post.draft') %></span>
      <% else %>
        <%= post.published_at.strftime('%b %d, %Y') %>
      <% end %>
    </span>
  </span>
  <span class='actions'>
    <%= link_to refinery_icon_tag("application_go.png"), refinery.blog_post_path(post),
        :title => t('.view_live_html'),
        :target => "_blank" %>
    <%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_blog_admin_post_path(post),
         :title => t('.edit') %>
    <%= link_to refinery_icon_tag("delete.png"), 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>