app/views/elt/show.rhtml in parlement-0.4 vs app/views/elt/show.rhtml in parlement-0.5

- old
+ new

@@ -1,14 +1,31 @@ <div class="sidebar"> + <h3 class="boxTitle">Electoral list</h3> + <div class="box"> + All voters: + <span class="result" 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.children.count > 0 %> <h3 class="boxTitle">Titres</h3> <% end %> <div class="box"> <ul> <% for elt in @elt.children.reverse[0...PAGE_ELT_LENGTH] %> <li class="boxLine" title="<%= elt.created_on.strftime('%d/%m') %>"> + <span class="result"><%= sprintf("%+d", elt.result) %></span> <%= link_to elt.subject, :id => elt %> </li> <% end %> </ul> @@ -16,27 +33,22 @@ :action => 'rss', :id => @elt %> </div> <h3 class="boxTitle">Subscribe</h3> <div class="box"> - <div id="author_<%= @elt.id %>"> - <%= render :partial => 'account/show', - :locals => { :divId => 'author_'+@elt.id } %> - </div> - <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.size %> subscriber(s)</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.subscribers.size %> subscriber(s)</div> </div> </div> <% @flash.each do |key, value| %> <div class="<%= key %>"><%= value %></div>