ish_manager 0.1.3 → 0.1.6

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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -26
  3. data/app/assets/javascripts/ish_manager/application.js +24 -1
  4. data/app/assets/javascripts/ish_manager/jquery-3.2.1.min.js +4 -0
  5. data/app/assets/javascripts/ish_manager/jquery.fileupload.js +1482 -0
  6. data/app/assets/javascripts/ish_manager/jquery.iframe-transport.js +224 -0
  7. data/app/assets/javascripts/ish_manager/jquery.ui.widget.js +572 -0
  8. data/app/assets/stylesheets/ish_manager/application.css +21 -0
  9. data/app/controllers/ish_manager/application_controller.rb +10 -0
  10. data/app/controllers/ish_manager/galleries_controller.rb +14 -7
  11. data/app/controllers/ish_manager/photos_controller.rb +3 -4
  12. data/app/models/ish_manager/ability.rb +23 -5
  13. data/app/views/ish_manager/application/_main_footer.haml +15 -12
  14. data/app/views/ish_manager/application/_main_header.haml +2 -2
  15. data/app/views/ish_manager/galleries/_form.haml +15 -22
  16. data/app/views/ish_manager/galleries/_list.haml +1 -1
  17. data/app/views/ish_manager/galleries/_meta.haml +1 -4
  18. data/app/views/ish_manager/galleries/_thumbs.haml +7 -6
  19. data/app/views/ish_manager/galleries/_title.haml +9 -16
  20. data/app/views/ish_manager/galleries/edit.haml +4 -10
  21. data/app/views/ish_manager/galleries/index.haml +4 -4
  22. data/app/views/ish_manager/galleries/new.haml +1 -1
  23. data/app/views/ish_manager/galleries/show.haml +1 -10
  24. data/app/views/ish_manager/photos/_multinew.haml +2 -18
  25. data/app/views/layouts/ish_manager/application.haml +9 -5
  26. data/config/routes.rb +3 -1
  27. data/lib/ish_manager/engine.rb +11 -0
  28. data/lib/ish_manager/version.rb +1 -1
  29. metadata +6 -3
  30. data/app/views/ish_manager/galleries/#_thumbs.haml# +0 -5
data/config/routes.rb CHANGED
@@ -5,7 +5,9 @@ IshManager::Engine.routes.draw do
5
5
  resources :features
6
6
  end
7
7
  resources :events
8
- resources :galleries
8
+ resources :galleries do
9
+ post 'multiadd', :to => 'photos#j_create', :as => :multiadd
10
+ end
9
11
  resources :newsitems
10
12
  resources :reports
11
13
  resources :photos
@@ -1,5 +1,16 @@
1
1
  module IshManager
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace IshManager
4
+
5
+ =begin
6
+ initializer :assets do |config|
7
+ # Rails.application.config.assets.precompile += %w{ ish_manager/application.js ish_manager/application.css application.js application.css }
8
+ # Rails.application.config.assets.paths << root.join("ish_manager", "app", "assets", "images")
9
+ end
10
+ =end
11
+
12
+ initializer "ish_manager.assets.precompile" do |app|
13
+ app.config.assets.precompile += %w( ish_manager/application.js ish_manager/application.css )
14
+ end
4
15
  end
5
16
  end
@@ -1,3 +1,3 @@
1
1
  module IshManager
2
- VERSION = '0.1.3'
2
+ VERSION = File.read("VERSION")
3
3
  end
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.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -124,6 +124,10 @@ files:
124
124
  - app/assets/images/wait.gif
125
125
  - app/assets/javascripts/ish_manager/application.js
126
126
  - app/assets/javascripts/ish_manager/bootstrap.min.js
127
+ - app/assets/javascripts/ish_manager/jquery-3.2.1.min.js
128
+ - app/assets/javascripts/ish_manager/jquery.fileupload.js
129
+ - app/assets/javascripts/ish_manager/jquery.iframe-transport.js
130
+ - app/assets/javascripts/ish_manager/jquery.ui.widget.js
127
131
  - app/assets/stylesheets/ish_manager/application.css
128
132
  - app/assets/stylesheets/ish_manager/bootstrap.min.css
129
133
  - app/assets/stylesheets/ish_manager/bootstrap.min.css.map
@@ -164,7 +168,6 @@ files:
164
168
  - app/views/ish_manager/features/index.haml
165
169
  - app/views/ish_manager/features/new.haml
166
170
  - app/views/ish_manager/features/show.haml
167
- - app/views/ish_manager/galleries/#_thumbs.haml#
168
171
  - app/views/ish_manager/galleries/_form.haml
169
172
  - app/views/ish_manager/galleries/_index.haml
170
173
  - app/views/ish_manager/galleries/_list.haml
@@ -1,5 +0,0 @@
1
-
2
- .manager-galleries--thumbs
3
- %ul
4
- - gallery.photos.each do |photo|
5
- %li= image_tag photo.photo