refinerycms-page-images 1.0.4 → 2.0.0
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.
- data/.gitignore +2 -0
- data/.travis.yml +16 -0
- data/Gemfile +70 -0
- data/Rakefile +19 -0
- data/{public/javascripts/page-image-picker.js → app/assets/javascripts/refinery/page-image-picker.js.erb} +21 -28
- data/app/assets/stylesheets/refinery/page-image-picker.css.scss +57 -0
- data/app/models/refinery/image_page.rb +13 -0
- data/app/views/refinery/admin/pages/tabs/_images.html.erb +12 -0
- data/app/views/{admin → refinery/admin}/pages/tabs/_images_bar.html.erb +2 -2
- data/app/views/{admin → refinery/admin}/pages/tabs/_images_field.html.erb +7 -6
- data/config/locales/bg.yml +16 -0
- data/config/locales/cs.yml +16 -0
- data/config/locales/de.yml +10 -0
- data/config/locales/en.yml +15 -9
- data/config/locales/fr.yml +16 -0
- data/config/locales/nl.yml +11 -10
- data/config/locales/pt-BR.yml +16 -0
- data/config/locales/ru.yml +11 -0
- data/config/locales/sk.yml +16 -0
- data/db/migrate/20101014230041_create_page_images.rb +5 -11
- data/db/migrate/20101014230042_add_caption_to_image_pages.rb +2 -6
- data/db/migrate/20110511215016_translate_page_image_captions.rb +22 -0
- data/db/migrate/20110527052435_change_page_to_polymorphic.rb +5 -0
- data/lib/generators/refinery/page_images_generator.rb +15 -0
- data/lib/generators/refinery/templates/config/initializers/refinery/page_images.rb.erb +3 -0
- data/lib/refinery/page_images/configuration.rb +9 -0
- data/lib/refinery/page_images/engine.rb +46 -0
- data/lib/refinery/page_images/extension.rb +66 -0
- data/lib/refinery/page_images.rb +22 -0
- data/lib/refinerycms-page-images.rb +1 -54
- data/readme.md +29 -35
- data/refinerycms-page-images.gemspec +17 -0
- data/spec/factories/page-images.rb +9 -0
- data/spec/models/refinery/blog_spec.rb +15 -0
- data/spec/models/refinery/page_spec.rb +69 -0
- data/spec/requests/attach_page_images_spec.rb +29 -0
- data/spec/spec_helper.rb +56 -0
- data/spec/support/database_cleaner.rb +17 -0
- data/spec/support/devise.rb +8 -0
- data/spec/support/refinery.rb +6 -0
- data/tasks/rspec.rake +4 -0
- metadata +84 -21
- data/app/models/image_page.rb +0 -10
- data/app/views/admin/pages/tabs/_images.html.erb +0 -12
- data/features/attach_page_images.feature +0 -17
- data/lib/gemspec.rb +0 -29
- data/lib/generators/refinerycms_page_images_generator.rb +0 -6
- data/public/stylesheets/page-image-picker.css +0 -62
data/lib/gemspec.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
version = '1.0.4'
|
3
|
-
raise "Could not get version so gemspec can not be built" if version.nil?
|
4
|
-
files = (Dir.glob("*") | Dir.glob("**/*")).reject{|f| f =~ %r{.gem(spec)?$}}
|
5
|
-
|
6
|
-
gemspec = <<EOF
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = %q{refinerycms-page-images}
|
9
|
-
s.version = %q{#{version}}
|
10
|
-
s.description = %q{Page Images Engine for Refinery CMS}
|
11
|
-
s.date = %q{#{Time.now.strftime('%Y-%m-%d')}}
|
12
|
-
s.summary = %q{Page Images Engine for Refinery CMS}
|
13
|
-
s.email = %q{dave@resolvedigital.com}
|
14
|
-
s.homepage = %q{http://github.com/resolve/refinerycms-page-images}
|
15
|
-
s.authors = ['Resolve Digital', 'David Jones', 'Philip Arndt']
|
16
|
-
s.require_paths = %w(lib)
|
17
|
-
|
18
|
-
s.add_dependency 'refinerycms-pages', '>= 0.9.9.1'
|
19
|
-
|
20
|
-
s.files = [
|
21
|
-
'#{files.join("',\n '")}'
|
22
|
-
]
|
23
|
-
#{"s.test_files = [
|
24
|
-
'#{Dir.glob("test/**/*.rb").join("',\n '")}'
|
25
|
-
]" if File.directory?("test")}
|
26
|
-
end
|
27
|
-
EOF
|
28
|
-
|
29
|
-
File.open(File.expand_path("../../refinerycms-page-images.gemspec", __FILE__), 'w').puts(gemspec)
|
@@ -1,62 +0,0 @@
|
|
1
|
-
#page_images {
|
2
|
-
margin: 0px;
|
3
|
-
padding: 0px;
|
4
|
-
width: 280px;
|
5
|
-
}
|
6
|
-
#page_images li {
|
7
|
-
position: relative;
|
8
|
-
list-style: none;
|
9
|
-
float: left;
|
10
|
-
margin-bottom: 20px;
|
11
|
-
}
|
12
|
-
#page_images li.odd {
|
13
|
-
margin-right: 18px;
|
14
|
-
}
|
15
|
-
#page_images {
|
16
|
-
width: 100%;
|
17
|
-
}
|
18
|
-
#page_images li {
|
19
|
-
margin-right: 20px;
|
20
|
-
position: relative;
|
21
|
-
margin-bottom: 10px;
|
22
|
-
margin-top: 10px;
|
23
|
-
}
|
24
|
-
#page_images li .image_actions {
|
25
|
-
background: white;
|
26
|
-
position: absolute;
|
27
|
-
padding: 3px;
|
28
|
-
left: 0px;
|
29
|
-
top: 0px;
|
30
|
-
width: 135px;
|
31
|
-
}
|
32
|
-
#page_images li .image_actions.no_captions {
|
33
|
-
background: transparent;
|
34
|
-
}
|
35
|
-
#page_images > li .image_actions img.caption {
|
36
|
-
position: absolute;
|
37
|
-
right: 3px;
|
38
|
-
top: 3px;
|
39
|
-
}
|
40
|
-
#page_images li * {
|
41
|
-
cursor: move;
|
42
|
-
}
|
43
|
-
#page_images li .image_actions * {
|
44
|
-
cursor: pointer;
|
45
|
-
}
|
46
|
-
#content ul.ui-sortable li {
|
47
|
-
border: 0px none;
|
48
|
-
background: none !important;
|
49
|
-
}
|
50
|
-
#content #page_images.ui-sortable li.placeholder {
|
51
|
-
width: 135px;
|
52
|
-
height: 135px;
|
53
|
-
}
|
54
|
-
|
55
|
-
a#add_image_link {
|
56
|
-
margin-top: 0px;
|
57
|
-
line-height: 29px;
|
58
|
-
padding-left: 20px;
|
59
|
-
display: inline;
|
60
|
-
border-bottom: 0px none;
|
61
|
-
background: url('/images/refinery/icons/add.png') no-repeat 0px 6px;
|
62
|
-
}
|