Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

first version

  • Loading branch information...
commit 3a406ce89853cea3c19201edb87fd8b15c41116c 1 parent 0b78f99
Kristian Mandrup authored

Showing 156 changed files with 8,339 additions and 34 deletions. Show diff stats Hide diff stats

  1. +1 1  .gitignore
  2. +5 10 Gemfile
  3. +37 0 Gemfile.lock
  4. +126 0 README.md
  5. +0 19 README.rdoc
  6. +1 1  VERSION
  7. +4 0 app/views/gallery/_galleria.html.haml
  8. +30 0 app/views/gallery/_responsive.html.haml
  9. +26 0 app/views/gallery/_slideshow.html.haml
  10. +1 0  lib/rails-gallery.rb
  11. +8 0 lib/rails-gallery/engine.rb
  12. +14 0 lib/rails-gallery/photo_config.rb
  13. +139 0 lib/rails-gallery/photos.rb
  14. +23 0 lib/rails-gallery/view_helper.rb
  15. +7 0 lib/rails-gallery/view_helper/responsive.rb
  16. +7 0 lib/rails-gallery/view_helper/slideshow.rb
  17. +54 0 spec/galleria_snippet.html
  18. +9 0 spec/galleria_snippet.html.haml
  19. +1 0  spec/images/photo_gallery/icons/IconsByGentleface.txt
  20. BIN  spec/images/photo_gallery/icons/grid.png
  21. BIN  spec/images/photo_gallery/icons/loading.gif
  22. BIN  spec/images/photo_gallery/icons/next.png
  23. BIN  spec/images/photo_gallery/icons/next_thumb.png
  24. BIN  spec/images/photo_gallery/icons/pause.png
  25. BIN  spec/images/photo_gallery/icons/play.png
  26. BIN  spec/images/photo_gallery/icons/prev.png
  27. BIN  spec/images/photo_gallery/icons/prev_thumb.png
  28. BIN  spec/images/photo_gallery/icons/up.png
  29. BIN  spec/images/photo_gallery/images/1.jpg
  30. BIN  spec/images/photo_gallery/images/10.jpg
  31. BIN  spec/images/photo_gallery/images/11.jpg
  32. BIN  spec/images/photo_gallery/images/12.jpg
  33. BIN  spec/images/photo_gallery/images/2.jpg
  34. BIN  spec/images/photo_gallery/images/3.jpg
  35. BIN  spec/images/photo_gallery/images/4.jpg
  36. BIN  spec/images/photo_gallery/images/5.jpg
  37. BIN  spec/images/photo_gallery/images/6.jpg
  38. BIN  spec/images/photo_gallery/images/7.jpg
  39. BIN  spec/images/photo_gallery/images/8.jpg
  40. BIN  spec/images/photo_gallery/images/9.jpg
  41. +3 0  spec/images/photo_gallery/images/ImagesByTibchris.txt
  42. BIN  spec/images/photo_gallery/images/thumbs/1.jpg
  43. BIN  spec/images/photo_gallery/images/thumbs/10.jpg
  44. BIN  spec/images/photo_gallery/images/thumbs/11.jpg
  45. BIN  spec/images/photo_gallery/images/thumbs/12.jpg
  46. BIN  spec/images/photo_gallery/images/thumbs/2.jpg
  47. BIN  spec/images/photo_gallery/images/thumbs/3.jpg
  48. BIN  spec/images/photo_gallery/images/thumbs/4.jpg
  49. BIN  spec/images/photo_gallery/images/thumbs/5.jpg
  50. BIN  spec/images/photo_gallery/images/thumbs/6.jpg
  51. BIN  spec/images/photo_gallery/images/thumbs/7.jpg
  52. BIN  spec/images/photo_gallery/images/thumbs/8.jpg
  53. BIN  spec/images/photo_gallery/images/thumbs/9.jpg
  54. BIN  spec/images/property/1.jpg
  55. BIN  spec/images/property/2.jpg
  56. BIN  spec/images/property/3.jpg
  57. BIN  spec/images/property/4.jpg
  58. BIN  spec/images/property/5.jpg
  59. BIN  spec/images/property/6.jpg
  60. BIN  spec/images/property/7.jpg
  61. BIN  spec/images/property/ads/ad1.jpg
  62. BIN  spec/images/property/ads/ad2.jpg
  63. BIN  spec/images/property/ads/ad3.jpg
  64. BIN  spec/images/property/thumbs/1.jpg
  65. BIN  spec/images/property/thumbs/2.jpg
  66. BIN  spec/images/property/thumbs/3.jpg
  67. BIN  spec/images/property/thumbs/4.jpg
  68. BIN  spec/images/property/thumbs/5.jpg
  69. BIN  spec/images/property/thumbs/6.jpg
  70. BIN  spec/images/property/thumbs/7.jpg
  71. BIN  spec/images/responsive-gallery/icons/ajax-loader.gif
  72. BIN  spec/images/responsive-gallery/icons/black.png
  73. BIN  spec/images/responsive-gallery/icons/nav.png
  74. BIN  spec/images/responsive-gallery/icons/nav_thumbs.png
  75. BIN  spec/images/responsive-gallery/icons/pattern.png
  76. BIN  spec/images/responsive-gallery/icons/views.png
  77. BIN  spec/images/responsive-gallery/images/1.jpg
  78. BIN  spec/images/responsive-gallery/images/10.jpg
  79. BIN  spec/images/responsive-gallery/images/11.jpg
  80. BIN  spec/images/responsive-gallery/images/12.jpg
  81. BIN  spec/images/responsive-gallery/images/13.jpg
  82. BIN  spec/images/responsive-gallery/images/14.jpg
  83. BIN  spec/images/responsive-gallery/images/15.jpg
  84. BIN  spec/images/responsive-gallery/images/16.jpg
  85. BIN  spec/images/responsive-gallery/images/17.jpg
  86. BIN  spec/images/responsive-gallery/images/18.jpg
  87. BIN  spec/images/responsive-gallery/images/19.jpg
  88. BIN  spec/images/responsive-gallery/images/2.jpg
  89. BIN  spec/images/responsive-gallery/images/20.jpg
  90. BIN  spec/images/responsive-gallery/images/21.jpg
  91. BIN  spec/images/responsive-gallery/images/22.jpg
  92. BIN  spec/images/responsive-gallery/images/23.jpg
  93. BIN  spec/images/responsive-gallery/images/24.jpg
  94. BIN  spec/images/responsive-gallery/images/3.jpg
  95. BIN  spec/images/responsive-gallery/images/4.jpg
  96. BIN  spec/images/responsive-gallery/images/5.jpg
  97. BIN  spec/images/responsive-gallery/images/6.jpg
  98. BIN  spec/images/responsive-gallery/images/7.jpg
  99. BIN  spec/images/responsive-gallery/images/8.jpg
  100. BIN  spec/images/responsive-gallery/images/9.jpg
  101. BIN  spec/images/responsive-gallery/images/thumbs/1.jpg
  102. BIN  spec/images/responsive-gallery/images/thumbs/10.jpg
  103. BIN  spec/images/responsive-gallery/images/thumbs/11.jpg
  104. BIN  spec/images/responsive-gallery/images/thumbs/12.jpg
  105. BIN  spec/images/responsive-gallery/images/thumbs/13.jpg
  106. BIN  spec/images/responsive-gallery/images/thumbs/14.jpg
  107. BIN  spec/images/responsive-gallery/images/thumbs/15.jpg
  108. BIN  spec/images/responsive-gallery/images/thumbs/16.jpg
  109. BIN  spec/images/responsive-gallery/images/thumbs/17.jpg
  110. BIN  spec/images/responsive-gallery/images/thumbs/18.jpg
  111. BIN  spec/images/responsive-gallery/images/thumbs/19.jpg
  112. BIN  spec/images/responsive-gallery/images/thumbs/2.jpg
  113. BIN  spec/images/responsive-gallery/images/thumbs/20.jpg
  114. BIN  spec/images/responsive-gallery/images/thumbs/21.jpg
  115. BIN  spec/images/responsive-gallery/images/thumbs/22.jpg
  116. BIN  spec/images/responsive-gallery/images/thumbs/23.jpg
  117. BIN  spec/images/responsive-gallery/images/thumbs/24.jpg
  118. BIN  spec/images/responsive-gallery/images/thumbs/3.jpg
  119. BIN  spec/images/responsive-gallery/images/thumbs/4.jpg
  120. BIN  spec/images/responsive-gallery/images/thumbs/5.jpg
  121. BIN  spec/images/responsive-gallery/images/thumbs/6.jpg
  122. BIN  spec/images/responsive-gallery/images/thumbs/7.jpg
  123. BIN  spec/images/responsive-gallery/images/thumbs/8.jpg
  124. BIN  spec/images/responsive-gallery/images/thumbs/9.jpg
  125. +1 1  spec/rails-gallery_spec.rb
  126. +0 2  spec/spec_helper.rb
  127. BIN  vendor/assets/images/gallery/galleria/classic/loader.gif
  128. BIN  vendor/assets/images/gallery/galleria/classic/map.png
  129. BIN  vendor/assets/images/gallery/responsive/icons/ajax-loader.gif
  130. BIN  vendor/assets/images/gallery/responsive/icons/black.png
  131. BIN  vendor/assets/images/gallery/responsive/icons/nav.png
  132. BIN  vendor/assets/images/gallery/responsive/icons/nav_thumbs.png
  133. BIN  vendor/assets/images/gallery/responsive/icons/pattern.png
  134. BIN  vendor/assets/images/gallery/responsive/icons/views.png
  135. BIN  vendor/assets/images/gallery/slideshow/icons/grid.png
  136. BIN  vendor/assets/images/gallery/slideshow/icons/loading.gif
  137. BIN  vendor/assets/images/gallery/slideshow/icons/next.png
  138. BIN  vendor/assets/images/gallery/slideshow/icons/next_thumb.png
  139. BIN  vendor/assets/images/gallery/slideshow/icons/pause.png
  140. BIN  vendor/assets/images/gallery/slideshow/icons/play.png
  141. BIN  vendor/assets/images/gallery/slideshow/icons/prev.png
  142. BIN  vendor/assets/images/gallery/slideshow/icons/prev_thumb.png
  143. BIN  vendor/assets/images/gallery/slideshow/icons/up.png
  144. +5,926 0 vendor/assets/javascripts/gallery/galleria-1.2.8.js
  145. +9 0 vendor/assets/javascripts/gallery/galleria-1.2.8.min.js
  146. +95 0 vendor/assets/javascripts/gallery/galleria/classic.js
  147. +8 0 vendor/assets/javascripts/gallery/galleria/classic.min.js
  148. +261 0 vendor/assets/javascripts/gallery/responsive.js
  149. +308 0 vendor/assets/javascripts/gallery/slideshow.js
  150. +205 0 vendor/assets/javascripts/jquery/jquery.easing-1.3.js
  151. +467 0 vendor/assets/javascripts/jquery/jquery.elastislide.js
  152. +1 0  vendor/assets/javascripts/jquery/jquery.tmpl.min.js
  153. +217 0 vendor/assets/stylesheets/gallery/galleria/classic.css
  154. +105 0 vendor/assets/stylesheets/gallery/responsive.css
  155. +69 0 vendor/assets/stylesheets/gallery/responsive/elastislide.css
  156. +171 0 vendor/assets/stylesheets/gallery/slideshow.css
2  .gitignore
@@ -28,7 +28,7 @@ pkg
28 28 #
29 29 # For MacOS:
30 30 #
31   -#.DS_Store
  31 +.DS_Store
32 32
33 33 # For TextMate
34 34 #*.tmproj
15 Gemfile
... ... @@ -1,14 +1,9 @@
1 1 source "http://rubygems.org"
2   -# Add dependencies required to use your gem here.
3   -# Example:
4   -# gem "activesupport", ">= 2.3.5"
5 2
6   -# Add dependencies to develop your gem here.
7   -# Include everything needed to run rake, tests, features, etc.
8 3 group :development do
9   - gem "rspec", "~> 2.8.0"
10   - gem "rdoc", "~> 3.12"
11   - gem "bundler", "~> 1.0.0"
12   - gem "jeweler", "~> 1.8.4"
13   - gem "rcov", ">= 0"
  4 + gem "rspec", ">= 2.8.0"
  5 + gem "rdoc", ">= 3.12"
  6 + gem "bundler", ">= 1.0.0"
  7 + gem "jeweler", ">= 1.8.4"
  8 + gem "simplecov",">= 0.5"
14 9 end
37 Gemfile.lock
... ... @@ -0,0 +1,37 @@
  1 +GEM
  2 + remote: http://rubygems.org/
  3 + specs:
  4 + diff-lcs (1.1.3)
  5 + git (1.2.5)
  6 + jeweler (1.8.4)
  7 + bundler (~> 1.0)
  8 + git (>= 1.2.5)
  9 + rake
  10 + rdoc
  11 + json (1.7.5)
  12 + multi_json (1.3.6)
  13 + rake (0.9.2.2)
  14 + rdoc (3.12)
  15 + json (~> 1.4)
  16 + rspec (2.11.0)
  17 + rspec-core (~> 2.11.0)
  18 + rspec-expectations (~> 2.11.0)
  19 + rspec-mocks (~> 2.11.0)
  20 + rspec-core (2.11.1)
  21 + rspec-expectations (2.11.2)
  22 + diff-lcs (~> 1.1.3)
  23 + rspec-mocks (2.11.2)
  24 + simplecov (0.6.4)
  25 + multi_json (~> 1.0)
  26 + simplecov-html (~> 0.5.3)
  27 + simplecov-html (0.5.3)
  28 +
  29 +PLATFORMS
  30 + ruby
  31 +
  32 +DEPENDENCIES
  33 + bundler (>= 1.0.0)
  34 + jeweler (>= 1.8.4)
  35 + rdoc (>= 3.12)
  36 + rspec (>= 2.8.0)
  37 + simplecov (>= 0.5)
