Created
October 6, 2013 21:49
-
-
Save chug2k/6859533 to your computer and use it in GitHub Desktop.
temp for mitch y
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
<h1><%= markdown @post.title %></h1> | |
<div class="row"> | |
<div class="col-md-8"> | |
<small> | |
<%= image_tag(@post.user.avatar.tiny.url) if @post.user.avatar? %> | |
submitted <%= time_ago_in_words(@post.created_at) %> ago by | |
<%= @post.user.name %> | |
</small> | |
<p><%= markdown @post.body %></p> | |
<large> | |
<%= image_tag(@post.image) if @post.image? %> | |
</large> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-8"> | |
<h2> Comments </h2> | |
<%= render partial: "comments", collection: @comments %> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-8"> | |
<h2> New Comment </h2> | |
<%= render "comments/form" %> | |
</div> | |
<div class="col-md-4"> | |
<% if can? :edit, @post %> | |
<%= link_to "Edit", edit_topic_post_path(@topic,@post), class: 'btn btn-large btn-block' %> | |
<% end %> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment