wco_models 3.1.0.142 → 3.1.0.143

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: 416492ad97851c4301c4bf4554ad88bf6f98b0c98a87fa47666b6958c3bab337
4
- data.tar.gz: 2288a79fef2d8c98e9bc9587e459515e802d2cf4e393976f9c810254cc0d0296
3
+ metadata.gz: 7dcd0e6443ef46946446ff666738bc396e56de3ec322efbdb6883bae10a5300a
4
+ data.tar.gz: c952c2ce1d2e7d4b01e4253e207b779196753cc343f8edeecbfd3ba5c42fabb1
5
5
  SHA512:
6
- metadata.gz: '08e838000f036f91ff65b33e261a5559000c5683c1ec246ab16011cbe85af8aa90491cc1654635ac2e288a47d3697ced7e52b2db95e0b581c53277f6ddd63745'
7
- data.tar.gz: fb84b9bdbdae14145fee0f1773512019db8f73b1b9c0ebb02af6662c93502bf3b5607b8371f59ece21fff747a8b2d43230b82b8b61d59755ba6df784b618dae6
6
+ metadata.gz: 218c4d18150413167875616b4e9b4af5158e7b13d4e41813e02f9521bdde33a1d42e81f0b801555cddf6c8ec7812a8ac80495d34f134cbc164a39bdac3734a0f
7
+ data.tar.gz: acc8fe29b0fd09af799db9adeb5ec376c866f5d4a41b760c5191441240872f7a23343de78dd02d2ed050bd86a3b8c7194752e692089bcf971ba3924e9768ad0b
@@ -44,7 +44,7 @@ class Wco::GalleriesController < Wco::ApplicationController
44
44
  @page_title = 'Galleries'
45
45
  @galleries = Wco::Gallery.all.order_by( :created_at => :desc )
46
46
 
47
- @tags = Wco::Tag.all
47
+ @tags = Wco::Tag.all.order_by( slug: :asc )
48
48
 
49
49
  if params[:q]
50
50
  q = URI.decode(params[:q])
@@ -91,7 +91,7 @@ class Wco::TagsController < Wco::ApplicationController
91
91
  private
92
92
 
93
93
  def set_lists
94
- @tags = Wco::Tag.all
94
+ @tags = Wco::Tag.all.order_by( slug: :asc )
95
95
  end
96
96
 
97
97
 
@@ -42,6 +42,6 @@ class Wco::Tag
42
42
  slug
43
43
  end
44
44
  def self.list
45
- [[nil,nil]] + all.map { |p| [ p.slug, p.id ] }
45
+ [[nil,nil]] + all.order_by( slug: :asc ).map { |p| [ p.slug, p.id ] }
46
46
  end
47
47
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  .galleries-edit.maxwidth
3
- = render 'title', gallery: @gallery
3
+ = render 'header_mini', gallery: @gallery
4
4
  = render 'form', gallery: @gallery, :url => gallery_path( @gallery )
5
5
  = render 'thumbs', gallery: @gallery
6
6
  = render 'wco/photos/multinew', gallery: @gallery
@@ -12,7 +12,8 @@
12
12
  .mini.d-inline-block= button_to 'x', remove_tag_from_path(id: tag.id, resource: resource.class, resource_id: resource.id, ), method: 'delete', data: { confirm: 'Are you sure?' }
13
13
 
14
14
  - if defined? resource
15
- = form_tag add_tag_to_path( resource: resource.class, resource_id: resource.id ) do
16
- = select_tag :id, options_for_select( @tags_list )
17
- = submit_tag '+Tag', data: { confirm: 'Are you sure?' }
15
+ .d-inline-block
16
+ = form_tag add_tag_to_path( resource: resource.class, resource_id: resource.id ) do
17
+ .d-inline-block= select_tag :id, options_for_select( @tags_list ), class: 'select2'
18
+ = submit_tag '+Tag', data: { confirm: 'Are you sure?' }
18
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.142
4
+ version: 3.1.0.143
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev