Sha256: 6f55ae9433db30644a62651de4034b19379fcb74523a50a8dda4d08fb0294df6

Contents?: true

Size: 1.81 KB

Versions: 1

Compression:

Stored size: 1.81 KB

Contents

<div class="sidebar">
	<h3 class="boxTitle">Electoral list</h3>
	<div class="box">
		All voters:
		<span class="result selected" style="float: none">
			<%= Choice.count :select => 'person_id', :distinct => true %>
		</span>
	</div>

	<h3 class="boxTitle">Identity</h3>
	<div class="box">
		<div id="author_<%= @elt.id %>">
			<%= render :partial => 'account/show', :locals => { :divId => 'author_'+@elt.id } %>
		</div>
	</div>

	<% if @elt.elts_count > 0 %><h3 class="boxTitle">Highest posts</h3><% end %>
	<div class="box listByVote">
		<%= render :partial => '/elt/listByVote' %>
	</div>

	<% if @elt.elts_count > 0 %><h3 class="boxTitle">Latest posts</h3><% end %>
	<div class="box listByDate">
		<%= render :partial => '/elt/listByDate' %>
	</div>

	<h3 class="boxTitle">Subscribe</h3>
	<div class="box">
		<div id="subscription">
			<%= link_to_remote(((@session[:person] and @elt.subscribers.include?(@session[:person])) ? 'Unsubscribe!' : 'Subscribe!'),
				:update => 'subscription',
				:url => { :controller => 'subscriber', :action => 'subscribe', :id => @elt },
				:loaded => visual_effect(:BlindDown, 'subscription')) %>
		</div>

		<div class="boxLine">
			<% @elt.subscribers.each do |i| %>
				<%= link_to(i.name, :controller => 'person', :action => 'show', :id => i) %>
			<% end %>
		</div>

		<div class="boxLineR">
			<% @elt.parent.all_recipients.each do |i| %>
				<%= link_to(i.name, :controller => 'person', :action => 'show', :id => i) %>
			<% end %>
		</div>
	</div>
</div>

<% @flash.each do |key, value| %>
	<div class="<%= key %>"><%= value %></div>
<% end %>

<h3 class="parent">
	<%= link_to textilize_without_paragraph(@elt.parent.subject), :id => @elt.parent \
			if @elt.parent %>
</h3>

<ul class="top">
	<%= render :partial => 'elt', :layout => 'top',
			:locals => { :elt => @elt, :eltTop => true } %>
</ul>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parlement-0.6 app/views/elt/show.rhtml