.search-result-item.template-result
  .badge
    %img{src: presenter.icon_src}
    = presenter.status_label
  .authority
    %div{:class => presenter.recommended_class}
  .basic-info
    %h3= presenter.title
    %p= presenter.short_description
    %p.microcopy= "Last Updated: #{presenter.updated_at}"
  .actions
    = form_tag applications_path do
      = hidden_field_tag 'application[template_id]', presenter.id
      = button_tag 'Run Template', class: 'button-positive', data: {disable_with: 'Starting App...'}
  .community-data
    .image-count
      %em= presenter.image_count
      = presenter.image_count_label

.search-result-item.template-result
  .badge
    %img{src: presenter.icon_src}
    = presenter.status_label
  .authority
    %div{:class => presenter.recommended_class}
  .basic-info
    %h3= presenter.title
    %p= presenter.short_description
    %p.microcopy= "Last Updated: #{presenter.updated_at}"
  .actions
    = form_tag applications_path do
      = hidden_field_tag 'application[template_id]', presenter.id
      %button.button-positive{ data: { disable_with: 'Starting App...', tracking: { method: 'click', action: 'Create Application', category: 'Run Template', label: presenter.title }}} Run Template 
  .community-data
    .image-count
      %em= presenter.image_count
      = presenter.image_count_label

Add Google Analytics event for running a template
Add Google Analytics event for running a template

[finishes #72627502]
