<%-if assignment.task_type_name == 'write-to-other' %>
<a href="#" class="thread-item">
<span class="num"><%= index %></span>
<span class="title"><%= raw t(:expert_advised_writing, :expert => h(assignment.creator.name), :user => h(assignment.user.first_name),  :recipient => h(assignment.data[:name]), :advised => t(:advised)) %></span>
<span class="close">close</span>
<span class="date"><%= t(:ago, :time => time_ago_in_words(event.created_at)) %></span>
</a>
<div class="thread-details box">
</div>
<%- end %>
<%-if assignment.task_type_name == 'write-to-other' %>
<a href="#" class="thread-item">
<span class="num"><%= index %></span>
<span class="title"><%= raw t(:expert_advised_writing, :expert => h(assignment.creator.name), :user => h(assignment.user.first_name),  :recipient => h(assignment.data[:name]), :advised => t(:advised)) %></span>
<span class="close">close</span>
<span class="date"><%= t(:ago, :time => time_ago_in_words(event.created_at)) %></span>
</a>
<div class="thread-details box">
  <%= raw t(:message_from_expert, :expert => h(@assignment.creator.name), :campaign => link_to(h(@assignment.campaign.title), campaign_path(@assignment.campaign)), :user => h(@assignment.user.name)) %>
</div>
<%- end %>
Add message from expert in details.
Add message from expert in details.
