<% render :layout => 'task', :locals => { :task => task } do %> <% content_for :extra_buttons do %> <%= button_to_function('down', _('Show details'), "toggleDetails(this, '#{_('Hide details')}', '#{_('Show details')}')" ) %> <% end %> <% content_for :extra_content do %> <% end %> <% end %>