fixes & forums started
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
<h1>Blog</h1>
|
||||
<div id="posts">
|
||||
<% @posts.each do |p| %>
|
||||
<div id="post">
|
||||
<div id="post-title">
|
||||
<h2><%= link_to p.title, p %></h2>
|
||||
<div class="post">
|
||||
<div class="post-title">
|
||||
<h2><%= link_to truncate(p.title, length: 60, omission: " …"), p %></h2>
|
||||
<span class="comment-counter">
|
||||
<%= link_to pluralize(p.comments.count, "Comment"), p %>
|
||||
</span>
|
||||
@@ -11,7 +10,7 @@
|
||||
<span class="post-info">
|
||||
by <%= link_to p.user.name, p.user %> on <%= p.created_at.strftime("%e. %b %Y") %>
|
||||
</span>
|
||||
<div id="post-content">
|
||||
<div class="post-content">
|
||||
<%= RbbCode.new.convert(p.text).html_safe %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user