Sha256: 92c69c09c5676f6bce710f5667d0784e5f6139fb8cff138b2e511c547f86600d
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
<%= render :partial => 'admin/shared/contents_sub_menu' %> <div class='toolbar'> <ul class='actions'> <li> <p><%= button_link_to "New Post", new_object_url, :icon => 'add' %></p> </li> </ul> <br class='clear' /> </div> <h1>Listing Posts</h1> <table class="index"> <thead> <tr> <th><%= sort_link @search, :title, t("post.title") %></th> <th><%= sort_link @search, :posted_at, t("post.posted_at") %></th> <th><%= sort_link @search, :live, t("post.live") %></th> <th><%= t("action") %></th> </tr> </thead> <tbody> <%- @collection.each do |post|%> <tr id="<%= dom_id post %>"> <td><%=link_to post.title, object_url(post) %></td> <td><%=link_to post.posted_at.strftime('%x %X'), object_url(post) %></td> <td><%= t(post.live ? 'yes' : 'no')%></td> <td> <%= link_to_edit post %> <%= link_to_delete post %> </td> </tr> <% end %> </tbody> </table> <%= paginate @collection %> <% content_for :sidebar do %> <div class="box"> <h3><%= t(:search) %></h3> <% @post = Post.metasearch %> <%= form_for [:admin, @post] do |f| %> <p> <label><%= t 'post.title' %></label><br /> <%= f.text_field :title_like, :size => 25 %> </p> <p><%= button t("search") %></p> <% end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_essential_blog-0.1.0 | app/views/blog/admin/posts/index.html.erb |
spree_essential_blog-0.1.0.rc1 | app/views/blog/admin/posts/index.html.erb |