ish_manager 0.1.8.111 → 0.1.8.112

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: d2fe8feaad942e2a7b7009512fb10ab07ab714e7
4
- data.tar.gz: 62c3ffaa7feddc8818a78fbc15c5643e38cd1015
3
+ metadata.gz: 43d9554c44ef10693ca633bc0dcb061e0835998f
4
+ data.tar.gz: '080cde60ef8bad363ba1bf1515394764e5f11fe5'
5
5
  SHA512:
6
- metadata.gz: 6bca517e687351762eca142a06d33167e7c67006fab97593366c88e541fb7dfad645f30ec12e3ea4c97cb8d3949a12e85d490c95422c0ce2e29562c38e595055
7
- data.tar.gz: 9ab75aff82fe8b7537f4bbcd52a38e46a19110b0d69320c5bb4c4e7195ccbcaf2e84d9b73cbb789838d1001152b79af80acbe14b402970506029bb1f2475957d
6
+ metadata.gz: 5b3e0f15d56e22fc79788e3de4d716a99e0b486736d0d64003eab85abfc35bba27a092f28658ea82d4ade7b66b36ba010fa50af68b23ac22e7a89e24c2c70f22
7
+ data.tar.gz: 3954d0f5fbde16ee9fc5ed7164518103128ce54402562099557b07c5a71014006f920151949b4ba4021767e8b679ccc422b57cc485e18d16ce123857bf0a3a6d
@@ -11,6 +11,9 @@ class IshManager::TagsController < IshManager::ApplicationController
11
11
  def show
12
12
  @tag = Tag.unscoped.find params[:id]
13
13
  authorize! :show, @tag
14
+
15
+ @galleries = @tag.galleries.page( params[:galleries_page] ).per( 10 )
16
+ @videos = @tag.videos.page( params[:videos_page ]).per( 10 )
14
17
  end
15
18
 
16
19
  def new
@@ -107,11 +107,7 @@ module IshManager::ImagesHelper
107
107
  def image_close
108
108
  image_tag('close.png')
109
109
  end
110
-
111
- def image_edit
112
- image_tag('icons/24x24/edit.png', :alt => '[~]')
113
- end
114
-
110
+
115
111
  def image_email
116
112
  image_tag 'email.gif'
117
113
  end
@@ -242,5 +238,8 @@ module IshManager::ImagesHelper
242
238
  def edit_img
243
239
  raw('<i class="fa fa-pencil-square"></i>')
244
240
  end
241
+ def image_edit
242
+ raw('<i class="fa fa-pencil-square"></i>')
243
+ end
245
244
 
246
245
  end
@@ -11,7 +11,7 @@
11
11
  .manager-features--index
12
12
  %h3
