<% if @context_data[:entity_context].present? && @context_data[:entity_context][:object_attributes].present? -%> <% @context_data[:entity_context][:object_attributes].each do |attribute_name, attribute_data| -%> <<%= attribute_name %>> <% if attribute_data[:label].present? -%> <% end -%> <%= attribute_data[:value] %> > <% end -%> <% end -%> <% if @context_data[:entity_context].present? && @context_data[:entity_context][:tags].present? -%> <% @context_data[:entity_context][:tags].each do |tag| -%> <%= tag %> <% end -%> <% end -%> <% if @context_data[:entity_context].present? && @context_data[:entity_context][:articles].present? -%> <% @context_data[:entity_context][:articles].each do |processed_article| -%> <% article = processed_article[:article] -%> <% result = processed_article[:processed_body] -%>
<%= article.sender.name %> <%= article.author.fullname %> <% if article.from.present? -%> <%= article.from %> <% end -%> <% if article.to.present? -%> <%= article.to %> <% end -%> <% if article.cc.present? -%> <%= article.cc %> <% end -%> <%= article.internal ? 'internal' : 'public' %> <% if article.subject.present? -%> <%= article.subject %> <% end -%> <%= result %>
<% end -%> <% end -%>