Created
November 25, 2008 07:21
-
-
Save boblmartens/28839 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Welcome to Jibber!</h2> | |
<% if @posts.size == 0 %> | |
<p>I'm sorry, you need to write a post.</p> | |
<% else %> | |
<% @posts.each do |post| %> | |
<div class="indexPostContainer"> | |
<h3><%= link_to post.title, post %></h3> | |
<h4>Posted by <%= post.user.name %> at <%= post.created_at %></h4> | |
<h5>Tags: <%= post.tag_list %></h5> | |
<%= markdown post.body %> | |
<p>This post has <%= post.comments.size %> comment(s) so far.</p> | |
<p><%= link_to 'edit post', edit_post_path(post) %></p> | |
<p><%= link_to 'delete post', post, :confirm => "Are you sure you want to delete this post?", :method => "delete" %></p> | |
</div> | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment