app/views/person/show.rhtml in parlement-0.13 vs app/views/person/show.rhtml in parlement-0.14

- old
+ new

@@ -1,22 +1,25 @@ -<div class="sidebar"> - <div class="boxTitle">Avatar</div> - <div class="box" id="identity"> - <%= image_tag (@person && @person.image ? @person.image : "/javascripts/blank.gif"), :class => "avatar" %> - </div> +<div id="sidebar"> + <script type="text/javascript">border.render('sidebar');</script> + <%= render :partial => '/layouts/title' %> - <% if @person.subscribed_elts.size > 0 %> - <div class="boxTitle">Subscribed elts</div> - <% end %> - - <div class="box"> - <% for elt in @person.subscribed_elts.reverse[0...LIST_LENGTH] %> - <div class="boxLine"> - <%= link_to(elt.subject.gsub(/\[.*\]/, ''), :controller => 'elt', :action => 'show', :id => elt) %> - <span class="choice result"><%= sprintf("%+d", elt.result) %></span> - </div> - <% end %> + <div class="box identity" id="identity"> + <h3 class="boxTitle"><%= _('Avatar')%></h3> + <%= image_tag (@person.image ? @person.image : "/javascripts/blank.gif"), + :id => "person_avatar", :class => "avatar" %> </div> + + <% if @person.subscribed_elts.size > 0 %> + <div class="box" id="listByDate"> + <h3 class="boxTitle"><%= _('Subscribed elts') %></h3> + <% for elt in @person.subscribed_elts.reverse[0...LIST_LENGTH] %> + <div class="boxLine"> + <span class="result"><%= sprintf("%+d", elt.result) %></span> + <%= link_to(elt.subject.gsub(/\[.*\]/, ''), :controller => 'elt', :action => 'show', :id => elt) %> + </div> + <% end %> + </div> + <% end %> </div> <p class="created_on"><%= @person.created_on %></p> <h1><%= @person.name %></h1>