% 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 %>
- <%=_('Sent by')%>: <%=task.name%>
- <%=_('Email')%>: <%=task.email%>
- <%=_('Source')%>: <%=task.article_object.source_name%>
- <%=_('Source URL')%>: <%=task.article_object.source%>
- <%=_('Folder')%>: <%=(a = Article.find_by_id(task.article_object.parent_id))?a.name : '' + s_('Folder|none') + ''%>
- <%=_('Lead')%>: <%=task.article_object.abstract.blank? ? '' + s_('Abstract|empty') + '' : task.article_object.abstract%>
- <%=_('Body')%>:
<%= task.article_object.body %>
<% end %>
<% end %>