ish_manager 0.1.8.147 → 0.1.8.148

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ish_manager/application.js +4 -0
  3. data/app/assets/stylesheets/ish_manager/application.css +18 -0
  4. data/app/controllers/ish_manager/galleries_controller.rb +1 -0
  5. data/app/controllers/ish_manager/newsitems_controller.rb +4 -4
  6. data/app/views/ish_manager/galleries/show.haml +17 -6
  7. metadata +2 -43
  8. data/app/controllers/ish_manager/galleries_controller.rb~ +0 -85
  9. data/app/controllers/ish_manager/user_profiles_controller.rb~ +0 -13
  10. data/app/controllers/ish_manager/venues_controller.rb~ +0 -19
  11. data/app/models/ish_manager/ability.rb~ +0 -14
  12. data/app/views/ish_manager/application/#_main_header_admin.haml# +0 -35
  13. data/app/views/ish_manager/application/_main_header.haml~ +0 -6
  14. data/app/views/ish_manager/application/_meta.haml~ +0 -3
  15. data/app/views/ish_manager/events/_index.haml~ +0 -7
  16. data/app/views/ish_manager/features/_index.haml~ +0 -23
  17. data/app/views/ish_manager/galleries/_list.haml~ +0 -23
  18. data/app/views/ish_manager/galleries/_menu_secondary.haml~ +0 -12
  19. data/app/views/ish_manager/galleries/_meta.haml~ +0 -16
  20. data/app/views/ish_manager/galleries/_search.haml~ +0 -7
  21. data/app/views/ish_manager/galleries/_thumbs.haml~ +0 -7
  22. data/app/views/ish_manager/galleries/index.haml~ +0 -19
  23. data/app/views/ish_manager/galleries/show.haml~ +0 -32
  24. data/app/views/ish_manager/kaminari/_first_page.html.erb~ +0 -11
  25. data/app/views/ish_manager/kaminari/_gap.html.erb~ +0 -8
  26. data/app/views/ish_manager/kaminari/_last_page.html.erb~ +0 -11
  27. data/app/views/ish_manager/kaminari/_next_page.html.erb~ +0 -11
  28. data/app/views/ish_manager/kaminari/_page.html.erb~ +0 -12
  29. data/app/views/ish_manager/kaminari/_paginator.html.erb~ +0 -25
  30. data/app/views/ish_manager/kaminari/_prev_page.html.erb~ +0 -11
  31. data/app/views/ish_manager/newsitems/_form.haml~ +0 -5
  32. data/app/views/ish_manager/newsitems/_index.haml~ +0 -10
  33. data/app/views/ish_manager/newsitems/edit.haml~ +0 -14
  34. data/app/views/ish_manager/photos/_multinew.haml~ +0 -10
  35. data/app/views/ish_manager/tags/edit.haml~ +0 -2
  36. data/app/views/ish_manager/user_profiles/edit.haml~ +0 -1
  37. data/app/views/ish_manager/user_profiles/index.haml~ +0 -2
  38. data/app/views/ish_manager/users/_index.haml~ +0 -6
  39. data/app/views/ish_manager/venues/_form.haml~ +0 -7
  40. data/app/views/ish_manager/venues/_index.haml~ +0 -11
  41. data/app/views/ish_manager/venues/edit.haml~ +0 -4
  42. data/app/views/ish_manager/venues/index.haml~ +0 -3
  43. data/app/views/ish_manager/venues/new.haml~ +0 -2
  44. data/app/views/ish_manager/videos/_form.haml~ +0 -48
  45. data/app/views/ish_manager/videos/_preview.haml~ +0 -2
  46. data/app/views/ish_manager/videos/index.haml~ +0 -0
  47. data/app/views/ish_manager/videos/new.haml~ +0 -5
  48. data/app/views/layouts/ish_manager/application.haml~ +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1c730e1aab86d74a29c4b8419f5bbf70265d8fa
4
- data.tar.gz: 95485574fde0bf37e2172af57da9954413b58261
3
+ metadata.gz: 5362b2284f03e9698acaef7778497a74736023c8
4
+ data.tar.gz: 45dff6f81e282bf57807fe3ec5efb7536011a86c
5
5
  SHA512:
6
- metadata.gz: f498919b76801857685cb432d8d31abff3be6793a151da9ca3ffc4d185151eb3a9e20ae3f15f10261ecd914bf2d8500b0cbd86540898125a3223a3a5e912e883
7
- data.tar.gz: b08c12ce74445c1584e167548f927d96141554ddf3f0a22bf4cf0cd983c74c5c4463b5674b6f685def177ed10ef3d0eddc33897c17d43f6f0889b8f3efc3adf0
6
+ metadata.gz: 8e67b029f3bec25556cc8ef6e528c5696988e92378c0d8145aff92d42429b43eed8b5277e306a330f1e977935901a9fe20b253c79499c274157d55ccf5a6f60b
7
+ data.tar.gz: 49ebf0583d5a33a3dcee96958c044993793e281b42ce48710b2a1e23e6e01b05c6a0fab4f8b9bfc18b27a4ece8225185eff5670c4d294f7948b887dbff7815d4
@@ -99,5 +99,9 @@ $(document).ready(function () {
99
99
  "aLengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]]
100
100
  });
101
101
 
102
+ $(".addToggle").on('click', function () {
103
+ $(this).next().toggle(500)
104
+ })
105
+
102
106
  });
103
107
 
@@ -87,6 +87,24 @@ hr {
87
87
  width: 100px;
88
88
  }
89
89
 
90
+ .inline {
91
+ display: inline;
92
+ }
93
+ ul.inline li {
94
+ display: inline;
95
+ }
96
+
97
+ /* R */
98
+ .border-red,
99
+ .red-border {
100
+ border: 1px solid red;
101
+ padding: 1em;
102
+ }
103
+ /* T */
104
+ .addToggle + * {
105
+ display: none;
106
+ }
107
+
90
108
  /**
91
109
  * manager...
92
110
  */
@@ -98,6 +98,7 @@ class IshManager::GalleriesController < IshManager::ApplicationController
98
98
  end
99
99
  authorize! :show, @gallery
100
100
  @photos = @gallery.photos.unscoped.where({ :is_trash => false })
101
+ @deleted_photos = @gallery.photos.unscoped.where({ :is_trash => true })
101
102
  end
102
103
 
103
104
  def destroy
@@ -25,12 +25,12 @@ class IshManager::NewsitemsController < IshManager::ApplicationController
25
25
 
26
26
  def create
27
27
  @newsitem = Newsitem.new params[:newsitem].permit!
28
- @resource = City.find params[:city_id] if params[:city_id]
28
+ @resource = City.find params[:city_id] if params[:city_id]
29
29
  @resource = City.find params[:newsitem][:city_id] if !params[:newsitem][:city_id].blank?
30
- @resource = Site.find params[:site_id] if params[:site_id]
30
+ @resource = Site.find params[:site_id] if params[:site_id]
31
31
  @resource = Site.find params[:newsitem][:site_id] if !params[:newsitem][:site_id].blank?
32
- @resource = Tag.find params[:tag_id] if params[:tag_id]
33
- @resource = Tag.find params[:newsitem][:tag_id] if !params[:newsitem][:tag_id].blank?
32
+ @resource = Tag.find params[:tag_id] if params[:tag_id]
33
+ @resource = Tag.find params[:newsitem][:tag_id] if !params[:newsitem][:tag_id].blank?
34
34
  @resource.newsitems << @newsitem
35
35
 
36
36
  authorize! :create_newsitem, @resource
@@ -1,23 +1,34 @@
1
1
 
2
2
  = render 'title', :gallery => @gallery
3
3
 
4
+ -# deleted
5
+ .row
6
+ %p.addToggle Deleted [<>]
7
+ .a
8
+ %ul.inline
9
+ - @deleted_photos.each do |ph|
10
+ %li.border-red= image_tag ph.photo.url( :mini )
11
+ %hr
12
+
13
+ -# mini
4
14
  .row
5
15
  %ul
6
16
  - @photos.each do |photo|
7
17
  %li.col-xs-1= image_tag photo.photo.url( :mini ), :alt => ''
8
-
9
18
  .spacer{ :style => 'height: 500px' }
10
19
 
20
+ -# thumb
11
21
  .row
12
22
  .a
13
23
  - @photos.each do |photo|
14
24
  .col-xs-4
15
- = button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :confirm => 'Are you sure?'
16
- %br
17
- = image_tag photo.photo.url( :thumb ), :alt => ''
18
-
25
+ .item{ :style => "border: 1px solid red;" }
26
+ = button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
27
+ %br
28
+ = image_tag photo.photo.url( :thumb ), :alt => ''
19
29
  .spacer{ :style => 'height: 100px' }
20
-
30
+
31
+ -# large
21
32
  .center.large-photos
22
33
  - @photos.each do |photo|
23
34
  .item
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.147
4
+ version: 0.1.8.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -161,7 +161,6 @@ files:
161
161
  - app/controllers/ish_manager/features_controller.rb
162
162
  - app/controllers/ish_manager/friends_controller.rb
163
163
  - app/controllers/ish_manager/galleries_controller.rb
164
- - app/controllers/ish_manager/galleries_controller.rb~
165
164
  - app/controllers/ish_manager/invoices_controller.rb
166
165
  - app/controllers/ish_manager/leads_controller.rb
167
166
  - app/controllers/ish_manager/newsitems_controller.rb
@@ -174,31 +173,25 @@ files:
174
173
  - app/controllers/ish_manager/stock_watches_controller.rb
175
174
  - app/controllers/ish_manager/tags_controller.rb
176
175
  - app/controllers/ish_manager/user_profiles_controller.rb
177
- - app/controllers/ish_manager/user_profiles_controller.rb~
178
176
  - app/controllers/ish_manager/users_controller.rb
179
177
  - app/controllers/ish_manager/venues_controller.rb
180
- - app/controllers/ish_manager/venues_controller.rb~
181
178
  - app/controllers/ish_manager/videos_controller.rb
182
179
  - app/helpers/ish_manager/application_helper.rb
183
180
  - app/helpers/ish_manager/images_helper.rb
184
181
  - app/jobs/ish_manager/application_job.rb
185
182
  - app/mailers/ish_manager/application_mailer.rb
186
183
  - app/models/ish_manager/ability.rb
187
- - app/models/ish_manager/ability.rb~
188
184
  - app/models/ish_manager/application_record.rb
189
185
  - app/views/ish_manager/ally/home.haml
190
- - app/views/ish_manager/application/#_main_header_admin.haml#
191
186
  - app/views/ish_manager/application/_analytics.html
192
187
  - app/views/ish_manager/application/_form_errors.haml
193
188
  - app/views/ish_manager/application/_main_footer.haml
194
189
  - app/views/ish_manager/application/_main_header.haml
195
- - app/views/ish_manager/application/_main_header.haml~
196
190
  - app/views/ish_manager/application/_main_header_.haml
197
191
  - app/views/ish_manager/application/_main_header_admin.haml
198
192
  - app/views/ish_manager/application/_main_header_guy.haml
199
193
  - app/views/ish_manager/application/_main_header_manager.html
200
194
  - app/views/ish_manager/application/_meta.haml
201
- - app/views/ish_manager/application/_meta.haml~
202
195
  - app/views/ish_manager/application/_profile_pic.haml
203
196
  - app/views/ish_manager/application/home.haml
204
197
  - app/views/ish_manager/application_mailer/shared_galleries.html.erb
@@ -218,13 +211,11 @@ files:
218
211
  - app/views/ish_manager/co_tailors/home.haml
219
212
  - app/views/ish_manager/events/_form.haml
220
213
  - app/views/ish_manager/events/_index.haml
221
- - app/views/ish_manager/events/_index.haml~
222
214
  - app/views/ish_manager/events/edit.haml
223
215
  - app/views/ish_manager/events/index.haml
224
216
  - app/views/ish_manager/events/new.haml
225
217
  - app/views/ish_manager/features/_form.haml
226
218
  - app/views/ish_manager/features/_index.haml
227
- - app/views/ish_manager/features/_index.haml~
228
219
  - app/views/ish_manager/features/_item.haml
229
220
  - app/views/ish_manager/features/edit.haml
230
221
  - app/views/ish_manager/features/index.haml
@@ -235,20 +226,14 @@ files:
235
226
  - app/views/ish_manager/galleries/_index.haml
236
227
  - app/views/ish_manager/galleries/_index_title.haml
237
228
  - app/views/ish_manager/galleries/_list.haml
238
- - app/views/ish_manager/galleries/_list.haml~
239
229
  - app/views/ish_manager/galleries/_list_short.haml
240
230
  - app/views/ish_manager/galleries/_menu_secondary.haml
241
- - app/views/ish_manager/galleries/_menu_secondary.haml~
242
- - app/views/ish_manager/galleries/_meta.haml~
243
231
  - app/views/ish_manager/galleries/_search.haml
244
- - app/views/ish_manager/galleries/_search.haml~
245
232
  - app/views/ish_manager/galleries/_thumbs.haml
246
- - app/views/ish_manager/galleries/_thumbs.haml~
247
233
  - app/views/ish_manager/galleries/_title.haml
248
234
  - app/views/ish_manager/galleries/all_photos.haml
249
235
  - app/views/ish_manager/galleries/edit.haml
250
236
  - app/views/ish_manager/galleries/index.haml
251
- - app/views/ish_manager/galleries/index.haml~
252
237
  - app/views/ish_manager/galleries/index_ajax.haml
253
238
  - app/views/ish_manager/galleries/index_mini.haml
254
239
  - app/views/ish_manager/galleries/index_short.haml
@@ -257,41 +242,29 @@ files:
257
242
  - app/views/ish_manager/galleries/index_trash.haml
258
243
  - app/views/ish_manager/galleries/new.haml
259
244
  - app/views/ish_manager/galleries/show.haml
260
- - app/views/ish_manager/galleries/show.haml~
261
245
  - app/views/ish_manager/invoices/_form.haml
262
246
  - app/views/ish_manager/invoices/index.haml
263
247
  - app/views/ish_manager/invoices/new.haml
264
248
  - app/views/ish_manager/kaminari/_first_page.html.erb
265
- - app/views/ish_manager/kaminari/_first_page.html.erb~
266
249
  - app/views/ish_manager/kaminari/_gap.html.erb
267
- - app/views/ish_manager/kaminari/_gap.html.erb~
268
250
  - app/views/ish_manager/kaminari/_last_page.html.erb
269
- - app/views/ish_manager/kaminari/_last_page.html.erb~
270
251
  - app/views/ish_manager/kaminari/_next_page.html.erb
271
- - app/views/ish_manager/kaminari/_next_page.html.erb~
272
252
  - app/views/ish_manager/kaminari/_page.html.erb
273
- - app/views/ish_manager/kaminari/_page.html.erb~
274
253
  - app/views/ish_manager/kaminari/_paginator.html.erb
275
- - app/views/ish_manager/kaminari/_paginator.html.erb~
276
254
  - app/views/ish_manager/kaminari/_prev_page.html.erb
277
- - app/views/ish_manager/kaminari/_prev_page.html.erb~
278
255
  - app/views/ish_manager/leads/_form.haml
279
256
  - app/views/ish_manager/leads/edit.haml
280
257
  - app/views/ish_manager/leads/index.haml
281
258
  - app/views/ish_manager/leads/new.haml
282
259
  - app/views/ish_manager/newsitems/_form.haml
283
- - app/views/ish_manager/newsitems/_form.haml~
284
260
  - app/views/ish_manager/newsitems/_index.haml
285
- - app/views/ish_manager/newsitems/_index.haml~
286
261
  - app/views/ish_manager/newsitems/_item.haml
287
262
  - app/views/ish_manager/newsitems/edit.haml
288
- - app/views/ish_manager/newsitems/edit.haml~
289
263
  - app/views/ish_manager/newsitems/index.haml
290
264
  - app/views/ish_manager/newsitems/new.haml
291
265
  - app/views/ish_manager/orders/index.haml
292
266
  - app/views/ish_manager/photos/_meta.haml
293
267
  - app/views/ish_manager/photos/_multinew.haml
294
- - app/views/ish_manager/photos/_multinew.haml~
295
268
  - app/views/ish_manager/photos/show.haml
296
269
  - app/views/ish_manager/photos/without_gallery.haml
297
270
  - app/views/ish_manager/reports/_form.haml
@@ -320,47 +293,33 @@ files:
320
293
  - app/views/ish_manager/tags/_list.haml
321
294
  - app/views/ish_manager/tags/_list_simple.haml
322
295
  - app/views/ish_manager/tags/edit.haml
323
- - app/views/ish_manager/tags/edit.haml~
324
296
  - app/views/ish_manager/tags/index.haml
325
297
  - app/views/ish_manager/tags/new.haml
326
298
  - app/views/ish_manager/tags/show.haml
327
299
  - app/views/ish_manager/user_profiles/_form.haml
328
300
  - app/views/ish_manager/user_profiles/edit.haml
329
- - app/views/ish_manager/user_profiles/edit.haml~
330
301
  - app/views/ish_manager/user_profiles/index.haml
331
- - app/views/ish_manager/user_profiles/index.haml~
332
302
  - app/views/ish_manager/user_profiles/new.haml
333
303
  - app/views/ish_manager/users/_index.haml
334
- - app/views/ish_manager/users/_index.haml~
335
304
  - app/views/ish_manager/venues/_form.haml
336
- - app/views/ish_manager/venues/_form.haml~
337
305
  - app/views/ish_manager/venues/_index.haml
338
- - app/views/ish_manager/venues/_index.haml~
339
306
  - app/views/ish_manager/venues/edit.haml
340
- - app/views/ish_manager/venues/edit.haml~
341
307
  - app/views/ish_manager/venues/index.haml
342
- - app/views/ish_manager/venues/index.haml~
343
308
  - app/views/ish_manager/venues/new.haml
344
- - app/views/ish_manager/venues/new.haml~
345
309
  - app/views/ish_manager/venues/show.haml
346
310
  - app/views/ish_manager/videos/_embed.erb
347
311
  - app/views/ish_manager/videos/_embed_half.erb
348
312
  - app/views/ish_manager/videos/_form.haml
349
- - app/views/ish_manager/videos/_form.haml~
350
313
  - app/views/ish_manager/videos/_index.haml
351
314
  - app/views/ish_manager/videos/_index_title.haml
352
315
  - app/views/ish_manager/videos/_list.haml
353
316
  - app/views/ish_manager/videos/_list_small.haml
354
317
  - app/views/ish_manager/videos/_preview.haml
355
- - app/views/ish_manager/videos/_preview.haml~
356
318
  - app/views/ish_manager/videos/edit.haml
357
319
  - app/views/ish_manager/videos/index.haml
358
- - app/views/ish_manager/videos/index.haml~
359
320
  - app/views/ish_manager/videos/new.haml
360
- - app/views/ish_manager/videos/new.haml~
361
321
  - app/views/ish_manager/videos/show.haml
362
322
  - app/views/layouts/ish_manager/application.haml
363
- - app/views/layouts/ish_manager/application.haml~
364
323
  - app/views/layouts/ish_manager/application_no_materialize.haml
365
324
  - config/mongoid.yml
366
325
  - config/routes.rb
