app/views/phcpress/blog/posts/index.html.erb in phcpress-0.6.0 vs app/views/phcpress/blog/posts/index.html.erb in phcpress-0.7.9
- old
+ new
@@ -21,10 +21,10 @@
<tbody>
<% @blog_posts.each do |blog_post| %>
<tr>
<td><%= blog_post.blogpsttitle %></td>
- <td><%= blog_post.blogpsttext %></td>
+ <td><%= truncate(blog_post.blogpsttext, :length => 80) %></td>
<td><%= blog_post.pststatus %></td>
<td><div class="btn-group" role="group" aria-label="Blog Articles">
<%= link_to 'Edit', edit_blog_post_path(blog_post), class: "btn btn-primary btn-xs" %>
<%= link_to 'Trash', blog_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
</div></td>