13
13
  Features (#{features.length})
14
- = link_to '[+]', new_path
14
+ = link_to image_new, new_path
15
15
 
16
16
  .row
17
17
  - features.each_with_index do |feature, idx|
@@ -0,0 +1 @@
1
+ _list.haml
@@ -1,17 +1,22 @@
1
1
 
2
+ -# galleries / _index_title
3
+
2
4
  - n_thumbs ||= 8
3
5
  - param_name ||= :galleries_page
4
6
 
5
- - if galleries.length > 0
6
- .galleries--list
7
- - galleries.each do |g|
8
- %h5
9
- = link_to '[~]', edit_gallery_path( g )
10
- = link_to g.name, gallery_path(g.galleryname)
11
- .c
7
+ .manager--galleries-index
8
+ %h5 Galleries (#{galleries.count}) #{link_to image_new, new_gallery_path}
12
9
 
13
- - if galleries.respond_to? :total_pages
14
- = paginate galleries, :param_name => param_name
15
-
16
- - else
17
- %p No Galleries
10
+ - if galleries.length > 0
11
+ .galleries--list
12
+ - galleries.each do |g|
13
+ %h5
14
+ = link_to '[~]', edit_gallery_path( g )
15
+ = link_to g.name, gallery_path(g.galleryname)
16
+ .c
17
+
18
+ - if galleries.respond_to? :total_pages
19
+ = paginate galleries, :param_name => param_name, :views_prefix => :ish_manager
20
+
21
+ - else
22
+ %p No Galleries
@@ -1,6 +1,6 @@
1
1
 
2
2
  - reports = reports.page( params[:reports_page] ).per( 10 )
3
- - if site
3
+ - if defined? site
4
4
  - new_path = new_site_report_path( site.id )
5
5
  - else
6
6
  - new_path = new_report_path
@@ -8,7 +8,7 @@
8
8
  .manager-reports--index
9
9
  .row
10
10
  .col-sm-12
11
- %h2
11
+ %h5
12
12
  Reports (#{reports.length})
13
13
  = link_to image_new, new_path
14
14
 
@@ -22,4 +22,4 @@
22
22
  - if report.subhead && report.subhead.length > 3
23
23
  .subhead= report.subhead
24
24
  = paginate reports, :param_name => :reports_page
25
- %hr
25
+
@@ -7,7 +7,7 @@
7
7
  = link_to '[+]', new_tag_path( :for_tag => tag.id )
8
8
  = link_to '[~]', edit_tag_path( tag )
9
9
  .inline= button_to '[x]', tag_path( tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
10
- (#{tag.reports.length}) (#{tag.galleries.length}) (#{tag.videos.length})
10
+ (R #{tag.reports.length}) (G #{tag.galleries.length}) (V #{tag.videos.length})
11
11
 
12
12
  -# .descr= tag.descr
13
13
 
@@ -6,28 +6,24 @@
6
6
  .row
7
7
  .large-12.columns
8
8
  %h5.center
9
+ Tag
9
10
  = @tag.name
10
- = link_to '[~]', edit_tag_path( @tag )
11
+ = link_to image_edit, edit_tag_path( @tag )
12
+ -# = link_to_delete( @tag )
11
13
  .inline= button_to 'X', tag_path( @tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
12
14
  -# = render 'ads/leaderboard'
13
15
  -# .descr= @tag.descr # I don't wanna show this every time to everyone, they know what they are here for.
14
16
  = render 'ish_manager/features/index', :features => @tag.features[0, Tag.n_features]
15
17
 
16
18
  .row
17
- .large-6.columns
18
- %h4 Reports
19
+ .col-sm-6
19
20
  = render 'ish_manager/reports/index', :reports => @tag.reports, :n_ads => 0
20
- %hr
21
21
 
22
- .large-6.columns
23
- %h4 Galleries
24
- = render 'ish_manager/galleries/index', :galleries => @tag.galleries, :n_thumbs => 4
25
- %hr
22
+ .col-sm-6
23
+ = render 'ish_manager/galleries/index_title', :galleries => @galleries, :n_thumbs => 4
26
24
 
27
25
  .row
28
- .large-12.columns
29
- %h4
30
- = t('videos.list')
31
- = link_to '[+]', new_video_path( :tag_id => @tag.id )
32
- = render 'ish_manager/videos/index', :videos => @tag.videos
33
-
26
+ .col-sm-6
27
+ = render 'ish_manager/videos/index_title', :videos => @videos
28
+ .col-sm-6
29
+ %h5 Here, nothing yet
@@ -4,20 +4,20 @@
4
4
 
5
5
  .row
6
6
  .col-sm-12
7
- %h2
7
+ %h5
8
8
  Videos (#{videos.count})
9
9
  = link_to '[+]', new_video_path
10
10
 
11
- - if @current_user.profile.videos_embed
11
+ - if current_user.profile.videos_embed
12
12
  Embed?
13
13
  .inline
14
- = form_tag user_profile_path( @current_user.profile ), :method => :patch do
14
+ = form_tag user_profile_path( current_user.profile ), :method => :patch do
15
15
  = hidden_field_tag 'ish_models_user_profile[videos_embed]', false
16
16
  = hidden_field_tag 'redirect_to', videos_path
17
17
  = submit_tag 'Preview?'
18
18
  - else
19
19
  .inline
20
- = form_tag user_profile_path( @current_user.profile ), :method => :patch do
20
+ = form_tag user_profile_path( current_user.profile ), :method => :patch do
21
21
  = hidden_field_tag 'ish_models_user_profile[videos_embed]', true
22
22
  = hidden_field_tag 'redirect_to', videos_path
23
23
  = submit_tag 'Embed?'
@@ -0,0 +1,26 @@
1
+
2
+ -# videos ||= @videos
3
+ -# videos = videos.page params[:videos_page]
4
+
5
+ .row
6
+ .col-sm-12
7
+ %h5
8
+ Videos (#{videos.count})
9
+ = link_to image_new, new_video_path
10
+
11
+ = paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
12
+
13
+ - videos.each do |video|
14
+ .panel
15
+ .panel-content
16
+ .row
17
+ .col-xs-12
18
+ .center
19
+ = link_to video.name, video_path( video )
20
+ = link_to image_edit, edit_video_path( video )
21
+ .inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
22
+ = render 'meta', :item => video
23
+
24
+ = paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
25
+
26
+
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.111
4
+ version: 0.1.8.112
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-08 00:00:00.000000000 Z
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -218,6 +218,7 @@ files:
218
218
  - app/views/ish_manager/features/show.haml
219
219
  - app/views/ish_manager/friends/index.haml
220
220
  - app/views/ish_manager/galleries/_form.haml
221
+ - app/views/ish_manager/galleries/_index.haml
221
222
  - app/views/ish_manager/galleries/_index_title.haml
222
223
  - app/views/ish_manager/galleries/_list.haml
223
224
  - app/views/ish_manager/galleries/_list.haml~
@@ -328,6 +329,7 @@ files:
328
329
  - app/views/ish_manager/videos/_form.haml
329
330
  - app/views/ish_manager/videos/_form.haml~
330
331
  - app/views/ish_manager/videos/_index.haml
332
+ - app/views/ish_manager/videos/_index_title.haml
331
333
  - app/views/ish_manager/videos/_list.haml
332
334
  - app/views/ish_manager/videos/_list_small.haml
333
335
  - app/views/ish_manager/videos/_preview.haml