lightbox-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,12 +14,11 @@ module LightboxRails
|
|
14
14
|
: filename
|
15
15
|
|
16
16
|
title = "#{i + 1} of #{images.size}"
|
17
|
-
cls =
|
18
|
-
"single#{i.zero? ? " first" : i == images.size - 1 ? " last" : ""}"
|
17
|
+
cls = "single#{{0 => " first", images.size - 1 => " last"}[i] || ""}"
|
19
18
|
|
20
19
|
content_tag(:div, :class => cls) do
|
21
20
|
content_tag(:a,
|
22
|
-
:
|
21
|
+
rel: "lightbox[#{name.downcase.gsub(" ", "-")}]",
|
23
22
|
href: filename) do
|
24
23
|
image_tag thumbname, alt: title, size: "100x100"
|
25
24
|
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# Lightbox v2.51 by Lokesh Dhakar - http://www.lokeshdhakar.com
|
2
2
|
# For more information, visit: http://lokeshdhakar.com/projects/lightbox2/
|
3
3
|
# Licensed under the Creative Commons Attribution 2.5 License
|
4
|
-
|
4
|
+
|
5
|
+
# Modified by Vinny Diehl
|
5
6
|
|
6
7
|
# Use local alias
|
7
8
|
$ = jQuery
|
@@ -9,8 +10,8 @@ $ = jQuery
|
|
9
10
|
class LightboxOptions
|
10
11
|
constructor: ->
|
11
12
|
# Image resources (next/previous arrows are in the CSS)
|
12
|
-
@fileLoadingImage = '
|
13
|
-
@fileCloseImage = '
|
13
|
+
@fileLoadingImage = '<%= asset_path "lightbox/loading.gif" %>'
|
14
|
+
@fileCloseImage = '<%= asset_path "lightbox/close.png" %>'
|
14
15
|
|
15
16
|
# Transition settings
|
16
17
|
@resizeDuration = 700
|
@@ -85,11 +85,11 @@ $radius: 4px
|
|
85
85
|
|
86
86
|
.lb-prev
|
87
87
|
&:hover
|
88
|
-
background: url(
|
88
|
+
background: url(<%= asset_path "lightbox/prev.png" %>) left 48% no-repeat
|
89
89
|
|
90
90
|
.lb-next
|
91
91
|
&:hover
|
92
|
-
background: url(
|
92
|
+
background: url(<%= asset_path "lightbox/next.png" %>) right 48% no-repeat
|
93
93
|
|
94
94
|
.lb-dataContainer
|
95
95
|
margin: 0 auto
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightbox-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -37,8 +37,8 @@ files:
|
|
37
37
|
- lib/lightbox-rails/version.rb
|
38
38
|
- lib/lightbox-rails/lightbox_helper.rb
|
39
39
|
- lib/lightbox-rails/railtie.rb
|
40
|
-
- vendor/assets/javascripts/lightbox.js.coffee
|
41
|
-
- vendor/assets/stylesheets/lightbox.css.sass
|
40
|
+
- vendor/assets/javascripts/lightbox.js.coffee.erb
|
41
|
+
- vendor/assets/stylesheets/lightbox.css.sass.erb
|
42
42
|
- MIT-LICENSE
|
43
43
|
- Rakefile
|
44
44
|
- README.md
|
@@ -57,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
segments:
|
59
59
|
- 0
|
60
|
-
hash: -
|
60
|
+
hash: -3737850202580449800
|
61
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
segments:
|
68
68
|
- 0
|
69
|
-
hash: -
|
69
|
+
hash: -3737850202580449800
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
72
|
rubygems_version: 1.8.24
|