refinerycms-settings 0.9.9.21 → 0.9.9.22
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/refinery_setting.rb +3 -1
- data/app/views/admin/refinery_settings/_actions.html.erb +1 -1
- data/app/views/admin/refinery_settings/_form.html.erb +2 -2
- data/app/views/admin/refinery_settings/_refinery_setting.html.erb +1 -1
- data/config/locales/fi.yml +1 -1
- data/refinerycms-settings.gemspec +3 -3
- metadata +6 -5
@@ -140,7 +140,9 @@ class RefinerySetting < ActiveRecord::Base
|
|
140
140
|
# prettier version of the name.
|
141
141
|
# site_name becomes Site Name
|
142
142
|
def title
|
143
|
-
name.titleize
|
143
|
+
result = name.to_s.titleize
|
144
|
+
result += ' (' + scoping.titleize + ')' if scoping.is_a?(String)
|
145
|
+
result
|
144
146
|
end
|
145
147
|
|
146
148
|
# form_value is so that on the web interface we can display a sane value.
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<%= f.text_field :name, :class => "larger widest" %>
|
13
13
|
<% else %>
|
14
14
|
<label class='stripped' for='refinery_setting_value'>
|
15
|
-
<%= @refinery_setting.
|
15
|
+
<%= @refinery_setting.title %>
|
16
16
|
</label>
|
17
17
|
<span class="preview">- (<%= @refinery_setting.name %>)</span>
|
18
18
|
<% end %>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
:submit_button_title => t('.restart_may_be_in_order_html'),
|
50
50
|
:delete_title => t('delete', :scope => 'admin.refinery_settings'),
|
51
51
|
:delete_confirmation => t('message', :scope => 'shared.admin.delete',
|
52
|
-
:title => @refinery_setting.
|
52
|
+
:title => @refinery_setting.title),
|
53
53
|
:hide_delete => (!@refinery_setting.persisted? or !@refinery_setting.destroyable or from_dialog?)
|
54
54
|
} %>
|
55
55
|
<% end -%>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<li class='clearfix record <%= cycle("on", "on-hover") %>'>
|
2
2
|
<span class='title'>
|
3
|
-
<%= t(refinery_setting.name, :default => refinery_setting.
|
3
|
+
<%= t(refinery_setting.name, :default => refinery_setting.title) %>
|
4
4
|
<span class="preview">- <%= truncate(refinery_setting.value.to_s, :length => 40) %></span>
|
5
5
|
</span>
|
6
6
|
<span class='actions'>
|
data/config/locales/fi.yml
CHANGED
@@ -39,7 +39,7 @@ fi:
|
|
39
39
|
approximate_ascii: "Pistä tämä asetus päälle, jos käytät merkkejä joissa on aksentteja ja muita erikoismerkkejä sivujen otsikoissa. Se muuntaa merkit kuten ā, č, ž muotoihin a, c, z, jotta nämä merkit eivät näytä oudoilta joittenkin selainten osoitepalkeissa."
|
40
40
|
activerecord:
|
41
41
|
models:
|
42
|
-
refinery_setting:
|
42
|
+
refinery_setting: asetus
|
43
43
|
attributes:
|
44
44
|
refinery_setting:
|
45
45
|
name: Nimi
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{refinerycms-settings}
|
5
|
-
s.version = %q{0.9.9.
|
5
|
+
s.version = %q{0.9.9.22}
|
6
6
|
s.summary = %q{Settings engine for Refinery CMS}
|
7
7
|
s.description = %q{The default settings engine that is required by Refinery CMS core. Adds programmer creatable, user editable settings for each engine.}
|
8
|
-
s.date = %q{2011-05-
|
8
|
+
s.date = %q{2011-05-22}
|
9
9
|
s.email = %q{info@refinerycms.com}
|
10
10
|
s.homepage = %q{http://refinerycms.com}
|
11
11
|
s.rubyforge_project = %q{refinerycms}
|
@@ -84,5 +84,5 @@ Gem::Specification.new do |s|
|
|
84
84
|
'spec/models/refinery_setting_spec.rb'
|
85
85
|
]
|
86
86
|
|
87
|
-
s.add_dependency 'refinerycms-base', '= 0.9.9.
|
87
|
+
s.add_dependency 'refinerycms-base', '= 0.9.9.22'
|
88
88
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: refinerycms-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.9.
|
5
|
+
version: 0.9.9.22
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Resolve Digital
|
@@ -13,7 +13,8 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2011-05-
|
16
|
+
date: 2011-05-22 00:00:00 +12:00
|
17
|
+
default_executable:
|
17
18
|
dependencies:
|
18
19
|
- !ruby/object:Gem::Dependency
|
19
20
|
name: refinerycms-base
|
@@ -23,7 +24,7 @@ dependencies:
|
|
23
24
|
requirements:
|
24
25
|
- - "="
|
25
26
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.9.
|
27
|
+
version: 0.9.9.22
|
27
28
|
type: :runtime
|
28
29
|
version_requirements: *id001
|
29
30
|
description: The default settings engine that is required by Refinery CMS core. Adds programmer creatable, user editable settings for each engine.
|
@@ -83,6 +84,7 @@ files:
|
|
83
84
|
- license.md
|
84
85
|
- refinerycms-settings.gemspec
|
85
86
|
- spec/models/refinery_setting_spec.rb
|
87
|
+
has_rdoc: true
|
86
88
|
homepage: http://refinerycms.com
|
87
89
|
licenses:
|
88
90
|
- MIT
|
@@ -106,10 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
108
|
requirements: []
|
107
109
|
|
108
110
|
rubyforge_project: refinerycms
|
109
|
-
rubygems_version: 1.
|
111
|
+
rubygems_version: 1.6.2
|
110
112
|
signing_key:
|
111
113
|
specification_version: 3
|
112
114
|
summary: Settings engine for Refinery CMS
|
113
115
|
test_files: []
|
114
116
|
|
115
|
-
has_rdoc:
|