Sha256: 06aef8c8924e3f3302650c440cc44cea4f716adc732a61bba3f71ee649590ce9
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
<div class='post-actions'> <% if is_admin? %> <h2><%= t('.actions') %></h2> <ul> <li><%= link_to 'New Post', new_post_path %></li> </ul> <% end %> <% unless @presenter.categories.empty? %> <h2><%= t('.categories') %></h2> <ul id='categories'> <% @presenter.categories.each do |category|%> <li> <%= link_to category, category %> <% if is_admin? %> <small> (<%= link_to t('.edit'), '#', :class => 'edit', 'data-prompt' => t('.edit_category_prompt') %> | <%= link_to t('.delete'), '#', :class=> 'delete', 'data-confirm' => t('.category_delete_confirm')%>) </small> <% end %> </li> <% end %> </ul> <% end %> </div> <% @presenter.posts.each do |post| %> <div class='post'> <%= link_to content_tag(:h2, post.title), quickie_path(post), :class => 'post-title' %> <span class='published-at'> <%= l post.updated_at, :format => :short %> </span> <div class='post-body'> <%= post.body.html_safe %> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kublog-0.9.0 | app/views/kublog/posts/index.html.erb |
kublog-0.0.1.1 | app/views/kublog/posts/index.html.erb |