@@ -1,85 +0,0 @@
1
- class IshManager::GalleriesController < IshManager::ApplicationController
2
-
3
- # before_action :set_lists
4
-
5
- def index
6
- authorize! :index, Gallery
7
- @galleries = Gallery.unscoped.where( :is_trash => false ).order_by( :created_at => :desc ).page( params[:galleries_page] ).per( 10 )
8
- end
9
-
10
- def index_thumb
11
- @galleries = Gallery.unscoped.where( :is_trash => false ).order_by( :created_at => :desc ).page( params[:galleries_page] ).per( 10 )
12
- end
13
-
14
- def index_mini
15
- @galleries = Gallery.all
16
- end
17
-
18
- def new
19
- @gallery = Gallery.new
20
- @cities_list = City.list
21
- @tags_list = Tag.list
22
- end
23
-
24
- def create
25
- @gallery = Gallery.new params[:gallery].permit!
26
- @gallery.user = current_user
27
- authorize! :create, @gallery
28
-
29
- if @gallery.save
30
- flash[:notice] = 'Success'
31
- redirect_to manager_galleries_path
32
- else
33
- flash[:error] = 'No Luck. ' + @gallery.errors.inspect
34
- @cities_list = City.list
35
- @tags_list = Tag.list
36
- render :action => 'new'
37
- end
38
- end
39
-
40
- def edit
41
- @gallery = Gallery.unscoped.find params[:id]
42
- end
43
-
44
- def update
45
- @gallery = Gallery.unscoped.find params[:id]
46
- if @gallery.update_attributes( params[:gallery].permit! )
47
- flash[:notice] = 'Success.'
48
- redirect_to manager_galleries_path
49
- else
50
- flash[:error] = 'No Luck. ' + @gallery.errors
51
- render :action => :edit
52
- end
53
- end
54
-
55
- def show
56
- @gallery = Gallery.unscoped.find params[:id]
57
- @photos = @gallery.photos.unscoped.where({ :is_trash => false })
58
- end
59
-
60
- def destroy
61
- @gallery = Gallery.unscoped.find params[:id]
62
- @gallery.is_trash = true
63
- @gallery.save
64
- flash[:notice] = 'Logically deleted gallery.'
65
- redirect_to manager_galleries_title_path
66
- end
67
-
68
- def j_show
69
- @gallery = Gallery.unscoped.find( params[:id] )
70
- authorize! :show, @gallery
71
- respond_to do |format|
72
- format.json do
73
- jjj = {}
74
- jjj[:photos] = @gallery.photos.map do |ph|
75
- { :thumbnail_url => ph.photo.url( :thumb ),
76
- :delete_type => 'DELETE',
77
- :delete_url => photo_path(ph) }
78
- end
79
- render :json => jjj
80
- end
81
- end
82
- end
83
-
84
- end
85
-
@@ -1,13 +0,0 @@
1
-
2
- class IshManager::UsersController < IshManager::ApplicationController
3
-
4
- def index
5
- @users = User.all
6
- end
7
-
8
- def show
9
- @user = User.find params[:id]
10
- end
11
-
12
- end
13
-
@@ -1,19 +0,0 @@
1
-
2
- class IshManager::VenuesController < IshManager::ApplicationController
3
-
4
- def index
5
- authorize! :index, Venue
6
- end
7
-
8
- def create
9
- end
10
-
11
- def edit
12
- end
13
-
14
- def update
15
- end
16
-
17
- end
18
-
19
-
@@ -1,14 +0,0 @@
1
-
2
- class IshManager::Ability
3
- include ::CanCan::Ability
4
-
5
- def initialize user
6
- user ||= User.new
7
-
8
- if user.admin?
9
- can :manage, :all
10
- else
11
- can :read, :all
12
- end
13
- end
14
- end
@@ -1,35 +0,0 @@
1
-
2
- .manager--main-header
3
- .container
4
- .row
5
- .col-sm-12
6
- %i.fa.fa-compress.collapse-expand#collapseHeader
7
- .content
8
- %ul.nav.nav-pills
9
- %li{ :class => params[:controller] == 'ish_manager/cities' ? 'active' : '' }= link_to 'Cities', cities_path
10
- %li{ :class => params[:controller] == 'ish_manager/events' ? 'active' : '' }= link_to 'Events', events_path
11
- %li{ :class => params[:controller] == 'ish_manager/venues' ? 'active' : '' }= link_to 'Venues', venues_path
12
- %li{ :class => params[:controller] == 'ish_manager/user_profiles' ? 'active' : '' }= link_to 'Profiles', user_profiles_path
13
- %li{ :class => params[:controller] == 'ish_manager/friends ' ? 'active' : '' }= link_to 'Friends', friends_path
14
- %ul.nav.nav-pills
15
- %li{ :class => params[:controller] == 'ish_manager/sites' ? 'active' : '' }= link_to 'Sites', sites_path
16
- %li{ :class => params[:controller] == 'ish_manager/galleries' ? 'active' : '' }= link_to 'Galleries', galleries_path
17
- %li{ :class => params[:controller] == 'ish_manager/reports' ? 'active' : '' }= link_to 'Reports', reports_path
18
- %li{ :class => params[:controller] == 'ish_manager/videos' ? 'active' : '' }= link_to 'Videos', videos_path
19
- %li{ :class => params[:controller] == 'ish_manager/tags' ? 'active' : '' }= link_to 'Tags', tags_path
20
- %ul.nav.nav-pills
21
- -# %li{ :class => params[:controller] == 'ish_manager/ally' ? 'active' : '' }= link_to 'Ally', ally_root_path
22
- %li{ :class => params[:controller] == 'ish_manager/stock_actions' ? 'active' : '' }= link_to 'Stock Actions', stock_actions_path
23
- %li{ :class => params[:controller] == 'ish_manager/stock_options' ? 'active' : '' }= link_to 'Stock Options', stock_options_path
24
- %li{ :class => params[:controller] == 'ish_manager/stock_watches' ? 'active' : '' }= link_to 'Stock Watches', stock_watches_path
25
- %ul.nav.nav-pills
26
- %li{ :class => params[:controller] == 'ish_manager/invoices' ? 'active' : '' }= link_to 'Invoices', invoices_path
27
- %li{ :class => params[:controller] == 'ish_manager/payments' ? 'active' : '' }= link_to 'Payments', payments_path
28
- %ul.nav.nav-pills
29
- %li{ :class => params[:controller] == 'ish_manager/leads' ? 'active' : '' }= link_to 'Leads', leads_path
30
- %li{ :class => params[:controller] == 'ish_manager/campaigns' ? 'active' : '' }= link_to 'Campaigns', campaigns_path
31
- %ul.nav.nav-pills
32
- %li{ :class => params[:controller] == 'ish_manager/orders' ? 'active' : '' }= link_to 'Orders', orders_path
33
- %li{ :class => params[:controller] == 'ish_manager/order_items' ? 'active' : '' }= link_to 'Orders', orders_path
34
- %hr
35
-
@@ -1,6 +0,0 @@
1
-
2
- %ul
3
- %li Cities
4
- %li Sites
5
- %hr
6
-
@@ -1,3 +0,0 @@
1
-
2
- .meta
3
-
@@ -1,7 +0,0 @@
1
- .manager-events--index
2
- .a
3
- %h3 Events (#{@city.events.length})
4
- %ul
5
- - @city.events.each do |event|
6
- %li= event.name
7
- %hr
@@ -1,23 +0,0 @@
1
-
2
- - if defined? city
3
- - edit_url = -> (feature ) { edit_manager_city_feature_path( city.id, feature.id ) }
4
- - delete_url = -> (feature ) { manager_city_feature_path( city.id, feature.id ) }
5
- - new_path = new_manager_city_feature_path( city.id )
6
- - if defined? site
7
- - edit_url = -> (feature) { edit_manager_site_feature_path( site.id, feature.id ) }
8
- - delete_url = -> (feature) { manager_site_feature_path( site.id, feature.id ) }
9
- - new_path = new_manager_site_feature_path( site.id )
10
-
11
- .manager-features--index
12
- %h2
13
- Features (#{features.length})
14
- = link_to '[+]', new_path
15
-
16
- -# = paginate features, :param_name => 'features_page'
17
- %ul.large-block-grid-4
18
- - features.each_with_index do |feature, idx|
19
- %li
20
- = link_to '[~]', edit_url.call( feature )
21
- = link_to '[x]', delete_url.call( feature ), :method => :delete, :data => { :confirm => 'Are you sure?' }
22
- .item= render 'manager/features/item', :feature => feature
23
-
@@ -1,23 +0,0 @@
1
-
2
- - n_thumbs ||= 8
3
-
4
- - if galleries.length > 0
5
- .galleries-list
6
- - galleries.each do |g|
7
- .item
8
- %h3
9
- = link_to '[~]', manager_galleries_edit_path( g.galleryname )
10
- = link_to g.name, manager_gallery_path(g.galleryname)
11
- -# = render 'meta', :item => g
12
- - if g.photos.length == 0
13
- = image_missing
14
- - else
15
- - g.photos.each_with_index do |photo, idx|
16
- - break if n_thumbs == idx + 1
17
- = link_to image_tag(photo.photo.url(:thumb), :alt => g.name, :class => :thumb ), manager_gallery_path(g.galleryname)
18
- .c
19
-
20
- = paginate galleries, :param_name => :galleries_page
21
-
22
- - else
23
- %h5 No Galleries
@@ -1,12 +0,0 @@
1
-
2
- .row.menu-secondary
3
- .large-12.columns.tags
4
- Tags
5
- %ul.inline-list
6
- - @tags.each do |tag|
7
- %li
8
- = link_to tag.name, manager_tag_path(tag)
9
- (#{tag.galleries.length})
10
-
11
- .c
12
-
@@ -1,16 +0,0 @@
1
-
2
- .manager-galleries--meta
3
- .row
4
- .large-12.columns
5
- - if gallery.site
6
- Site #{link_to "http://#{gallery.site.domain}/#{gallery.site.lang}", manager_site_path(gallery.site)}
7
- - if gallery.user
8
- User #{link_to gallery.user.username, manager_user_path(gallery.user)}
9
- - if gallery.tag
10
- Tag #{link_to gallery.tag.name, manager_tag_path(gallery.tag)}
11
- - if gallery.city
12
- City #{link_to gallery.city.name, manager_city_path(gallery.city)}
13
- - if gallery.venue
14
- Venue #{link_to gallery.venue.name, manager_venue_path(gallery.venue)}
15
- - if gallery.is_trash
16
- = trash_image_tag
@@ -1,7 +0,0 @@
1
- = form_tag manager_galleries_path, :method => :get, :class => :search do
2
- .field.search_words
3
- .hide [x]
4
- = text_field_tag 'keywords', nil, :placeholder => 'Search'
5
- .actions.hide
6
- = submit_tag 'Search'
7
- .c
@@ -1,7 +0,0 @@
1
-
2
- - #
3
- - # manager / galleries / _thumbs
4
- - #
5
-
6
- - gallery.photos.each do |photo|
7
- = image_tag photo.photo.url( :thumb )
@@ -1,19 +0,0 @@
1
-
2
- - content_for :title do
3
- Manager Galleries Index
4
-
5
- - content_for :menu do
6
- - # nothing
7
-
8
- .row
9
- .large-6.columns
10
- %h3.right
11
- = t('galleries.list')
12
- = link_to '[+]', manager_galleries_new_path
13
- .large-6.columns
14
- = render 'search'
15
-
16
- .row
17
- .large-12.columns
18
- = render 'manager/galleries/menu_secondary'
19
- = render 'manager/galleries/list', :galleries => @galleries
@@ -1,32 +0,0 @@
1
-
2
- .galleries-show
3
- .row
4
- .large-12.columns
5
- .center Gallery
6
- %h2.center
7
- #{@gallery.name} (#{@photos.length})
8
- = link_to '[~]', edit_gallery_path( @gallery )
9
- [x]
10
- .center= @gallery.galleryname
11
- = render 'meta', :gallery => @gallery
12
-
13
- .mini
14
- %ul
15
- - @photos.each do |photo|
16
- %li.item= image_tag photo.photo.url( :mini ), :alt => ''
17
-
18
- .spacer{ :style => 'height: 500px' }
19
-
20
- .thumbs
21
- %ul
22
- - @photos.each do |photo|
23
- %li.item
24
- = link_to '[x]', photo_path( :id => photo.id ), :method => :delete, :confirm => 'Are you sure?'
25
- %br
26
- = image_tag photo.photo.url( :thumb ), :alt => ''
27
-
28
- .large
29
- %ol
30
- - @photos.each do |photo|
31
- %li.item
32
- = image_tag photo.photo.url( :large ), :alt => ''
@@ -1,11 +0,0 @@
1
- <%# Link to the "First" page
2
- - available local variables
3
- url: url to the first page
4
- current_page: a page object for the currently displayed page
5
- total_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="first">
10
- <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote %>
11
- </span>
@@ -1,8 +0,0 @@
1
- <%# Non-link tag that stands for skipped pages...
2
- - available local variables
3
- current_page: a page object for the currently displayed page
4
- total_pages: total number of pages
5
- per_page: number of items to fetch per page
6
- remote: data-remote
7
- -%>
8
- <span class="page gap"><%= t('views.pagination.truncate').html_safe %></span>
@@ -1,11 +0,0 @@
1
- <%# Link to the "Last" page
2
- - available local variables
3
- url: url to the last page
4
- current_page: a page object for the currently displayed page
5
- total_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="last">
10
- <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote %>
11
- </span>
@@ -1,11 +0,0 @@
1
- <%# Link to the "Next" page
2
- - available local variables
3
- url: url to the next page
4
- current_page: a page object for the currently displayed page
5
- total_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="next">
10
- <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, rel: 'next', remote: remote %>
11
- </span>
@@ -1,12 +0,0 @@
1
- <%# Link showing page number
2
- - available local variables
3
- page: a page object for "this" page
4
- url: url to this page
5
- current_page: a page object for the currently displayed page
6
- total_pages: total number of pages
7
- per_page: number of items to fetch per page
8
- remote: data-remote
9
- -%>
10
- <span class="page<%= ' current' if page.current? %>">
11
- <%= link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
12
- </span>
@@ -1,25 +0,0 @@
1
- <%# The container tag
2
- - available local variables
3
- current_page: a page object for the currently displayed page
4
- total_pages: total number of pages
5
- per_page: number of items to fetch per page
6
- remote: data-remote
7
- paginator: the paginator that renders the pagination tags inside
8
- -%>
9
- <%= paginator.render do -%>
10
- <nav class="pagination">
11
- <%= first_page_tag unless current_page.first? %>
12
- <%= prev_page_tag unless current_page.first? %>
13
- <% each_page do |page| -%>
14
- <% if page.display_tag? -%>
15
- <%= page_tag page %>
16
- <% elsif !page.was_truncated? -%>
17
- <%= gap_tag %>
18
- <% end -%>
19
- <% end -%>
20
- <% unless current_page.out_of_range? %>
21
- <%= next_page_tag unless current_page.last? %>
22
- <%= last_page_tag unless current_page.last? %>
23
- <% end %>
24
- </nav>
25
- <% end -%>
@@ -1,11 +0,0 @@
1
- <%# Link to the "Previous" page
2
- - available local variables
3
- url: url to the previous page
4
- current_page: a page object for the currently displayed page
5
- total_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="prev">
10
- <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, rel: 'prev', remote: remote %>
11
- </span>
@@ -1,5 +0,0 @@
1
-
2
- = form_for [ :manager, newsitem ] do |f|
3
- = f.label :name
4
- = f.text_field :name
5
-
@@ -1,10 +0,0 @@
1
-
2
- .row
3
- .small-12.columns
4
- %br
5
- %h2 Newsitems
6
- %ul
7
- - newsitems.each do |n|
8
- %li
9
- = link_to '[~]', edit_manager_site_newsitem_path( @site, n )
10
- = n.name
@@ -1,14 +0,0 @@
1
-
2
- .row
3
- .small-12.columns
4
- %h1 Edit this newsitem
5
- = @newsitem.id
6
- = form_for @newsitem, :url => manager_site_newsitem_path( @site, @newsitem ) do |f|
7
- = f.label :name
8
- = f.text_field :name
9
-
10
- = f.label :descr
11
- = f.text_field :descr
12
-
13
- = f.submit 'Submit'
14
-
@@ -1,10 +0,0 @@
1
-
2
- .photos--multinew
3
- .row
4
- .small-12.columns
5
- %h3.center Add Photos
6
- %ul{ :id => 'photos', :class => 'thumbnails', 'data-json-url' => manager_j_gallery_path( gallery.id ) }
7
- %input{ :id => 'fileupload', :type => 'file', :name => 'photo[photo]',
8
- 'data-photos-path' => manager_photos_multiadd_path( @gallery.galleryname ),
9
- :multiple => '' }
10
-
@@ -1,2 +0,0 @@
1
-
2
- = render :form, :tag => @tag
@@ -1,2 +0,0 @@
1
-
2
- %h1 User Profiles
@@ -1,6 +0,0 @@
1
- .manager-users--index
2
- .a
3
- %h3
4
- People
5
- (#{@city.current_users.length})
6
- %hr
@@ -1,7 +0,0 @@
1
-
2
- = form_for venue do |f|
3
- .a
4
- = f.label :name
5
- = f.text_field :name
6
- .b
7
- = f.submit
@@ -1,11 +0,0 @@
1
- .a
2
- .b
3
- %h3
4
- Venues (#{venues.length})
5
- = link_to '[+]', new_venue_path
6
- %ul
7
- - venues.each do |venue|
8
- %li.clearfix
9
- = link_to '[~]', edit_venue_path( venue )
10
- .float-left= button_to '[x]', venue_path( venue ), :method => 'delete', :html => { :confirm => 'Are you sure?' }
11
- = link_to venue.name, venue_path( venue )
@@ -1,4 +0,0 @@
1
-
2
- edit venue #{@venue.name}
3
-
4
- = render :partial => 'form', :locals => { :venue => @venue }
@@ -1,3 +0,0 @@
1
-
2
- = render :partial => 'venues/index', :locals => { :venues => @venues }
3
-
@@ -1,2 +0,0 @@
1
-
2
- %h1 new venue
@@ -1,48 +0,0 @@
1
-
2
- - url = video.persisted? ? update_video_path( video ) : videos_path
3
- = form_for video, :url => url do |f|
4
-
5
- = render 'application/form_errors', :item => @video
6
-
7
- .field
8
- = f.label :youtube_id
9
- = f.text_field :youtube_id
10
-
11
- .field
12
- = f.label :name
13
- = f.text_field :name
14
-
15
- .field
16
- = f.label :tag_id
17
- = select :video, :tag_id, @tags_list, :selected => params[:tag_id]
18
-
19
- .field
20
- = f.label :city_id
21
- = select :video, :city_id, @cities_list
22
-
23
- -# .field
24
- -# = f.label :descr
25
- -# = f.text_field :descr
26
-
27
- .row
28
- .large-6.columns
29
- = f.label :x
30
- = f.text_field :x
31
- .large-6.columns
32
- = f.label :y
33
- = f.text_field :y
34
-
35
- .row
36
- .small-4.columns
37
- = f.label :is_public
38
- = f.check_box :is_public
39
- .small-4.columns
40
- = f.label :is_trash
41
- = f.check_box :is_trash
42
- .small-4.columns
43
- = f.label :is_feature
44
- = f.check_box :is_feature
45
-
46
-
47
- .action
48
- = f.submit
@@ -1,2 +0,0 @@
1
-
2
- = image_tag "https://img.youtube.com/vi/#{video.youtube_id}/0.jpg", :style => { :width => '100%' }
File without changes
@@ -1,5 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h2= t('videos.new')
5
- = render 'videos/form', :video => @video
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Ish manager</title>
5
- <%= stylesheet_link_tag "ish_manager/application", media: "all" %>
6
- <%= javascript_include_tag "ish_manager/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
- <p class="notice"><%= notice %></p>
11
- <p class="alert"><%= alert %></p>
12
- <%= yield %>
13
- </body>
14
- </html>