diff --git a/app/models/legislation/annotation.rb b/app/models/legislation/annotation.rb index 2bdfb3fca..b038b5e51 100644 --- a/app/models/legislation/annotation.rb +++ b/app/models/legislation/annotation.rb @@ -1,4 +1,5 @@ class Legislation::Annotation < ActiveRecord::Base + COMMENTS_PAGE_SIZE = 5 acts_as_paranoid column: :hidden_at include ActsAsParanoidAliases diff --git a/app/views/legislation/annotations/_comments_box.html.erb b/app/views/legislation/annotations/_comments_box.html.erb index 24e87b141..79f702fa0 100644 --- a/app/views/legislation/annotations/_comments_box.html.erb +++ b/app/views/legislation/annotations/_comments_box.html.erb @@ -6,18 +6,20 @@ <% end %>
<%= comment.body %>
+<%= truncate comment.body, length: 250 %>