Sha256: 499da13d89255a649b942e84efd3357460188ed8768d7e33b25137319c101632

Contents?: true

Size: 958 Bytes

Versions: 2

Compression:

Stored size: 958 Bytes

Contents

<div class="sidebar">
	<% 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] %>
			<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_ELT_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

2 entries across 2 versions & 1 rubygems

Version Path
parlement-0.5 app/views/person/show.rhtml
parlement-0.6 app/views/person/show.rhtml