app/views/profile/_create_article.html.erb
<div class='profile-activity-image'>
<%= link_to(profile_image(activity.user, :minor), activity.user.url) %>
</div>
<div class='profile-activity-description profile-activity-article-<%= activity.target.class.icon_name %>'>
<p class='profile-activity-text'>
<%= link_to activity.user.short_name(20), activity.user.url, class: 'profile-name' %>
<%= _("has published on community %s").html_safe % link_to(activity.target.profile.short_name(20), activity.target.profile.url) if activity.target.profile.is_a?(Community) %>
<%= time_ago(activity) %>
</p>
<div class='profile-activity-lead'>
<div class='article-name'><%= link_to(activity.params['name'], activity.params['url']) %></div>
<%= image_tag(activity.params['first_image']) unless activity.params['first_image'].blank? %>
<%= strip_tags(truncate(activity.params['lead'].html_safe, :length => 1000, :omission => '...', :escape => false)).gsub(/(\xC2\xA0|\s)+/, ' ').gsub(/^\s+/, '') unless activity.params['lead'].blank? %><small><%= link_to(_('See more'), activity.params['url']) unless activity.get_lead.blank? %></small>
</div>
<%= content_tag(:p, link_to(_('See complete forum'), activity.get_url), :class => 'see-forum') if activity.target.is_a?(Forum) %>
<span class="profile-activity-send-reply">
<%= link_to_function font_awesome(:reply, s_('profile|Comment')), 'show_comment_reply_form(this)', { :class => "profile-send-reply", "data-activity-id" => "#{activity.id}", "data-tab-action" => "#{tab_action}" } %>
</span>
<%= render partial: "profile_comments", locals: { activity: activity, tab_action: tab_action } %>
</div>
<div class='profile-wall-actions'>
<%= link_to_function(font_awesome(:remove), 'remove_item_wall(this, \'%s\', \'%s\', \'%s\'); return false ;' % [".profile-activity-item", url_for(:profile => params[:profile], :action => :remove_activity, :activity_id => activity.id, :only_hide => true, :view => params[:view]), _('Are you sure you want to remove this activity and all its replies?')]) if logged_in? && current_person == @profile %>
</div>