wco_models 3.1.0.135 → 3.1.0.136
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/views/wco/galleries/_index.haml +24 -19
- data/app/views/wco/profiles/_form_extra.haml +1 -1
- data/config/routes.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4aca388a9b787126a677bc0a0dada925305f24381f879dc7df154179e968381
|
|
4
|
+
data.tar.gz: b2d6f9d703ab36d7bbdb1ce87940f516b96ff9e9c288a9f201bf8d712e3f4bb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 102c9769aa8cff0861ca10a8a63774da3d17686dc36ffc1f2a3bcb290504c4263fcc3d2a4149ca5796fd6c5406b24ce314f5bcdb1e479ec824fc743ca7432970
|
|
7
|
+
data.tar.gz: c79fa5615fe7d33f5ca72b56934c71934177f9f70d3cfad6d1af54a43dc801c6eab1895a4dbe4243b960ee98fc49cdaea6b8c436dd2c344375961d3a9dda75e8
|
|
@@ -6,33 +6,38 @@
|
|
|
6
6
|
|
|
7
7
|
- galleries ||= @galleries
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
.galleries--index.maxwidth
|
|
10
11
|
= render 'header', galleries: galleries
|
|
11
12
|
|
|
12
13
|
.padded
|
|
13
14
|
- if galleries.length > 0
|
|
14
|
-
|
|
15
15
|
- if galleries.respond_to? :total_pages
|
|
16
16
|
= paginate galleries, :param_name => :galleries_page, :views_prefix => 'wco'
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
= form_tag update_galleries_path do
|
|
19
|
+
= select_tag 'tag_ids[]', options_for_select([ nil, 1 ]), { multiple: true }
|
|
20
|
+
= submit_tag 'Add Tags'
|
|
21
|
+
|
|
22
|
+
.row
|
|
23
|
+
- galleries.each do |g|
|
|
24
|
+
.col-sm-12.col-md-6
|
|
25
|
+
.Card
|
|
26
|
+
%h5
|
|
27
|
+
= check_box_tag 'ids[]', g.id
|
|
28
|
+
= link_to '[~]', edit_gallery_path( g )
|
|
29
|
+
= link_to g.name, gallery_path(g.slug)
|
|
30
|
+
(#{g.photos.length})
|
|
31
|
+
= render 'meta', item: g
|
|
32
|
+
- if g.photos.length == 0
|
|
33
|
+
No Photos
|
|
34
|
+
- else
|
|
35
|
+
.d-flex.flex-wrap.photos-thumbs
|
|
36
|
+
- g.photos.limit( @current_profile.show_n_thumbs ).each do |photo|
|
|
37
|
+
= link_to image_tag(photo.photo.url(:thumb), :alt => ''), gallery_path(g.slug)
|
|
38
|
+
|
|
39
|
+
- if galleries.respond_to? :total_pages
|
|
40
|
+
= paginate galleries, :param_name => :galleries_page, :views_prefix => 'wco'
|
|
36
41
|
|
|
37
42
|
- else
|
|
38
43
|
%h5 No Galleries
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.mini-inputs
|
|
5
5
|
.flex-row
|
|
6
6
|
= f.label :per_page
|
|
7
|
-
= f.select :per_page, options_for_select([ 10, 25, 50, 100, 250, 500, 1000], selected: @current_profile.per_page)
|
|
7
|
+
= f.select :per_page, options_for_select([ 2, 10, 25, 50, 100, 250, 500, 1000], selected: @current_profile.per_page)
|
|
8
8
|
.d-flex
|
|
9
9
|
%label show_n_thumbs
|
|
10
10
|
= f.number_field :show_n_thumbs
|
data/config/routes.rb
CHANGED
|
@@ -11,6 +11,7 @@ Wco::Engine.routes.draw do
|
|
|
11
11
|
resources :assets
|
|
12
12
|
# get 'assets/:id', to: 'assets#show', as: :asset
|
|
13
13
|
|
|
14
|
+
post 'galleries/update', to: 'galleries#update', as: :update_galleries
|
|
14
15
|
resources :galleries do
|
|
15
16
|
post 'multiadd', :to => 'photos#j_create', :as => :multiadd
|
|
16
17
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wco_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.0.
|
|
4
|
+
version: 3.1.0.136
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Pudeyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-03-
|
|
11
|
+
date: 2024-03-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|