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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f667b2e3aff979297adf77e14f569164761f083784e88e6dc76735d002488f3f
4
- data.tar.gz: 5cff89fae12fb7c9f8da0bd042b17d425eda08ed5c68f7b6dea78b147b082541
3
+ metadata.gz: a4aca388a9b787126a677bc0a0dada925305f24381f879dc7df154179e968381
4
+ data.tar.gz: b2d6f9d703ab36d7bbdb1ce87940f516b96ff9e9c288a9f201bf8d712e3f4bb2
5
5
  SHA512:
6
- metadata.gz: aa88ab71277a00ded9d9e864f8e44591d6ca1617fc70d04855f7d56709949652a116ff481fa279d0375ff7382a687e86b58bf99b92c2b3d1a9fca1e7f222a13c
7
- data.tar.gz: ce29ae70f121832939b6109cb86a8a5a35a5a694f56506c75580e5d64cc787b12f34ee53c9e1c551eda3d083ab36808a5397ac672489503a343a98ad8fe7fcc2
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
- .row
19
- - galleries.each do |g|
20
- .col-sm-12.col-md-6
21
- .Card
22
- %h5
23
- = link_to '[~]', edit_gallery_path( g )
24
- = link_to g.name, gallery_path(g.slug)
25
- (#{g.photos.length})
26
- = render 'meta', item: g
27
- - if g.photos.length == 0
28
- No Photos
29
- - else
30
- .d-flex.flex-wrap.photos-thumbs
31
- - g.photos.limit( @current_profile.show_n_thumbs ).each do |photo|
32
- = link_to image_tag(photo.photo.url(:thumb), :alt => ''), gallery_path(g.slug)
33
-
34
- - if galleries.respond_to? :total_pages
35
- = paginate galleries, :param_name => :galleries_page, :views_prefix => 'wco'
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.135
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-16 00:00:00.000000000 Z
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