cirandas.net

ref: master

app/views/person_notifier/mailer/_create_article.html.erb



  
    <%= link_to(profile_image(activity.user, :minor), activity.user.url) %>
  
  
    

<%= link_to activity.user.short_name(20), activity.user.url %> <%= _("has published on community %s").html_safe % link_to(activity.target.profile.short_name(20), activity.target.profile.url, :style => "color: #333; font-weight: bold; text-decoration: none;") if activity.target.profile.is_a?(Community) %> <%= time_ago_in_words(activity.created_at) %>

<%= link_to(activity.params['name'], activity.params['url'], :style => "color: #333; font-weight: bold; text-decoration: none;") %>
<%= image_tag(activity.params['first_image'], :style => 'max-width:100%;') unless activity.params['first_image'].blank? %><%= strip_tags(truncate(activity.params['lead'].html_safe, :length => 1000, :ommision => '...', :escape => false)).gsub(/(\xC2\xA0|\s)+/, ' ').gsub(/^\s+/, '') unless activity.params['lead'].blank? %>

<%= content_tag(:p, link_to(_('See complete forum'), activity.get_url), :class => 'see-forum') if activity.target.is_a?(Forum) %>

<%= render :partial => 'profile_comments', :locals => { :activity => activity } %>