Sha256: 198740dac3f0065afd437740d98b733c37ba3a235dc49b28c91e92486ffd291b
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
<% e_pages = ActionController::Pagination::Paginator.new( self, person.elts.count, PAGE_ELT_LENGTH, @params['page']) e = Elt.find_all("person_id = '#{person.id}'", 'created_on DESC', e_pages.current.to_sql) %> <% # TODO There seems to be a problem with firefox when trying to use a visual_effect %> <%= link_to_remote('< Previous', :update => 'personElts_'+person.id.to_s, :url => { :action => 'list', :id => person, :page => e_pages.current.next }, :complete => visual_effect(:BlindDown, 'personElts_'+person.id.to_s)) if e_pages.current.next %> <span style="display:<%= e_pages.length > 1 ? '' : 'none'%>" class="pageCount"> (<%= e_pages.length-e_pages.current.to_i+1 %>/<%= e_pages.length %>) </span> <%= link_to_remote('Next >', :update => 'personElts_'+person.id.to_s, :url => { :action => 'list', :id => person, :page => e_pages.current.previous }, :complete => visual_effect(:BlindDown, 'personElts_'+person.id.to_s)) if e_pages.current.previous %> <% for elt in e.reverse[0...PAGE_ELT_LENGTH] %> <div class="elt"> <span class="result"><%= sprintf("%+d", elt.result) %></span> <%= elt.created_on.strftime('%d/%m %H:%M') %> <%= link_to(elt.subject, :controller => 'elt', :action => 'show', :id => elt) %> (<%= elt.children.size %> sub) </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.5 | app/views/person/_listElts.rhtml |
parlement-0.6 | app/views/person/_listElts.rhtml |
parlement-0.7 | app/views/person/_listElts.rhtml |