Sha256: cb4091a50c3e582bbd40cce8cd1ffa49a163b1d2873f98661956fd949ed9521c
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
<div class="sidebar"> <div class="boxTitle">Avatar</div> <div class="box" id="identity"> <%= image_tag (@person.image ? url_for_file_column("person", "image") : ""), :id => "avatar", :class => "avatar" %> </div> <% 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_LENGTH] %> <div class="boxLine"> <span class="result"><%= sprintf("%+d", elt.result) %></span> <%= link_to(elt.subject, :controller => 'elt', :action => 'show', :id => elt) %> </div> <% end %> </div> </div> <h1><%= @person.name %></h1> <p>Created on <%= @person.created_on %></p> <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_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 %>"> <%= render :partial => '/person/listElts', :locals => { :person => @person } %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.8 | app/views/person/show.rhtml |