ish_manager 0.1.8.111 → 0.1.8.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/ish_manager/tags_controller.rb +3 -0
- data/app/helpers/ish_manager/images_helper.rb +4 -5
- data/app/views/ish_manager/features/_index.haml +1 -1
- data/app/views/ish_manager/galleries/_index.haml +1 -0
- data/app/views/ish_manager/galleries/_index_title.haml +17 -12
- data/app/views/ish_manager/reports/_index.haml +3 -3
- data/app/views/ish_manager/tags/_item.haml +1 -1
- data/app/views/ish_manager/tags/show.haml +10 -14
- data/app/views/ish_manager/videos/_index.haml +4 -4
- data/app/views/ish_manager/videos/_index_title.haml +26 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43d9554c44ef10693ca633bc0dcb061e0835998f
|
4
|
+
data.tar.gz: '080cde60ef8bad363ba1bf1515394764e5f11fe5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
-
-
|
6
|
-
.
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-
%
|
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
|
-
|
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
|
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
|
-
.
|
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
|
-
.
|
23
|
-
|
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
|
-
.
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
%
|
7
|
+
%h5
|
8
8
|
Videos (#{videos.count})
|
9
9
|
= link_to '[+]', new_video_path
|
10
10
|
|
11
|
-
- if
|
11
|
+
- if current_user.profile.videos_embed
|
12
12
|
Embed?
|
13
13
|
.inline
|
14
|
-
= form_tag user_profile_path(
|
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(
|
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.
|
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-
|
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
|