refinerycms-settings 0.9.9.7 → 0.9.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ <ul>
2
+ <li>
3
+ <%= render :partial => "/shared/admin/search",
4
+ :locals => {
5
+ :url => admin_refinery_settings_url
6
+ } %>
7
+ </li>
8
+ <li>
9
+ <%= link_to t('.new'), new_admin_refinery_setting_url({
10
+ :dialog => true,
11
+ :width => 725,
12
+ :height => 475
13
+ }), :class => "add_icon" %>
14
+ </li>
15
+ </ul>
@@ -0,0 +1,21 @@
1
+ <% if searching? %>
2
+ <h2>
3
+ <%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>
4
+ </h2>
5
+ <% end %>
6
+ <% if @refinery_settings.any? %>
7
+ <div class='pagination_container'>
8
+ <%= render :partial => 'refinery_settings' %>
9
+ </div>
10
+ <% else %>
11
+ <p>
12
+ <% if searching? %>
13
+ <%= t('no_results', :scope => 'shared.admin.search') %>
14
+ <% else %>
15
+ <strong>
16
+ <%= t('.empty_set') %>
17
+ <%= t('.create_first', :link => t('new', :scope => 'admin.refinery_settings.actions')) %>
18
+ </strong>
19
+ <% end %>
20
+ </p>
21
+ <% end %>
@@ -1,42 +1,8 @@
1
1
  <div id='records'>
2
- <% if searching? %>
3
- <h2>
4
- <%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %>
5
- </h2>
6
- <% end %>
7
- <% if @refinery_settings.any? %>
8
- <div class='pagination_container'>
9
- <%= render :partial => 'refinery_settings' %>
10
- </div>
11
- <% else %>
12
- <p>
13
- <% if searching? %>
14
- <%= t('no_results', :scope => 'shared.admin.search') %>
15
- <% else %>
16
- <strong>
17
- <%= t('.empty_set') %>
18
- <%= t('.create_first', :link => t('.new')) %>
19
- </strong>
20
- <% end %>
21
- </p>
22
- <% end %>
2
+ <%= render :partial => 'records' %>
23
3
  </div>
24
4
  <div id='actions'>
25
- <ul>
26
- <li>
27
- <%= render :partial => "/shared/admin/search",
28
- :locals => {
29
- :url => admin_refinery_settings_url
30
- } %>
31
- </li>
32
- <li>
33
- <%= link_to t('.new'), new_admin_refinery_setting_url({
34
- :dialog => true,
35
- :width => 725,
36
- :height => 475
37
- }), :class => "add_icon" %>
38
- </li>
39
- </ul>
5
+ <%= render :partial => 'actions' %>
40
6
  </div>
41
7
  <% content_for :javascripts do %>
42
8
  <script>
@@ -7,8 +7,9 @@ cs:
7
7
  refinery_settings:
8
8
  delete: Smazat tuto volbu
9
9
  edit: Upravit tuto volbu
10
- index:
10
+ actions:
11
11
  new: Přidat novou volbu
12
+ records:
12
13
  empty_set: Zatím zde nejsou žádné nastavení.
13
14
  create_first: "Klikněte '%{link}' pro přidání první volby."
14
15
  form:
@@ -7,8 +7,9 @@ da:
7
7
  refinery_settings:
8
8
  delete: Slet indstilling
9
9
  edit: Redigér indstilling
10
- index:
10
+ actions:
11
11
  new: Tilføj en ny indstilling
12
+ records:
12
13
  empty_set: Der er ingen indstillinger endnu.
13
14
  create_first: "Klik '%{link}' for at oprette den første indstilling."
14
15
  form:
@@ -7,8 +7,9 @@ de:
7
7
  refinery_settings:
8
8
  delete: Diese Einstellung für immer löschen
9
9
  edit: Diese Einstellung bearbeiten
10
- index:
10
+ actions:
11
11
  new: Neue Einstellung erstellen
12
+ records:
12
13
  empty_set: Es gibt noch keine Einstellungen.
13
14
  create_first: Klicken Sie auf '%{link}', um Ihre erste Einstellung anzulegen.
14
15
  form:
@@ -7,8 +7,9 @@ el:
7
7
  refinery_settings:
8
8
  delete: Διαγραφή ρυθμίσης
