ish_manager 0.1.8.40 → 0.1.8.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd690df6cc164995211540e60cb5306e54f63951
4
- data.tar.gz: df4415f6eec0a8acb8b4b4c5d1577a24d5d23968
3
+ metadata.gz: 8c1b2656f67b787bf4817761c4afed2736b4c303
4
+ data.tar.gz: 2ae70c37ae4fda5a3db323079c3be20ab1801759
5
5
  SHA512:
6
- metadata.gz: d77055df3eb6b96e49bbb5bedfa321c1a8d2441ea914ac62b43bbf2038b5e6973bd352568849a59c58448e15814f96b497a10a09d672044d6939fe7a53a4fa9d
7
- data.tar.gz: 3dd934f37a254eff29e01a4e6f4d951cd1900a85488ccb2d7a81e1797a02ecc4a8f87da54d313cf3211c7c636d7684651c2c67096064e746e509cae7e6318873
6
+ metadata.gz: 33b8fff32642ebfeaaaff7e13fffa34f7f3cc99754d0f067d631c1c7396c714d097284380a7f1596b5bb88b31d779f71b02d0960c118ca048795f658dfe325e6
7
+ data.tar.gz: 3e0370a0ca49a1c508323e06674c6c0b3dac382faab175a077355830aa3f22835d07752db809b271b366d3378dc60f7c2398b1d548de09787a291cedc975b316
@@ -5,7 +5,7 @@ class IshManager::VideosController < IshManager::ApplicationController
5
5
 
6
6
  def index
7
7
  authorize! :index, Video.new
8
- @videos = Video.unscoped.all
8
+ @videos = Video.unscoped
9
9
 
10
10
  if params[:city_id]
11
11
  city = City.find params[:city_id]
@@ -37,15 +37,14 @@
37
37
 
38
38
  .row
39
39
  .small-4.columns
40
- = f.label :is_public
41
40
  = f.check_box :is_public
41
+ = f.label :is_public
42
42
  .small-4.columns
43
- = f.label :is_trash
44
43
  = f.check_box :is_trash
44
+ = f.label :is_trash
45
45
  .small-4.columns
46
- = f.label :is_feature
47
46
  = f.check_box :is_feature
48
-
47
+ = f.label :is_feature
49
48
 
50
49
  .action
51
50
  = f.submit
@@ -1,21 +1,17 @@
1
1
 
2
- - videos = videos.page( params[:videos_page] ).per( 10 )
2
+ .row
3
+ .col-sm-12
3
4
 
4
- .manager-videos--index
5
- .row
6
- .col-sm-12
7
- %h2 Videos (#{videos.length})
5
+ = paginate videos, :param_name => :videos_page
6
+ %ol
7
+ - videos.each do |video|
8
+ %li
9
+ = button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
10
+ = link_to '[~]', edit_video_path( video )
11
+ = link_to video.name, video_path( video )
12
+ = render 'meta', :item => video
13
+ -# = render 'embed', :video => video
14
+ = image_tag "https://img.youtube.com/vi/#{video.youtube_id}/0.jpg"
15
+ = paginate videos, :param_name => :videos_page
16
+ %hr
8
17
 
9
- = paginate videos, :param_name => :videos_page
10
- %ol
11
- - videos.each do |video|
12
- %li
13
- = button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
14
- = link_to '[~]', edit_video_path( video )
15
- = link_to video.name, video_path( video )
16
- = render 'meta', :item => video
17
- -# = render 'embed', :video => video
18
- = image_tag "https://img.youtube.com/vi/#{video.youtube_id}/0.jpg"
19
- = paginate videos, :param_name => :videos_page
20
- %hr
21
-
@@ -3,7 +3,7 @@
3
3
  .row
4
4
  .large-12.columns
5
5
  %h2
6
- Videos (#{Video.count})
6
+ Videos (#{@videos.count})
7
7
  = link_to '[+]', new_video_path
8
8
  = render 'index', :videos => @videos
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.40
4
+ version: 0.1.8.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-27 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails