def vtt_button(clip)
      begin
        client = HTTPClient.new
        response = client.head(clip.vtt)
        link_to_options = {:class => 'btn btn-lg btn-default', :id => 'download_vtt'}
        if response.status != 200
          link_to_options.merge!(:style => 'display:none')
        end
        link_to(clip.vtt, link_to_options) do
            "<i class='icon-arrow-down'></i> #{t :download_transcript}".html_safe
          end
      rescue
      end
    end
def vtt_button(clip)
      begin
        client = HTTPClient.new
        response = client.head(clip.vtt)
        link_to_options = {:class => 'btn btn-lg btn-default', :id => 'download_vtt'}
        if response.status != 200
          link_to_options.merge!(:style => 'display:none')
        end
        link_to(clip.vtt, link_to_options) do
            "<i class='icon-arrow-down'></i> #{t :download_transcript}".html_safe
          end
      rescue
      end
    end
TODO: once we have VTT for everything change this and make VTT's manditory