%li.highlight[sample]
  - if sample.state
    .strip{:class => sample.state}= t(short_state)
  - else
    .strip.white #{t :other}

  %ul.tools
    = "Edit | Delete"

  .indent
    %tt
      = "Sample " + sample.id.to_s
  = hook(:sample_bottom, self, :sample => sample)
%li.highlight[sample]
  - if sample.state
    .strip{:class => sample.state}= t(short_state)
  - else
    .strip.white #{t :other}

  %ul.tools
    = "Edit | Delete"

  .indent
    %tt
      = "Sample " + sample.id.to_s
      &ndash;
      - user_name = sample.user.try(:full_name)
      - if user_name
        = t(:added_by, :time_ago => timeago(sample.created_at), :user => h(user_name)).html_safe
      - else
        = t(:added_ago, :value => timeago(sample.created_at)).html_safe
  = hook(:sample_bottom, self, :sample => sample)
Add created by tag to Sample list on Opp view
Add created by tag to Sample list on Opp view
