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.
@@ -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.
@@ -6,7 +6,7 @@
6
6
  } %>
7
7
  </li>
8
8
  <li>
9
- <%= link_to t('.new'), new_admin_refinery_setting_url({
9
+ <%= link_to t('.new'), new_admin_refinery_setting_path({
10
10
  :dialog => true,
11
11
  :width => 725,
12
12
  :height => 475
@@ -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.name.titleize %>
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.name.to_s.titleize),
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.name.to_s.titleize) %>
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'>
@@ -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: 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.21}
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-03}
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.21'
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.21
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-03 00:00:00 Z
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.21
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.7.2
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: