refinerycms-resources 0.9.9.20 → 0.9.9.21

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.
@@ -34,7 +34,7 @@ module Admin
34
34
  @resource_id = @resources.detect(&:persisted?).id
35
35
  @resource = nil
36
36
 
37
- redirect_to :action => 'insert', :modal => from_dialog?, :wymeditor => from_dialog?, :dialog => from_dialog?
37
+ redirect_to request.query_parameters.merge(:action => 'insert')
38
38
  else
39
39
  self.insert
40
40
  end
@@ -44,7 +44,7 @@ module Admin
44
44
  def insert
45
45
  self.new if @resource.nil?
46
46
 
47
- @url_override = admin_resources_url(:dialog => from_dialog?, :insert => true)
47
+ @url_override = admin_resources_url(request.query_parameters.merge(:insert => true))
48
48
 
49
49
  if params[:conditions].present?
50
50
  extra_condition = params[:conditions].split(',')
@@ -0,0 +1,35 @@
1
+ fi:
2
+ plugins:
3
+ refinery_files:
4
+ title: Tiedostot
5
+ description: Lisää tiedostoja
6
+ admin:
7
+ resources:
8
+ delete: Poista tämä tiedosto ikuisesti
9
+ edit: Muokkaa tätä tiedostoa
10
+ form:
11
+ download_current: Lataa nykyinen tiedosto
12
+ or: tai
13
+ replace: " vaihda se tähän tiedostoon..."
14
+ maximum_file_size: Suurin mahdollinen tiedostokoko on %{megabytes} megatavua.
15
+ resource:
16
+ download: Lataa tämä tiedosto (%{size})
17
+ actions:
18
+ upload_new: Lisää uusi tiedosto
19
+ records:
20
+ no_files_yet: Tiedostoja ei ole vielä lisätty. Paina "Lisää uusi tiedosto-" painiketta lisätäksesi ensimmäisen tiedoston.
21
+ insert:
22
+ existing: Olemassaoleva tiedosto
23
+ new: Uusi tiedosto
24
+ no_files: Tiedostoja ei ole.
25
+ existing_resource:
26
+ link_to_file: Linkki tähän tiedostoon
27
+ button_text: Lisää
28
+ activerecord:
29
+ models:
30
+ resource: file
31
+ errors:
32
+ models:
33
+ resource:
34
+ blank: Sinun pitää lähettää tiedosto
35
+ too_long: Tiedoston tulee olla pienempi kuin %{count} kooltaan
@@ -14,7 +14,7 @@ module Refinery
14
14
 
15
15
  class Engine < ::Rails::Engine
16
16
 
17
- initializer "serve static assets" do |app|
17
+ initializer 'serve static assets' do |app|
18
18
  app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
19
19
  end
20
20
 
@@ -57,10 +57,10 @@ module Refinery
57
57
 
58
58
  config.after_initialize do
59
59
  ::Refinery::Plugin.register do |plugin|
60
- plugin.name = "refinery_files"
60
+ plugin.name = 'refinery_files'
61
61
  plugin.url = {:controller => '/admin/resources', :action => 'index'}
62
62
  plugin.menu_match = /(refinery|admin)\/(refinery_)?(files|resources)$/
63
- plugin.version = %q{0.9.9.17}
63
+ plugin.version = %q{0.9.9.21}
64
64
  plugin.activity = {
65
65
  :class => Resource
66
66
  }
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-resources}
5
- s.version = %q{0.9.9.20}
5
+ s.version = %q{0.9.9.21}
6
6
  s.summary = %q{Resources engine for Refinery CMS}
7
7
  s.description = %q{Handles all file upload and processing functionality in Refinery CMS.}
8
- s.date = %q{2011-04-28}
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}
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
42
42
  'config/locales/el.yml',
43
43
  'config/locales/en.yml',
44
44
  'config/locales/es.yml',
45
+ 'config/locales/fi.yml',
45
46
  'config/locales/fr.yml',
46
47
  'config/locales/it.yml',
47
48
  'config/locales/jp.yml',
@@ -87,7 +88,7 @@ Gem::Specification.new do |s|
87
88
  'spec/uploads/refinery_is_awesome.txt'
88
89
  ]
89
90
 
90
- s.add_dependency 'refinerycms-core', '= 0.9.9.20'
91
+ s.add_dependency 'refinerycms-core', '= 0.9.9.21'
91
92
  s.add_dependency 'dragonfly', '~> 0.8.4'
92
93
  s.add_dependency 'rack-cache', '>= 0.5.3'
93
94
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-resources
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.20
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-04-28 00:00:00 Z
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.20
26
+ version: 0.9.9.21
27
27
  type: :runtime
28
28
  version_requirements: *id001
29
29
  - !ruby/object:Gem::Dependency
@@ -75,6 +75,7 @@ files:
75
75
  - config/locales/el.yml
76
76
  - config/locales/en.yml
77
77
  - config/locales/es.yml
78
+ - config/locales/fi.yml
78
79
  - config/locales/fr.yml
79
80
  - config/locales/it.yml
80
81
  - config/locales/jp.yml