cirandas.net

ref: master

plugins/products/lib/ext/action_tracker_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require_dependency 'action_tracker_helper'

module ActionTrackerHelper

  def create_product_description ta
    _('created the product %{title}').html_safe % {
      title: link_to(truncate(ta.get_name), ta.get_url),
    }
  end

  def update_product_description ta
    _('updated the product %{title}').html_safe % {
      title: link_to(truncate(ta.get_name), ta.get_url),
    }
  end

  def remove_product_description ta
    _('removed the product %{title}').html_safe % {
      title: truncate(ta.get_name),
    }
  end

end