Sha256: 44bc4cebf636c93af3476619d8a382815b0d28392ebbac43b6e6ceec337afe8b
Contents?: true
Size: 1.61 KB
Versions: 9
Compression:
Stored size: 1.61 KB
Contents
- user = link_to(h(activity.user.full_name), user_path(activity.user)) if activity.user - subject = if (item = activity.related || activity.item) - if item.respond_to?(:full_name) - link_to item.full_name, polymorphic_url(item) - elsif [Account, Campaign, Contact, Lead, Opportunity].include?(item.class) - link_to item.name, polymorphic_url(item) - elsif item.respond_to?(:name) - content_tag :span, item.name, :style => "color:black;" # Individual tasks have no landing pages where we could link to. - known_event = t('action_' + activity.event, :default => 0) != 0 - if (user.present? && subject.present?) || !known_event %li[activity] .tools %small = l(activity.created_at, :format => :short) %tt - if known_event - action = t('action_' + activity.event) - type = t('subject_' + activity.item_type.downcase) = link_to avatar_for(activity.user, :size => :thumb), user_path(activity.user) = t("activity_text", :user => user, :action => action, :type => type, :subject => subject, :default => "#{user} #{action} #{type} #{subject}").html_safe # locales optionally can change the word order for activities using 'activity_text' - if ((item = activity.item).class == Comment) and Setting.comments_visible_on_dashboard = t('action_create_comment', :comment => truncate(h(item.comment), :length => 90)).html_safe - else - type = t(activity.item_type.downcase) - if item.respond_to? :email = avatar_for(item, :size => "16x16") = "#{type} #{subject}:".html_safe = auto_link(t(activity.event)).html_safe
Version data entries
9 entries across 9 versions & 1 rubygems