- remote ||= false
.search-result-item.image-result{data: {'title' => presenter.title, 'status-label' => presenter.status_label}}
  .badge= presenter.status_label
  .authority
    %div{:class => presenter.recommended_class}
  .basic-info
    %h3
      - if remote
        = link_to presenter.title, presenter.docker_index_url, target: '_blank', title: 'View details on the Docker Index'
      - else
        = presenter.title
    %p= presenter.short_description
  .actions
    = form_tag applications_path do
      = hidden_field_tag 'application[image]', presenter.title
      = label 'application[tag]', 'Tag:'
      = select_tag 'application[tag]',
        options_for_select(['latest']),
        data: {'load-tags-endpoint' => load_tags_search_path, 'loaded' => false}
      = button_tag 'Run Image', class: 'button-positive', data: {disable_with: 'Starting App...'}
  - if remote
    .community-data
      = link_to presenter.docker_index_url + "/stars/", target: '_blank' do
        .star-count=presenter.star_count

- remote ||= false
.search-result-item.image-result{data: {'title' => presenter.title, 'status-label' => presenter.status_label}}
  .badge= presenter.status_label
  .authority
    %div{:class => presenter.recommended_class}
  .basic-info
    %h3
      - if remote
        = link_to presenter.title, presenter.docker_index_url, target: '_blank', title: 'View details on the Docker Index'
      - else
        = presenter.title
    %p= presenter.short_description
  .actions
    = form_tag applications_path do
      = hidden_field_tag 'application[image]', presenter.title
      = label 'application[tag]', 'Tag:'
      = select_tag 'application[tag]',
        options_for_select(['latest']),
        data: {'load-tags-endpoint' => load_tags_search_path, 'loaded' => false}
      %button.button-positive{ data: { disable_with: 'Starting App...', tracking: { method: 'click', action: 'Create Application', category: 'Run Image', label: presenter.title }}} Run Image
  - if remote
    .community-data
      = link_to presenter.docker_index_url + "/stars/", target: '_blank' do
        .star-count=presenter.star_count

Add Google Analytics event for running an image
Add Google Analytics event for running an image

[Finishes #72627590]
