refinerycms-images 0.9.9.20 → 0.9.9.21
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ module Admin
|
|
20
20
|
def insert
|
21
21
|
self.new if @image.nil?
|
22
22
|
|
23
|
-
@url_override = admin_images_url(:
|
23
|
+
@url_override = admin_images_url(request.query_parameters.merge(:insert => true))
|
24
24
|
|
25
25
|
if params[:conditions].present?
|
26
26
|
extra_condition = params[:conditions].split(',')
|
@@ -71,8 +71,7 @@ module Admin
|
|
71
71
|
@image_id = @image.id if @image.persisted?
|
72
72
|
@image = nil
|
73
73
|
|
74
|
-
|
75
|
-
redirect_to :action => 'insert', :modal => from_dialog?, :wymeditor => from_dialog?, :dialog => from_dialog?
|
74
|
+
redirect_to request.query_parameters.merge(:action => 'insert')
|
76
75
|
else
|
77
76
|
self.insert
|
78
77
|
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
fi:
|
2
|
+
plugins:
|
3
|
+
refinery_images:
|
4
|
+
title: Kuvat
|
5
|
+
description: Hallitse kuvia
|
6
|
+
admin:
|
7
|
+
images:
|
8
|
+
delete: Poista tämä kuva ikuisesti
|
9
|
+
edit: Muokkaa tätä kuvaa
|
10
|
+
form:
|
11
|
+
image: Kuva
|
12
|
+
use_current_image: Käytä nykyistä kuvaa
|
13
|
+
or: tai
|
14
|
+
replace_image: " korvaa se tällä..."
|
15
|
+
current_image: Nykyinen kuva
|
16
|
+
maximum_image_size: Kuvan suurin mahdollinen koko on %{megabytes} megatavua.
|
17
|
+
actions:
|
18
|
+
create_new_image: Lisää uusi kuva
|
19
|
+
records:
|
20
|
+
no_images_yet: Kuvia ei ole vielä lisätty. Paina "Lisää uusi kuva-" nappia lisätäksesi ensimmäisen kuvan.
|
21
|
+
index:
|
22
|
+
view:
|
23
|
+
switch_to: "Siirry %{view_name}näkymään"
|
24
|
+
list: lista
|
25
|
+
grid: ruudukko
|
26
|
+
grid_view:
|
27
|
+
view_live_html: Katsele tätä kuvaa <br/><em>Avautuu uudessa ikkunassa</em>
|
28
|
+
existing_image:
|
29
|
+
button_text: Lisää
|
30
|
+
resize_image: Suurenna tai pienennä kuvaa?
|
31
|
+
size: Koko
|
32
|
+
insert:
|
33
|
+
existing_image: Kirjasto
|
34
|
+
new_image: Lisää
|
35
|
+
activerecord:
|
36
|
+
models:
|
37
|
+
image: image
|
38
|
+
errors:
|
39
|
+
models:
|
40
|
+
image:
|
41
|
+
blank: Sinun pitää lähettää kuva
|
42
|
+
too_long: Kuvan tulee olla pienempi kuin %{count} kooltaan
|
43
|
+
incorrect_format: 'Kuvan pitää olla joko JPG, PNG tai GIF- muodossa'
|
data/lib/refinerycms-images.rb
CHANGED
@@ -14,7 +14,7 @@ module Refinery
|
|
14
14
|
|
15
15
|
class Engine < ::Rails::Engine
|
16
16
|
|
17
|
-
initializer
|
17
|
+
initializer 'serve static assets' do |app|
|
18
18
|
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
|
19
19
|
end
|
20
20
|
|
@@ -58,9 +58,9 @@ module Refinery
|
|
58
58
|
|
59
59
|
config.after_initialize do
|
60
60
|
::Refinery::Plugin.register do |plugin|
|
61
|
-
plugin.name =
|
62
|
-
plugin.directory =
|
63
|
-
plugin.version = %q{0.9.9.
|
61
|
+
plugin.name = 'refinery_images'
|
62
|
+
plugin.directory = 'images'
|
63
|
+
plugin.version = %q{0.9.9.21}
|
64
64
|
plugin.menu_match = /(refinery|admin)\/image(_dialog)?s$/
|
65
65
|
plugin.activity = {
|
66
66
|
:class => Image
|
data/refinerycms-images.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{refinerycms-images}
|
5
|
-
s.version = %q{0.9.9.
|
5
|
+
s.version = %q{0.9.9.21}
|
6
6
|
s.summary = %q{Images engine for Refinery CMS}
|
7
7
|
s.description = %q{Handles all image upload and processing functionality in Refinery CMS.}
|
8
|
-
s.date = %q{2011-
|
8
|
+
s.date = %q{2011-05-03}
|
9
9
|
s.email = %q{info@refinerycms.com}
|
10
10
|
s.homepage = %q{http://refinerycms.com}
|
11
11
|
s.rubyforge_project = %q{refinerycms}
|
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
'config/locales/el.yml',
|
48
48
|
'config/locales/en.yml',
|
49
49
|
'config/locales/es.yml',
|
50
|
+
'config/locales/fi.yml',
|
50
51
|
'config/locales/fr.yml',
|
51
52
|
'config/locales/it.yml',
|
52
53
|
'config/locales/jp.yml',
|
@@ -94,7 +95,7 @@ Gem::Specification.new do |s|
|
|
94
95
|
'spec/uploads/beach.jpeg'
|
95
96
|
]
|
96
97
|
|
97
|
-
s.add_dependency 'refinerycms-core', '= 0.9.9.
|
98
|
+
s.add_dependency 'refinerycms-core', '= 0.9.9.21'
|
98
99
|
s.add_dependency 'dragonfly', '~> 0.8.4'
|
99
100
|
s.add_dependency 'rack-cache', '>= 0.5.3'
|
100
101
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: refinerycms-images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.9.
|
5
|
+
version: 0.9.9.21
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Resolve Digital
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2011-
|
16
|
+
date: 2011-05-03 00:00:00 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: refinerycms-core
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - "="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.9.
|
26
|
+
version: 0.9.9.21
|
27
27
|
type: :runtime
|
28
28
|
version_requirements: *id001
|
29
29
|
- !ruby/object:Gem::Dependency
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- config/locales/el.yml
|
79
79
|
- config/locales/en.yml
|
80
80
|
- config/locales/es.yml
|
81
|
+
- config/locales/fi.yml
|
81
82
|
- config/locales/fr.yml
|
82
83
|
- config/locales/it.yml
|
83
84
|
- config/locales/jp.yml
|