dust-generators 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/lib/dust/version.rb +1 -1
  2. data/lib/generators/dust/albums/albums_generator.rb +129 -34
  3. data/lib/generators/dust/albums/templates/app/controllers/albums_controller.rb +24 -18
  4. data/lib/generators/dust/albums/templates/app/controllers/photos_controller.rb +37 -40
  5. data/lib/generators/dust/albums/templates/app/controllers/view_albums_controller.rb +6 -7
  6. data/lib/generators/dust/albums/templates/app/helpers/albums_helper.rb +1 -1
  7. data/lib/generators/dust/albums/templates/app/helpers/photos_helper.rb +1 -1
  8. data/lib/generators/dust/albums/templates/app/helpers/view_albums_helper.rb +1 -1
  9. data/lib/generators/dust/albums/templates/app/models/album.rb +8 -4
  10. data/lib/generators/dust/albums/templates/app/models/photo.rb +11 -4
  11. data/lib/generators/dust/albums/templates/app/views/albums/_form.html.erb +48 -18
  12. data/lib/generators/dust/albums/templates/app/views/albums/_search.html.erb +4 -4
  13. data/lib/generators/dust/albums/templates/app/views/albums/_upload_script.html.erb +11 -11
  14. data/lib/generators/dust/albums/templates/app/views/albums/edit.html.erb +3 -3
  15. data/lib/generators/dust/albums/templates/app/views/albums/index.html.erb +23 -23
  16. data/lib/generators/dust/albums/templates/app/views/albums/manage.html.erb +65 -0
  17. data/lib/generators/dust/albums/templates/app/views/albums/new.html.erb +3 -3
  18. data/lib/generators/dust/albums/templates/app/views/albums/show.html.erb +33 -21
  19. data/lib/generators/dust/albums/templates/app/views/albums/show.js.erb +1 -0
  20. data/lib/generators/dust/albums/templates/app/views/photos/_form.html.erb +20 -19
  21. data/lib/generators/dust/albums/templates/app/views/photos/_photo.html.erb +25 -23
  22. data/lib/generators/dust/albums/templates/app/views/photos/_search.html.erb +6 -0
  23. data/lib/generators/dust/albums/templates/app/views/photos/array.js.erb +3 -0
  24. data/lib/generators/dust/albums/templates/app/views/photos/edit.html.erb +6 -6
  25. data/lib/generators/dust/albums/templates/app/views/photos/index.html.erb +28 -23
  26. data/lib/generators/dust/albums/templates/app/views/photos/new.html.erb +4 -4
  27. data/lib/generators/dust/albums/templates/app/views/photos/show.html.erb +9 -9
  28. data/lib/generators/dust/albums/templates/app/views/photos/show.js.erb +2 -2
  29. data/lib/generators/dust/albums/templates/app/views/view_albums/index.html.erb +25 -14
  30. data/lib/generators/dust/albums/templates/app/views/view_albums/show.html.erb +23 -12
  31. data/lib/generators/dust/albums/templates/images/save_position.png +0 -0
  32. data/lib/generators/dust/albums/templates/javascripts/dragsort.js +288 -0
  33. data/lib/generators/dust/albums/templates/javascripts/dust_album.js +28 -0
  34. data/lib/generators/dust/albums/templates/{uploadify → javascripts/uploadify}/jquery.uploadify.v2.1.0.js +0 -0
  35. data/lib/generators/dust/albums/templates/{uploadify → javascripts/uploadify}/swfobject.js +0 -0
  36. data/lib/generators/dust/albums/templates/{uploadify → javascripts/uploadify}/uploadify.swf +0 -0
  37. data/lib/generators/dust/albums/templates/migration/albums_migration.rb +39 -0
  38. data/lib/generators/dust/albums/templates/stylesheets/dust_album.css +16 -0
  39. data/lib/generators/dust/albums/templates/stylesheets/dust_album_app.css +15 -0
  40. data/lib/generators/dust/albums/templates/{uploadify.css → stylesheets/uploadify.css} +1 -1
  41. data/rails_generators/dust_albums/templates/app/controllers/view_albums_controller.rb +1 -1
  42. data/rails_generators/dust_albums/templates/app/views/albums/show.html.erb +1 -1
  43. metadata +17 -12
  44. data/lib/generators/dust/albums/templates/albums_migration.rb +0 -18
  45. data/lib/generators/dust/albums/templates/dust_album.css +0 -11
  46. data/lib/generators/dust/albums/templates/jquery-1.4.2.js +0 -6240
  47. data/lib/generators/dust/albums/templates/photos_migration.rb +0 -20
@@ -1,20 +0,0 @@
1
- class CreatePhotos < ActiveRecord::Migration
2
- def self.up
3
- create_table :photos do |t|
4
- t.string :title
5
- t.text :desc
6
- t.date :date_shot
7
- t.string :location
8
- t.integer :album_id
9
- t.string :file_file_name
10
- t.string :file_content_type
11
- t.integer :file_file_size
12
- t.datetime :file_updated_at
13
- t.timestamps
14
- end
15
- end
16
-
17
- def self.down
18
- drop_table :photos
19
- end
20
- end