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

- old
+ new

@@ -1,27 +1,24 @@ <div class="sidebar"> <% if @elt.children.count > 0 %> - <div class="boxTitle">Titres</div> + <h3 class="boxTitle">Titres</h3> <% end %> <div class="box"> - <% for elt in @elt.children.reverse[0...PAGE_ELT_LENGTH] %> - <div class="boxLine"> - <div style="float:right;margin-right:0.5em;font-size:smaller;"> - <%= elt.created_on.strftime('%d/%m') %> - </div> - <%= link_to elt.subject, :id => elt %> - </div> - <% end %> + <ul> + <% for elt in @elt.children.reverse[0...PAGE_ELT_LENGTH] %> + <li class="boxLine" title="<%= elt.created_on.strftime('%d/%m') %>"> + <%= link_to elt.subject, :id => elt %> + </li> + <% end %> + </ul> - <br/> - <%= link_to image_tag("/images/webfeed.gif"), :action => 'rss', :id => @elt %> </div> - <div class="boxTitle">Subscribe</div> + <h3 class="boxTitle">Subscribe</h3> <div class="box"> <div id="author_<%= @elt.id %>"> <%= render :partial => 'account/show', :locals => { :divId => 'author_'+@elt.id } %> </div> @@ -45,14 +42,16 @@ <% @flash.each do |key, value| %> <div class="<%= key %>"><%= value %></div> <% end %> <% if @elt.parent and @elt.parent.subject != '' %> - <div class="parent"> + <h3 class="parent"> <%= link_to(textilize_without_paragraph(@elt.parent.subject), :id => @elt.parent) %> - </div> + </h3> <% end %> -<%= render :partial => 'elt', :layout => 'top', - :locals => { :elt => @elt, :eltTop => true } %> +<ul> + <%= render :partial => 'elt', :layout => 'top', + :locals => { :elt => @elt, :eltTop => true } %> +</ul>