app/views/person/show.rhtml in parlement-0.7 vs app/views/person/show.rhtml in parlement-0.8
- old
+ new
@@ -7,11 +7,11 @@
<% if @person.subscribed_elts.size > 0 %>
<div class="boxTitle">Subscribed elts</div>
<% end %>
<div class="box">
- <% for elt in @person.subscribed_elts.reverse[0...PAGE_ELT_LENGTH] %>
+ <% for elt in @person.subscribed_elts.reverse[0...PAGE_LENGTH] %>
<div class="boxLine">
<span class="result"><%= sprintf("%+d", elt.result) %></span>
<%= link_to(elt.subject, :controller => 'elt', :action => 'show', :id => elt) %>
</div>
<% end %>
@@ -26,10 +26,10 @@
<p>Posts made by <%= @person.name %></p>
<%
# TODO get the count from the parent element call
e_pages = ActionController::Pagination::Paginator.new(
- self, @person.elts.count, PAGE_ELT_LENGTH, @params['page'])
+ self, @person.elts.count, PAGE_LENGTH, @params['page'])
e = Elt.find_all("person_id = '#{@person.id}'",
'created_on DESC', e_pages.current.to_sql)
%>
<div class="eltSubs" id="personElts_<%= @person.id %>">