Skip to content

Instantly share code, notes, and snippets.

@tubbo
Created November 14, 2009 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tubbo/234793 to your computer and use it in GitHub Desktop.
Save tubbo/234793 to your computer and use it in GitHub Desktop.
<div id="<%= post.id %>" class="blog_post">
<div id="header">
<h3><%= link_to post.title, blog_post_path(post), :class => 'title' %></h3>
<div id="meta">
posted in
<%= link_to post.category.name, blog_category_path(post.category), :class => 'nobold' %>
<%= format_post_date post.created_at %>.
</div>
</div>
<div id="body">
<%= post.body %>
</div>
<div id="options">
<% if authorized? then %>
<%= link_to 'X', blog_post_path(post), :method => :delete %> |
<%= link_to '%', edit_blog_post_path(post) %> |
<% end %>
<%= link_to '#', blog_post_path(post) %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment