ish_manager 0.1.8.150 → 0.1.8.151

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
  SHA1:
3
- metadata.gz: 3479ece9847ed1414578d8f24ca20a59356c6b44
4
- data.tar.gz: f395c798337588c72d1dc4fe63dd7e276547abde
3
+ metadata.gz: 52156b51fdbf09a5c8efac6be9a6de7883c75282
4
+ data.tar.gz: 842c2caaa4d2a8861249804f5b05cdb23b0d4991
5
5
  SHA512:
6
- metadata.gz: 7971deec9afa9ddbfa32a620da0928b193ad77b554e55f6510ed63a71f9cb5110966324a7fd4eb5b09ce722351bc06a54d5d08b363076795ae664f13596f1d07
7
- data.tar.gz: e746f75f1028e3b1c96e3b33173686e2cf3d506d1afca4995c5a168e2240897d2f912029fad9083eb037786ec06a4675c441a1e852df079e4d652f952e96da37
6
+ metadata.gz: 1391e6acf3bf5c639750fe7be668cca44f1627b67e68defa64f6d19804972f2eda7cdbeaaf3ed6c49088a5b090b99de0908f1cfc9247f07e6677e52ac9630fd9
7
+ data.tar.gz: 22f67ed96a9494eccdf12da8695e6c9bced442978b3d18f9c622f03b905d46e68aa47b0dadd66f4845d53d6be8cdea3000403dad7d04aeed3ee94019acb4886e
@@ -94,17 +94,25 @@ ul.inline li {
94
94
  display: inline;
95
95
  }
96
96
 
97
- /* R */
98
97
  .border-red,
99
98
  .red-border {
100
99
  border: 1px solid red;
101
100
  padding: 1em;
102
101
  }
103
- /* T */
102
+
104
103
  .addToggle + * {
105
104
  display: none;
106
105
  }
107
106
 
107
+ .menu-secondary {}
108
+ .menu-secondary li {
109
+ display: inline;
110
+ }
111
+ .menu-secondary li a {
112
+ padding: 1rem;
113
+ background: white;
114
+ }
115
+
108
116
  /**
109
117
  * manager...
110
118
  */
@@ -137,6 +145,7 @@ ul.inline li {
137
145
  nav.pagination
138
146
  */
139
147
 
148
+
140
149
  /**
141
150
  * reports
142
151
  */
@@ -147,6 +156,7 @@ nav.pagination
147
156
  font-size: 1.6em;
148
157
  }
149
158
 
159
+
150
160
  /**
151
161
  * ally, stock watches
152
162
  */
@@ -5,13 +5,19 @@ class IshManager::GalleriesController < IshManager::ApplicationController
5
5
  def index
6
6
  authorize! :index, Gallery
7
7
  @galleries = Gallery.unscoped.where( :is_trash => false, :user_profile => current_user.profile
8
- ).order_by( :created_at => :desc
9
- ) # .page( params[:galleries_page] ).per( 10 )
10
- if params[:q]
11
- @galleries = @galleries.where({ :name => /#{params[:q]}/i })
8
+ ).order_by( :created_at => :desc )
9
+
10
+ if params[:render_type] == Gallery::RENDER_TITLES
11
+ render 'index_titles'
12
+ return
13
+ else
14
+ if params[:q]
15
+ @galleries = @galleries.where({ :name => /#{params[:q]}/i })
16
+ end
17
+ @galleries = @galleries.page( params[:galleries_page] ).per( 20 )
18
+ @shared_galleries = current_user.profile.shared_galleries.unscoped.where( :is_trash => false ).page( params[:shared_galleries_page] ).per( 10 )
12
19
  end
13
20
 
14
- @shared_galleries = current_user.profile.shared_galleries.unscoped.where( :is_trash => false ).page( params[:shared_galleries_page] ).per( 10 )
15
21
  end
16
22
 
17
23
  =begin
@@ -2,16 +2,13 @@
2
2
  - content_for :title do
3
3
  Manager Galleries Index
4
4
 
5
- - content_for :menu do
6
- - # nothing
7
-
8
5
  = render 'ish_manager/sites/header', :site => @site if @site
9
6
 
10
7
  .title
11
8
  .row
12
9
  .col-sm-12.col-md-12
13
10
  %h1.center Galleries
14
- %ul
11
+ %ul.menu-secondary
15
12
  %li= link_to 'titles list', galleries_index_titles_path( :render_type => Gallery::RENDER_THUMBS )
16
13
  %li= link_to 'thumbs list', galleries_index_thumbs_path( :render_type => Gallery::RENDER_TITLES )
17
14
 
@@ -0,0 +1,21 @@
1
+
2
+ .row
3
+ .large-12.columns
4
+ %h1 Titled Galleries
5
+
6
+ %table#dataTable
7
+ %thead
8
+ %tr
9
+ %th Public?
10
+ %th Title
11
+ %th Created At
12
+ %th Actions
13
+ %tbody
14
+ - @galleries.each do |g|
15
+ %tr
16
+ %td= is_public_image_tag( g )
17
+ %td= link_to g.name, gallery_path( g )
18
+ %td= g.created_at.to_s.slice(0, 10)
19
+ %td
20
+ = link_to '[~]', edit_gallery_path( g )
21
+ = link_to '[x]', gallery_path( g ), :method => :delete, :data => { :confirm => 'Are you sure?' }
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.150
4
+ version: 0.1.8.151
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-11 00:00:00.000000000 Z
11
+ date: 2018-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -137,6 +137,8 @@ files:
137
137
  - app/assets/images/bg/triangular.png
138
138
  - app/assets/images/bg/weather.png
139
139
  - app/assets/images/favicon.gif
140
+ - app/assets/images/icons/20x20/private.png
141
+ - app/assets/images/icons/20x20/public2.png
140
142
  - app/assets/images/missing.png
141
143
  - app/assets/images/wait.gif
142
144
  - app/assets/javascripts/ish_manager/application.js
@@ -224,23 +226,23 @@ files:
224
226
  - app/views/ish_manager/features/show.haml
225
227
  - app/views/ish_manager/friends/index.haml
226
228
  - app/views/ish_manager/galleries/_form.haml
227
- - app/views/ish_manager/galleries/_index.haml
228
229
  - app/views/ish_manager/galleries/_index_title.haml
229
230
  - app/views/ish_manager/galleries/_list.haml
230
- - app/views/ish_manager/galleries/_list_short.haml
231
- - app/views/ish_manager/galleries/_menu_secondary.haml
232
231
  - app/views/ish_manager/galleries/_search.haml
233
- - app/views/ish_manager/galleries/_thumbs.haml
234
232
  - app/views/ish_manager/galleries/_title.haml
235
- - app/views/ish_manager/galleries/all_photos.haml
236
233
  - app/views/ish_manager/galleries/edit.haml
237
234
  - app/views/ish_manager/galleries/index.haml
238
235
  - app/views/ish_manager/galleries/index_ajax.haml
239
- - app/views/ish_manager/galleries/index_short.haml
240
- - app/views/ish_manager/galleries/index_thumb.haml
241
- - app/views/ish_manager/galleries/index_title.haml
236
+ - app/views/ish_manager/galleries/index_titles.haml
242
237
  - app/views/ish_manager/galleries/new.haml
243
238
  - app/views/ish_manager/galleries/show.haml
239
+ - app/views/ish_manager/galleries/trash/_index.haml
240
+ - app/views/ish_manager/galleries/trash/_list_short.haml
241
+ - app/views/ish_manager/galleries/trash/_menu_secondary.haml
242
+ - app/views/ish_manager/galleries/trash/_thumbs.haml
243
+ - app/views/ish_manager/galleries/trash/all_photos.haml
244
+ - app/views/ish_manager/galleries/trash/index_short.haml
245
+ - app/views/ish_manager/galleries/trash/index_thumb.haml
244
246
  - app/views/ish_manager/invoices/_form.haml
245
247
  - app/views/ish_manager/invoices/index.haml
246
248
  - app/views/ish_manager/invoices/new.haml
@@ -1,15 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1 Titled Galleries
5
-
6
- %ul
7
- - @galleries.each do |gallery|
8
- %li
9
- %h4= link_to gallery.name, manager_gallery_path(gallery)
10
- %span
11
- = link_to '[~]', edit_manager_gallery_path( gallery )
12
- = link_to '[x]', manager_gallery_path( gallery ), :method => :delete, :data => { :confirm => 'Are you sure?' }
13
- = is_public_image_tag( gallery )
14
- <i>#{gallery.created_at.to_s.slice(0, 10)}</i>
15
-