Added post anchors and show post.
when a new post is created, the page is now scrolled to is via its anchor created a show post route, and view. added a post number to post view, with link. need to change displayed post number from post id, to reply #
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
<table>
|
||||
<% @posts.each do |post| %>
|
||||
<% if !post.user.blank? %>
|
||||
<tr>
|
||||
<tr>
|
||||
<td class="post_author" rowspan="2">
|
||||
<a name="<%= post.id %>"> <%= link_to ("#"+ post.id.to_s ), post %> </a>
|
||||
<span class="name"><%= post.user.username %></span>
|
||||
<span class="avatar"><%= image_tag post.user.gravatar_url %></span>
|
||||
<span class="info smaller">
|
||||
|
||||
Reference in New Issue
Block a user