9
9
  edit: Επεξεργασία ρύθμισης
10
- index:
10
+ actions:
11
11
  new: Προσθήκη ρύθμισης
12
+ records:
12
13
  empty_set: Δεν υπάρχουν ρυθμίσεις.
13
14
  create_first: "Κάντε κλίκ εδώ '%{link}' για να προσθέσετε την πρώτη σας ρύθμιση."
14
15
  form:
@@ -7,8 +7,9 @@ en:
7
7
  refinery_settings:
8
8
  delete: Remove this setting forever
9
9
  edit: Edit this setting
10
- index:
10
+ actions:
11
11
  new: Add new setting
12
+ records:
12
13
  empty_set: There are no settings yet.
13
14
  create_first: "Click '%{link}' to add your first setting."
14
15
  form:
@@ -35,7 +36,7 @@ en:
35
36
  use_google_ajax_libraries: If you want to use Google's AJAX CDN then set this to true.
36
37
  use_marketable_urls: Change urls from /pages/about to /about and automatically manage conflicts with other plugins.
37
38
  use_resource_caching: Recommended to enable this in production mode as it bundles javascript assets and stylesheet assets into single file packages to reduce the number of web requests on your site and speed it up.
38
- approximate_ascii: Set this to true if you use Latin characters with accents and other diacritics in page titles. It'll convert characters like ā, č, ž into a, c, z and this way those characters won't appear strangely in the address bar of some web browsers.
39
+ approximate_ascii: "Set this to true if you use Latin characters with accents and other diacritics in page titles. It'll convert characters like ā, č, ž into a, c, z and this way those characters won't appear strangely in the address bar of some web browsers."
39
40
  activerecord:
40
41
  models:
41
42
  refinery_setting: setting
@@ -8,8 +8,9 @@ es:
8
8
  refinery_settings:
9
9
  delete: Eliminar esta opción para siempre
10
10
  edit: Editar esta opción
11
- index:
11
+ actions:
12
12
  new: Crear nueva opción
13
+ records:
13
14
  empty_set: Aún no hay opciones
14
15
  create_first: "Haz click en '%{link}' para añadir tu primera opción."
15
16
  form:
@@ -7,8 +7,9 @@ fr:
7
7
  refinery_settings:
8
8
  delete: Supprimer définitivement ce paramètre
9
9
  edit: Modifier ce paramètre
10
- index:
10
+ actions:
11
11
  new: Créer un nouveau paramètre
12
+ records:
12
13
  empty_set: Il n'y a encore aucun paramètre.
13
14
  create_first: Cliquer sur '%{link}' afin d'ajouter votre premier paramètre.
14
15
  form:
@@ -7,8 +7,9 @@ it:
7
7
  refinery_settings:
8
8
  delete: Elimina questa impostazione
9
9
  edit: Modifica questa impostazione
10
- index:
10
+ actions:
11
11
  new: Aggiungi una nuova impostazione
12
+ records:
12
13
  empty_set: Nessuna impostazione ancora presente.
13
14
  create_first: Clicca '%{link}' per aggiungere la tua prima impostazione.
14
15
  form:
@@ -7,8 +7,9 @@ lolcat:
7
7
  refinery_settings:
8
8
  delete: REMOOV DIS SETTIN FOREVR
9
9
  edit: EDIT DIS SETTIN
10
- index:
10
+ actions:
11
11
  new: ADD NEW SETTIN
12
+ records:
12
13
  empty_set: THAR R NO SETTINGS YET.
13
14
  create_first: CLICK %{link} 2 ADD UR FURST SETTIN.
14
15
  form:
@@ -7,8 +7,9 @@ lt:
7
7
  refinery_settings:
8
8
  delete: Visiškai pašalinti šį nustatymą
9
9
  edit: Redaguoti šį nustatymą
10
- index:
10
+ actions:
11
11
  new: Pridėti naują nustatymą
12
+ records:
12
13
  empty_set: Kol kas nėra nustatymų.
13
14
  create_first: "Paspauskite '%{link}' norėdami pridėti pirmąjį nustatymą."
14
15
  form:
@@ -7,8 +7,9 @@ lv:
7
7
  refinery_settings:
8
8
  delete: Dzēst šo uzstādījumu
9
9
  edit: Labot šo uzstādījumu
10
- index:
10
+ actions:
11
11
  new: Izveidot jaunu uzstādījumu
12
+ records:
12
13
  empty_set: Vēl nav neviena uzstādījuma.
13
14
  create_first: Spied uz '%{link}', lai pievienotu pirmo uzstādījumu.
14
15
  form:
@@ -7,8 +7,9 @@ nb:
7
7
  refinery_settings:
8
8
  delete: Fjern denne innstillingen permanent
9
9
  edit: Rediger denne innstillingen
10
- index:
10
+ actions:
11
11
  new: Opprett en ny innstilling
12
+ records:
12
13
  empty_set: Det er ingen innstillinger enda.
13
14
  create_first: "Klikk '%{link}' for å legge til din første innstilling."
14
15
  form:
@@ -7,8 +7,9 @@ nl:
7
7
  refinery_settings:
8
8
  delete: Verwijder deze instelling voorgoed
9
9
  edit: Bewerk deze instelling
10
- index:
10
+ actions:
11
11
  new: Maak een nieuwe instelling aan
12
+ records:
12
13
  empty_set: Er zijn nog geen instellingen aangemaakt
13
14
  create_first: "Klik '%{link}' om je eerste instelling aan te maken."
14
15
  form:
@@ -8,8 +8,9 @@ pl:
8
8
  refinery_settings:
9
9
  delete: Na zawsze usuń to ustawienie
10
10
  edit: Zmień to ustawienie
11
- index:
11
+ actions:
12
12
  new: Dodaj nowe ustawienie
13
+ records:
13
14
  empty_set: Nie ma jeszcze żadnych ustawień.
14
15
  create_first: "Kliknij '%{link}' aby dodać pierwsze ustawienie."
15
16
  form:
@@ -7,8 +7,9 @@ pt-BR:
7
7
  refinery_settings:
8
8
  delete: 'Remover esta configuração para sempre'
9
9
  edit: 'Editar esta configuração'
10
- index:
10
+ actions:
11
11
  new: Criar nova configuração
12
+ records:
12
13
  empty_set: Ainda não há configurações.
13
14
  create_first: "Clique em '%{link}' para adicionar sua primeira configuração."
14
15
  form:
@@ -7,8 +7,9 @@ rs:
7
7
  refinery_settings:
8
8
  delete: Ukloni ovo podešavanje zauvek
9
9
  edit: Izmeni ovo podešavanje
10
- index:
10
+ actions:
11
11
  new: Dodaj novo podešavanje
12
+ records:
12
13
  empty_set: Ne postoji ni jedno podešavanje
13
14
  create_first: "Klikni '%{link}' da dodaš podešavanja."
14
15
  form:
@@ -7,8 +7,9 @@ ru:
7
7
  refinery_settings:
8
8
  delete: Удалить этот параметр навсегда
9
9
  edit: Редактировать параметр
10
- index:
10
+ actions:
11
11
  new: Создать новый параметр
12
+ records:
12
13
  empty_set: Параметров пока что нет.
13
14
  create_first: "Нажмите «%{link}», чтобы добавить первый параметр."
14
15
  form:
@@ -7,8 +7,9 @@ sk:
7
7
  refinery_settings:
8
8
  delete: Zmazať voľbu
9
9
  edit: Upraviť voľbu
10
- index:
10
+ actions:
11
11
  new: Pridať novú voľbu
12
+ records:
12
13
  empty_set: Zatiaľ tu nie sú žiadne nastavenia.
13
14
  create_first: "Kliknite '%{link}' pre pridanie prvej voľby."
14
15
  form:
@@ -10,8 +10,9 @@ sl:
10
10
  refinery_settings:
11
11
  delete: Odstrani nastavitev
12
12
  edit: Uredi nastavitev
13
- index:
13
+ actions:
14
14
  new: Dodaj novo nastavitev
15
+ records:
15
16
  empty_set: Tretnutno ni nobene nastavitve.
16
17
  create_first: "Kliknite '%{link}' da boste dodali vašo prvo nastavitev."
17
18
  form:
@@ -7,8 +7,9 @@ sv:
7
7
  refinery_settings:
8
8
  delete: Ta bort den här inställningen för alltid
9
9
  edit: Redigera den här inställningen
10
- index:
10
+ actions:
11
11
  new: Lägg till ny inställning
12
+ records:
12
13
  empty_set: Det finns inga inställningar ännu.
13
14
  create_first: "Klicka '%{link}' för att lägga till din första inställning."
14
15
  form:
@@ -7,8 +7,9 @@ vi:
7
7
  refinery_settings:
8
8
  delete: Xóa thiết lập này vĩnh viễn
9
9
  edit: Chỉnh sửa thiết lập này
10
- index:
10
+ actions:
11
11
  new: Thêm thiết lập mới
12
+ records:
12
13
  empty_set: Chưa có thiết lập nào cả.
13
14
  create_first: "Bấm vào đây '%{link}' để thêm thiết lập đầu tiên của bạn."
14
15
  form:
@@ -7,8 +7,9 @@ zh-CN:
7
7
  refinery_settings:
8
8
  delete: 永久删除此设置
9
9
  edit: 编辑此设置
10
- index:
10
+ actions:
11
11
  new: 添加新设置
12
+ records:
12
13
  empty_set: 这里还没有任何设置.
13
14
  create_first: "点击 '%{link}' 去添加您的第一个设置."
14
15
  form:
@@ -7,8 +7,9 @@ zh-TW:
7
7
  refinery_settings:
8
8
  delete: 永遠地移除這項設定值
9
9
  edit: 編輯這項設定值
10
- index:
10
+ actions:
11
11
  new: 增加新設定值
12
+ records:
12
13
  empty_set: 目前沒有任何設定值.
13
14
  create_first: "請按這兒 '%{link}' 加入您的第一個設定值."
14
15
  form:
@@ -11,6 +11,11 @@ module Refinery
11
11
  end
12
12
 
13
13
  class Engine < ::Rails::Engine
14
+
15
+ initializer "serve static assets" do |app|
16
+ app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
17
+ end
18
+
14
19
  config.after_initialize do
15
20
  ::Refinery::Plugin.register do |plugin|
16
21
  plugin.name = "refinery_settings"
@@ -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.7}
5
+ s.version = %q{0.9.9.8}
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-03-10}
8
+ s.date = %q{2011-03-11}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -26,7 +26,9 @@ Gem::Specification.new do |s|
26
26
  'app/views',
27
27
  'app/views/admin',
28
28
  'app/views/admin/refinery_settings',
29
+ 'app/views/admin/refinery_settings/_actions.html.erb',
29
30
  'app/views/admin/refinery_settings/_form.html.erb',
31
+ 'app/views/admin/refinery_settings/_records.html.erb',
30
32
  'app/views/admin/refinery_settings/_refinery_setting.html.erb',
31
33
  'app/views/admin/refinery_settings/_refinery_settings.html.erb',
32
34
  'app/views/admin/refinery_settings/edit.html.erb',
@@ -80,5 +82,5 @@ Gem::Specification.new do |s|
80
82
  'spec/models/refinery_setting_spec.rb'
81
83
  ]
82
84
 
83
- s.add_dependency 'refinerycms-base', '~> 0.9.9.7'
85
+ s.add_dependency 'refinerycms-base', '~> 0.9.9.8'
84
86
  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.7
5
+ version: 0.9.9.8
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-03-10 00:00:00 +13:00
16
+ date: 2011-03-11 00:00:00 +13:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 0.9.9.7
27
+ version: 0.9.9.8
28
28
  type: :runtime
29
29
  version_requirements: *id001
30
30
  description: The default settings engine that is required by Refinery CMS core. Adds programmer creatable, user editable settings for each engine.
@@ -39,7 +39,9 @@ files:
39
39
  - app/controllers/admin/refinery_settings_controller.rb
40
40
  - app/helpers/refinery_settings_helper.rb
41
41
  - app/models/refinery_setting.rb
42
+ - app/views/admin/refinery_settings/_actions.html.erb
42
43
  - app/views/admin/refinery_settings/_form.html.erb
44
+ - app/views/admin/refinery_settings/_records.html.erb
43
45
  - app/views/admin/refinery_settings/_refinery_setting.html.erb
44
46
  - app/views/admin/refinery_settings/_refinery_settings.html.erb
45
47
  - app/views/admin/refinery_settings/edit.html.erb