Sha256: dc70b8c5f35b04c1911ffb5d9c7c49545a2180b84ed4a2d53ecb0e1bbc72d35d

Contents?: true

Size: 1.11 KB

Versions: 56

Compression:

Stored size: 1.11 KB

Contents

- videos ||= @videos
- this_videos_path ||= videos_path

.videos--index
  .videos--menu
    = link_to "Videos (#{videos.count})", this_videos_path

    -# = render 'search', path: this_videos_path
    .inline-search
      = form_tag this_videos_path, method: :get do
        = text_field_tag :q

    = link_to '[+]', new_video_path
    %hr

  = paginate videos, param_name: :videos_page, views_prefix: 'ish_manager'

  .row
    - videos.each do |video|
      .col-md-4.item
        .float-left
          - if video.youtube_id.present?
            %iframe{:allowfullscreen => "true", :frameborder => "0", :height => "150", :src => "//www.youtube.com/embed/#{video.youtube_id}", :width => "200"}
          - else
            .thumb= image_tag video.thumb.url(:thumb)
        .title
          = link_to video.name, video_path( video )
        .meta-edit
          .inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
          = link_to '[~]', edit_video_path( video )

        = render 'meta', item: video

  = paginate videos, param_name: :videos_page, views_prefix: 'ish_manager'


Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
ish_manager-0.1.8.491 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.490 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.489 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.488 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.487 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.486 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.485 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.484 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.483 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.482 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.481 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.480 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.479 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.478 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.477 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.476 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.475 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.474 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.473 app/views/ish_manager/videos/_index.haml
ish_manager-0.1.8.472 app/views/ish_manager/videos/_index.haml