• <% form_remote_tag( :update => 'eltChoice_'+elt.id.to_s, :url => { :action => 'vote', :id => elt }, :before => visual_effect(:DropOut, 'eltChoice_'+elt.id.to_s, { :queue => 'end' }), :loaded => visual_effect(:Grow, 'eltChoice_'+elt.id.to_s, { :queue => 'end' })) do cache :action => 'show', :id => elt.id do %> <% if displayTitle? elt and elt.created_on %> <%= elt.created_on.strftime('%d/%m/%y %H:%M') %> <% end %> <% if elt.person %> <<%= link_to elt.person.name, :controller => 'person', :action => 'show', :id => elt.person %>> <% elsif not displayTitle? elt %> <<%= ANONYMOUS_POSTER %>> <% end %> <% if displayTitle? elt %>

    <% if elt.new_record? %> <%= textilize_without_paragraph elt.subject.gsub(/\[.*\]/, '') %> <% else %> <%= link_to(textilize_without_paragraph(elt.subject.gsub(/\[.*\]/, '')), :controller => 'elt', :action => 'show', :id => elt) %> <% end %>

    <% end %> <% formattedBody = format elt.body %> <%= image_tag (elt.person && elt.person.image ? elt.person.image : "/javascripts/blank.gif"), :onload => "setSize(this)", :class => "avatar" \ if formattedBody.match(/[.\s]

    /) %> <%= formattedBody %> <% for att in elt.attachments %> <%= link_to image_tag("/attachment/file/#{att.file_relative_path}"), "/attachment/file/#{att.file_relative_path}" %> <% end %> <% end %> <% @controller.expire_fragment( :action => 'show', :id => elt.id) if elt.new_record? %> <% unless elt.new_record? %> <%= render :partial => '/elt/choice', :locals => { :elt => elt } %> <% end %> > <%= link_to_remote(n_('%s message...', '%s messages...', elt.elts_count) % elt.elts_count, { :update => 'eltSubs_'+elt.id.to_s, :url => { :controller => 'elt', :action => 'list', :id => elt }, :before => visual_effect(:BlindUp, "eltMore_#{elt.id.to_s}")+ visual_effect(:BlindDown, "eltSubsClose_#{elt.id.to_s}"), :loading => visual_effect(:BlindDown, "eltSubs_#{elt.id.to_s}") }, { :href => url_for(:controller => 'elt', :action => 'show', :id => elt) }) %> <% end %>

    0 and (eltTop or elt.elts_count < SUB_THREAD_LENGTH)) %> id="eltSubsClose_<%= elt.id %>" title="<%= elt.created_on %>" class="eltSubsClose"> <%= link_to_function('<< '+_('Close'), visual_effect(:BlindUp, "eltNew_#{elt.id}")+ visual_effect(:BlindUp, "eltSubsClose_#{elt.id}")+ visual_effect(:BlindUp, "eltSubs_#{elt.id}")+ visual_effect(:BlindDown, "eltMore_#{elt.id}")) %>