126 README.md
Source Rendered
... ... @@ -0,0 +1,126 @@
  1 +# Photo Gallery components for Rails
  2 +
  3 +Popular Javascript Photo galleries/carousels ready to use with Rails 3+.
  4 +
  5 +## Usage
  6 +
  7 +`gem 'rails-gallery'
  8 +
  9 +## Galleries included
  10 +
  11 +* slideshow
  12 +* responsive
  13 +* galleria
  14 +
  15 +Please add more ;)
  16 +
  17 +## Configuration
  18 +
  19 +In `application.css` manifest file:
  20 +
  21 +```css
  22 +/*
  23 + * require responsive-gallery
  24 + * require gallery/responsive/elastislide
  25 + * require gallery/responsive/style
  26 + * require gallery/slideshow
  27 + * require gallery/galleria
  28 +*/
  29 +```
  30 +
  31 +Using Compass, f.ex in `application.css.scss.erb`
  32 +
  33 +```
  34 +@import 'gallery/responsive/elastislide';
  35 +@import 'gallery/responsive/style';
  36 +@import 'gallery/slideshow';
  37 +@import 'gallery/galleria';
  38 +```
  39 +
  40 +In `application.js` manifest file:
  41 +
  42 +```javascript
  43 +//= require gallery/responsive
  44 +//= require gallery/slideshow
  45 +//= require gallery/galleria
  46 +
  47 +//= require jquery.easing-1.3
  48 +//= require jquery.elastislide
  49 +//= require jquery.tmpl.min
  50 +```
  51 +
  52 +## Minimalistic Slideshow gallery
  53 +
  54 +See [minimalistic-slideshow-gallery](http://tympanus.net/codrops/2010/07/05/minimalistic-slideshow-gallery/) for more info.
  55 +
  56 +
  57 +### Customization
  58 +
  59 +Pls Fill in here ;)
  60 +
  61 +## Responsive gallery
  62 +
  63 +See [responsive-image-gallery](http://tympanus.net/codrops/2011/09/20/responsive-image-gallery/) for more info.
  64 +
  65 +### Customization
  66 +
  67 +*Remove thumbnails*
  68 +
  69 +Change `mode = 'carousel'` to `'fullview'`
  70 +
  71 +*Remove 'mode' bar*
  72 +
  73 +```css
  74 +.rg-view{
  75 + display: none;
  76 +}
  77 +
  78 +.rg-thumbs {
  79 + padding-top: 10px;
  80 +}
  81 +```
  82 +
  83 +*placement of thumbnails*
  84 +
  85 +To adjust placement of thumbnails, use: `prependTo` or `appendTo` in `gallery/responsive.js`:
  86 +
  87 +``javascript
  88 + _addImageWrapper= function() {
  89 +
  90 + // adds the structure for the large image and the navigation buttons (if total items > 1)
  91 + // also initializes the navigation events
  92 + $('#img-wrapper-tmpl').tmpl( {itemsCount : itemsCount} ).prependTo( $rgGallery )
  93 +```
  94 +
  95 +*Automatic slideshow*
  96 +
  97 +I wanted the same thing and I find a way to do it.
  98 +In the file gallery.js, in the function _initCarousel add these lines after `$esCarousel.elastislide( ‘setCurrent’, current );` (~ line 103):
  99 +
  100 +```javascript
  101 +window.setInterval(function(){
  102 +_navigate( ‘right’ );
  103 +}, 5000);
  104 +```
  105 +
  106 +You just have to change 5000 to the value you want (milliseconds).
  107 +
  108 +## Galleria
  109 +
  110 +See [galleria.io](http://galleria.io) for more info.
  111 +
  112 +## Contributing to rails-gallery
  113 +
  114 +* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  115 +* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  116 +* Fork the project.
  117 +* Start a feature/bugfix branch.
  118 +* Commit and push until you are happy with your contribution.
  119 +* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  120 +* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
  121 +
  122 +## Copyright
  123 +
  124 +Copyright (c) 2012 Kristian Mandrup. See LICENSE.txt for
  125 +further details.
  126 +
19 README.rdoc
Source Rendered
... ... @@ -1,19 +0,0 @@
1   -= rails-gallery
2   -
3   -Description goes here.
4   -
5   -== Contributing to rails-gallery
6   -
7   -* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8   -* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9   -* Fork the project.
10   -* Start a feature/bugfix branch.
11   -* Commit and push until you are happy with your contribution.
12   -* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13   -* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14   -
15   -== Copyright
16   -
17   -Copyright (c) 2012 Kristian Mandrup. See LICENSE.txt for
18   -further details.
19   -
2  VERSION
... ... @@ -1 +1 @@
1   -0.0.0
  1 +0.1.0
4 app/views/gallery/_galleria.html.haml
... ... @@ -0,0 +1,4 @@
30 app/views/gallery/_responsive.html.haml
... ... @@ -0,0 +1,30 @@
26 app/views/gallery/_slideshow.html.haml
... ... @@ -0,0 +1,26 @@
1  lib/rails-gallery.rb
... ... @@ -0,0 +1 @@
8 lib/rails-gallery/engine.rb
... ... @@ -0,0 +1,8 @@
14 lib/rails-gallery/photo_config.rb
... ... @@ -0,0 +1,14 @@
139 lib/rails-gallery/photos.rb
... ... @@ -0,0 +1,139 @@
23 lib/rails-gallery/view_helper.rb
... ... @@ -0,0 +1,23 @@
7 lib/rails-gallery/view_helper/responsive.rb
... ... @@ -0,0 +1,7 @@
7 lib/rails-gallery/view_helper/slideshow.rb
... ... @@ -0,0 +1,7 @@
54 spec/galleria_snippet.html
... ... @@ -0,0 +1,54 @@
  1 +<!-- Adding gallery images. We use resized thumbnails here for better performance, but it’s not necessary -->
  2 +
  3 +<div id="galleria">
  4 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Icebergs_in_the_High_Arctic_-_20050907.jpg/1000px-Icebergs_in_the_High_Arctic_-_20050907.jpg">
  5 + <img data-title="Icebergs in the High Arctic"
  6 + data-description="”The debris loading isn't particularly extensive, but the color is usual.”"
  7 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Icebergs_in_the_High_Arctic_-_20050907.jpg/100px-Icebergs_in_the_High_Arctic_-_20050907.jpg">
  8 + </a>
  9 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg/1000px-Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg">
  10 + <img data-title="Araña"
  11 + data-description="Xysticus cristatus, A Estrada, Galicia, Spain"
  12 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg/100px-Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg">
  13 + </a>
  14 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg/1000px-9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg">
  15 + <img data-title="Museo storia naturale"
  16 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg/100px-9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg">
  17 + </a>
  18 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg/1000px-Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg">
  19 + <img data-title="Grjótagjá caves in summer 2009"
  20 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg/100px-Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg">
  21 + </a>
  22 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/9/90/20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg/1000px-20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg">
  23 + <img data-title="Thermes"
  24 + data-description="Xanthi hot-spa springs, Xanthi Prefecture, Greece"
  25 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/90/20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg/100px-20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg">
  26 + </a>
  27 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/5/58/Polish_Army_Ko%C5%82obrzeg_077.JPG/1024px-Polish_Army_Ko%C5%82obrzeg_077.JPG">
  28 + <img data-title="Polish Army Kołobrzeg"
  29 + data-description="A display of the Polish Army. Both the soldier, and the vehicle belong to the 7th Pomeranian Coastal Defence Brigade, a part of the Szczecin-based 12th Mechanized Division ”Bolesław Krzywousty”"
  30 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/58/Polish_Army_Ko%C5%82obrzeg_077.JPG/100px-Polish_Army_Ko%C5%82obrzeg_077.JPG">
  31 + </a>
  32 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/20100213_Zlatograd_Bulgaria_3.jpg/1024px-20100213_Zlatograd_Bulgaria_3.jpg">
  33 + <img data-title="Zlatograd Bulgaria"
  34 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/20100213_Zlatograd_Bulgaria_3.jpg/100px-20100213_Zlatograd_Bulgaria_3.jpg">
  35 + </a>
  36 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg/1024px-FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg">
  37 + <img data-title="09-28-2001 in New York City"
  38 + data-description="New York, NY, September 28, 2001 -- Debris on surrounding roofs at the site of the World Trade Center. Photo by Andrea Booher/ FEMA News Photo"
  39 + src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg/100px-FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg">
  40 + </a>
  41 + <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Antennae%2C_Hubble_images.jpg/1024px-Antennae%2C_Hubble_images.jpg">
  42 + <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Antennae%2C_Hubble_images.jpg/100px-Antennae%2C_Hubble_images.jpg">
  43 + </a>
  44 +</div>
  45 +
  46 +<script>
  47 +
  48 +// Load the classic theme
  49 +Galleria.loadTheme('gallery/galleria/classic.min.js');
  50 +
  51 +// Initialize Galleria
  52 +Galleria.run('#galleria');
  53 +
  54 +</script>
9 spec/galleria_snippet.html.haml
... ... @@ -0,0 +1,9 @@
  1 +#galleria
  2 + %a{href: "http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/800px-Locomotives-Roundhouse2.jpg"}
  3 + = image_tag "http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/100px-Locomotives-Roundhouse2.jpg", :"data-title" => "Locomotives Roundhouse", :"data-description" => "Steam locomotives of the Chicago &amp; North Western Railway."
  4 +
  5 +// Load the classic theme
  6 +Galleria.loadTheme('gallery/galleria/classic.min.js');
  7 +
  8 +// Initialize Galleria
  9 +Galleria.run('#galleria');
1  spec/images/photo_gallery/icons/IconsByGentleface.txt
... ... @@ -0,0 +1 @@
BIN  spec/images/photo_gallery/icons/grid.png
BIN  spec/images/photo_gallery/icons/loading.gif
BIN  spec/images/photo_gallery/icons/next.png
BIN  spec/images/photo_gallery/icons/next_thumb.png
BIN  spec/images/photo_gallery/icons/pause.png
BIN  spec/images/photo_gallery/icons/play.png
BIN  spec/images/photo_gallery/icons/prev.png
BIN  spec/images/photo_gallery/icons/prev_thumb.png
BIN  spec/images/photo_gallery/icons/up.png
BIN  spec/images/photo_gallery/images/1.jpg
BIN  spec/images/photo_gallery/images/10.jpg
BIN  spec/images/photo_gallery/images/11.jpg
BIN  spec/images/photo_gallery/images/12.jpg
BIN  spec/images/photo_gallery/images/2.jpg
BIN  spec/images/photo_gallery/images/3.jpg
BIN  spec/images/photo_gallery/images/4.jpg
BIN  spec/images/photo_gallery/images/5.jpg
BIN  spec/images/photo_gallery/images/6.jpg
BIN  spec/images/photo_gallery/images/7.jpg
BIN  spec/images/photo_gallery/images/8.jpg
BIN  spec/images/photo_gallery/images/9.jpg
3  spec/images/photo_gallery/images/ImagesByTibchris.txt
... ... @@ -0,0 +1,3 @@
BIN  spec/images/photo_gallery/images/thumbs/1.jpg
BIN  spec/images/photo_gallery/images/thumbs/10.jpg
BIN  spec/images/photo_gallery/images/thumbs/11.jpg
BIN  spec/images/photo_gallery/images/thumbs/12.jpg
BIN  spec/images/photo_gallery/images/thumbs/2.jpg
BIN  spec/images/photo_gallery/images/thumbs/3.jpg
BIN  spec/images/photo_gallery/images/thumbs/4.jpg
BIN  spec/images/photo_gallery/images/thumbs/5.jpg
BIN  spec/images/photo_gallery/images/thumbs/6.jpg
BIN  spec/images/photo_gallery/images/thumbs/7.jpg
BIN  spec/images/photo_gallery/images/thumbs/8.jpg
BIN  spec/images/photo_gallery/images/thumbs/9.jpg
BIN  spec/images/property/1.jpg
BIN  spec/images/property/2.jpg
BIN  spec/images/property/3.jpg
BIN  spec/images/property/4.jpg
BIN  spec/images/property/5.jpg
BIN  spec/images/property/6.jpg
BIN  spec/images/property/7.jpg
BIN  spec/images/property/ads/ad1.jpg
BIN  spec/images/property/ads/ad2.jpg
BIN  spec/images/property/ads/ad3.jpg
BIN  spec/images/property/thumbs/1.jpg
BIN  spec/images/property/thumbs/2.jpg
BIN  spec/images/property/thumbs/3.jpg
BIN  spec/images/property/thumbs/4.jpg
BIN  spec/images/property/thumbs/5.jpg
BIN  spec/images/property/thumbs/6.jpg
BIN  spec/images/property/thumbs/7.jpg
BIN  spec/images/responsive-gallery/icons/ajax-loader.gif
BIN  spec/images/responsive-gallery/icons/black.png
BIN  spec/images/responsive-gallery/icons/nav.png
BIN  spec/images/responsive-gallery/icons/nav_thumbs.png
BIN  spec/images/responsive-gallery/icons/pattern.png
BIN  spec/images/responsive-gallery/icons/views.png
BIN  spec/images/responsive-gallery/images/1.jpg
BIN  spec/images/responsive-gallery/images/10.jpg
BIN  spec/images/responsive-gallery/images/11.jpg
BIN  spec/images/responsive-gallery/images/12.jpg
BIN  spec/images/responsive-gallery/images/13.jpg
BIN  spec/images/responsive-gallery/images/14.jpg
BIN  spec/images/responsive-gallery/images/15.jpg
BIN  spec/images/responsive-gallery/images/16.jpg
BIN  spec/images/responsive-gallery/images/17.jpg
BIN  spec/images/responsive-gallery/images/18.jpg
BIN  spec/images/responsive-gallery/images/19.jpg
BIN  spec/images/responsive-gallery/images/2.jpg
BIN  spec/images/responsive-gallery/images/20.jpg
BIN  spec/images/responsive-gallery/images/21.jpg
BIN  spec/images/responsive-gallery/images/22.jpg
BIN  spec/images/responsive-gallery/images/23.jpg
BIN  spec/images/responsive-gallery/images/24.jpg
BIN  spec/images/responsive-gallery/images/3.jpg
BIN  spec/images/responsive-gallery/images/4.jpg
BIN  spec/images/responsive-gallery/images/5.jpg
BIN  spec/images/responsive-gallery/images/6.jpg
BIN  spec/images/responsive-gallery/images/7.jpg
BIN  spec/images/responsive-gallery/images/8.jpg
BIN  spec/images/responsive-gallery/images/9.jpg
BIN  spec/images/responsive-gallery/images/thumbs/1.jpg
BIN  spec/images/responsive-gallery/images/thumbs/10.jpg
BIN  spec/images/responsive-gallery/images/thumbs/11.jpg
BIN  spec/images/responsive-gallery/images/thumbs/12.jpg
BIN  spec/images/responsive-gallery/images/thumbs/13.jpg
BIN  spec/images/responsive-gallery/images/thumbs/14.jpg
BIN  spec/images/responsive-gallery/images/thumbs/15.jpg
BIN  spec/images/responsive-gallery/images/thumbs/16.jpg
BIN  spec/images/responsive-gallery/images/thumbs/17.jpg
BIN  spec/images/responsive-gallery/images/thumbs/18.jpg
BIN  spec/images/responsive-gallery/images/thumbs/19.jpg
BIN  spec/images/responsive-gallery/images/thumbs/2.jpg
BIN  spec/images/responsive-gallery/images/thumbs/20.jpg
BIN  spec/images/responsive-gallery/images/thumbs/21.jpg
BIN  spec/images/responsive-gallery/images/thumbs/22.jpg
BIN  spec/images/responsive-gallery/images/thumbs/23.jpg
BIN  spec/images/responsive-gallery/images/thumbs/24.jpg
BIN  spec/images/responsive-gallery/images/thumbs/3.jpg
BIN  spec/images/responsive-gallery/images/thumbs/4.jpg
BIN  spec/images/responsive-gallery/images/thumbs/5.jpg
BIN  spec/images/responsive-gallery/images/thumbs/6.jpg
BIN  spec/images/responsive-gallery/images/thumbs/7.jpg
BIN  spec/images/responsive-gallery/images/thumbs/8.jpg
BIN  spec/images/responsive-gallery/images/thumbs/9.jpg
2  spec/rails-gallery_spec.rb
... ... @@ -1,4 +1,4 @@
2  spec/spec_helper.rb
... ... @@ -1,5 +1,3 @@
1   -$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2   -$LOAD_PATH.unshift(File.dirname(__FILE__))
3 1 require 'rspec'
4 2 require 'rails-gallery'
5 3
BIN  vendor/assets/images/gallery/galleria/classic/loader.gif
BIN  vendor/assets/images/gallery/galleria/classic/map.png
BIN  vendor/assets/images/gallery/responsive/icons/ajax-loader.gif
BIN  vendor/assets/images/gallery/responsive/icons/black.png
BIN  vendor/assets/images/gallery/responsive/icons/nav.png
BIN  vendor/assets/images/gallery/responsive/icons/nav_thumbs.png
BIN  vendor/assets/images/gallery/responsive/icons/pattern.png
BIN  vendor/assets/images/gallery/responsive/icons/views.png
BIN  vendor/assets/images/gallery/slideshow/icons/grid.png
BIN  vendor/assets/images/gallery/slideshow/icons/loading.gif
BIN  vendor/assets/images/gallery/slideshow/icons/next.png
BIN  vendor/assets/images/gallery/slideshow/icons/next_thumb.png
BIN  vendor/assets/images/gallery/slideshow/icons/pause.png
BIN  vendor/assets/images/gallery/slideshow/icons/play.png
BIN  vendor/assets/images/gallery/slideshow/icons/prev.png
BIN  vendor/assets/images/gallery/slideshow/icons/prev_thumb.png
BIN  vendor/assets/images/gallery/slideshow/icons/up.png
5,926 vendor/assets/javascripts/gallery/galleria-1.2.8.js
5,926 additions, 0 deletions not shown
9 vendor/assets/javascripts/gallery/galleria-1.2.8.min.js
... ... @@ -0,0 +1,9 @@
95 vendor/assets/javascripts/gallery/galleria/classic.js
... ... @@ -0,0 +1,95 @@
8 vendor/assets/javascripts/gallery/galleria/classic.min.js
... ... @@ -0,0 +1,8 @@
261 vendor/assets/javascripts/gallery/responsive.js
... ... @@ -0,0 +1,261 @@