Skip to content

Instantly share code, notes, and snippets.

@Luke-23ae
Created September 26, 2010 20:39
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 Luke-23ae/598303 to your computer and use it in GitHub Desktop.
Save Luke-23ae/598303 to your computer and use it in GitHub Desktop.
%a{:name => "post_#{post.id}"}
-div_for post do
-unless post.user_id == 6 && current_user.id == 16
.name= user_name(post.user)
.date
=post.created_at.strftime('%Y/%m/%d %H:%M:%S')
/ =time_ago_in_words(post.created_at)
/ ago
.body
=format_body(post)
-if post.user_id == current_user.id
/ %br/
=link_to "Edit", edit_channel_post_path(@channel, post)
|
=link_to "Delete", channel_post_path(@channel, post), :method => :delete, :confirm => "Are you sure?"
.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment