refinerycms 0.9.7.11 → 0.9.7.13
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.
- data/Gemfile +6 -6
- data/bin/refinerycms +7 -0
- data/changelog.md +13 -1
- data/config/acts_as_indexed_config.rb +7 -4
- data/config/application.rb +5 -0
- data/public/images/refinery/icons/ajax-loader.gif +0 -0
- data/public/javascripts/jquery/jquery.corner.js +7 -1
- data/public/javascripts/jquery/jquery.jcarousel.js +6 -2
- data/public/javascripts/refinery/admin.js +22 -11
- data/public/javascripts/refinery/boot_wym.js +7 -3
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +11 -11
- data/public/stylesheets/ie7.css +1 -1
- data/public/stylesheets/refinery/formatting.css +4 -0
- data/public/stylesheets/refinery/refinery.css +43 -31
- data/readme.md +2 -2
- data/themes/demolicious/stylesheets/application.css +6 -6
- data/themes/demolicious/stylesheets/formatting.css +1 -1
- data/themes/hemingway/stylesheets/application.css +12 -12
- data/vendor/plugins/attachment_fu/init.rb +1 -1
- data/vendor/plugins/authentication/config/locales/nl.yml +4 -0
- data/vendor/plugins/authentication/config/locales/ru.yml +80 -0
- data/vendor/plugins/dashboard/app/views/admin/dashboard/_recent_inquiries.html.erb +2 -3
- data/vendor/plugins/dashboard/config/locales/nl.yml +4 -2
- data/vendor/plugins/dashboard/config/locales/ru.yml +27 -0
- data/vendor/plugins/images/config/locales/nl.yml +4 -0
- data/vendor/plugins/images/config/locales/ru.yml +46 -0
- data/vendor/plugins/inquiries/app/models/inquiry.rb +6 -2
- data/vendor/plugins/inquiries/app/views/inquiries/new.html.erb +1 -1
- data/vendor/plugins/inquiries/config/locales/nl.yml +13 -1
- data/vendor/plugins/inquiries/config/locales/ru.yml +79 -0
- data/vendor/plugins/pages/app/controllers/admin/pages_controller.rb +1 -1
- data/vendor/plugins/pages/app/models/page.rb +25 -16
- data/vendor/plugins/pages/app/views/admin/pages/_page.html.erb +6 -5
- data/vendor/plugins/pages/config/locales/nl.yml +50 -0
- data/vendor/plugins/pages/config/locales/ru.yml +97 -0
- data/vendor/plugins/refinery/app/views/layouts/admin.html.erb +7 -9
- data/vendor/plugins/refinery/app/views/layouts/application.html.erb +1 -1
- data/vendor/plugins/refinery/app/views/shared/_content_page.html.erb +2 -2
- data/vendor/plugins/refinery/app/views/shared/_footer.html.erb +2 -2
- data/vendor/plugins/refinery/app/views/shared/_head.html.erb +1 -1
- data/vendor/plugins/refinery/app/views/shared/_header.html.erb +2 -2
- data/vendor/plugins/refinery/app/views/shared/_menu.html.erb +9 -7
- data/vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb +12 -10
- data/vendor/plugins/refinery/app/views/shared/_site_bar.html.erb +2 -2
- data/vendor/plugins/refinery/config/locales/nl.yml +7 -0
- data/vendor/plugins/refinery/config/locales/ru.yml +61 -0
- data/vendor/plugins/refinery/lib/crud.rb +1 -3
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/seed.rb +1 -1
- data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/admin/index.html.erb +5 -1
- data/vendor/plugins/refinery/lib/refinery.rb +1 -1
- data/vendor/plugins/refinery/lib/refinery/admin_base_controller.rb +8 -2
- data/vendor/plugins/refinery/lib/refinery/application_helper.rb +1 -1
- data/vendor/plugins/refinery/rails/init.rb +0 -4
- data/vendor/plugins/refinery_settings/config/locales/nl.yml +4 -1
- data/vendor/plugins/refinery_settings/config/locales/ru.yml +45 -0
- data/vendor/plugins/resources/config/locales/nl.yml +4 -1
- data/vendor/plugins/resources/config/locales/ru.yml +33 -0
- data/vendor/plugins/themes/generators/refinery_theme/refinery_theme_generator.rb +5 -0
- metadata +13 -5
- data/public/stylesheets/ie6.css +0 -0
@@ -251,9 +251,7 @@ module Crud
|
|
251
251
|
parse_branch(pos, id, id_hash["id"]) unless pos == "id"
|
252
252
|
end if id_hash.include?('0')
|
253
253
|
|
254
|
-
#{class_name}.
|
255
|
-
:parent_id => parent_id,
|
256
|
-
:position => position)
|
254
|
+
#{class_name}.update_all(["parent_id = ?, position = ?", parent_id, position], ["id = ?", id_hash["id"]])
|
257
255
|
end
|
258
256
|
|
259
257
|
protected :parse_branch
|
@@ -10,6 +10,6 @@ page = Page.create(
|
|
10
10
|
:position => ((Page.maximum(:position, :conditions => "parent_id IS NULL") || -1)+1),
|
11
11
|
:menu_match => "^/<%= plural_name %>(\/|\/.+?|)$"
|
12
12
|
)
|
13
|
-
|
13
|
+
Page.default_parts.each do |default_page_part|
|
14
14
|
page.parts.create(:title => default_page_part, :body => nil)
|
15
15
|
end
|
data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/admin/index.html.erb
CHANGED
@@ -18,7 +18,11 @@
|
|
18
18
|
<%% if searching? %>
|
19
19
|
<h2><%%= t('admin.search_results_for', :query => params[:search]) %></h2>
|
20
20
|
<%% if @<%= plural_name %>.any? %>
|
21
|
-
<%%=
|
21
|
+
<%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %>
|
22
|
+
<ul>
|
23
|
+
<%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %>
|
24
|
+
</ul>
|
25
|
+
<%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %>
|
22
26
|
<%% else %>
|
23
27
|
<p><%%= t('admin.search_no_results') %></p>
|
24
28
|
<%% end %>
|
@@ -21,7 +21,13 @@ protected
|
|
21
21
|
def error_404(exception=nil)
|
22
22
|
if (@page = Page.find_by_menu_match("^/404$", :include => [:parts, :slugs])).present?
|
23
23
|
params[:action] = 'error_404'
|
24
|
-
|
24
|
+
# change any links in the copy to the admin_root_url
|
25
|
+
# and any references to "home page" to "Dashboard"
|
26
|
+
part_symbol = Page.default_parts.first.to_sym
|
27
|
+
@page[part_symbol] = @page[part_symbol].gsub(
|
28
|
+
/href=(\'|\")\/(\'|\")/, "href='#{admin_root_url(:only_path => true)}'"
|
29
|
+
).gsub("home page", "Dashboard")
|
30
|
+
|
25
31
|
render :template => "/pages/show", :status => 404
|
26
32
|
else
|
27
33
|
# fallback to the default 404.html page.
|
@@ -51,7 +57,7 @@ protected
|
|
51
57
|
end
|
52
58
|
|
53
59
|
def restrict_plugins
|
54
|
-
Refinery::Plugins.set_active(
|
60
|
+
Refinery::Plugins.set_active(current_user.authorized_plugins) if current_user.respond_to?(:plugins)
|
55
61
|
end
|
56
62
|
|
57
63
|
def restrict_controller
|
@@ -27,7 +27,7 @@ module Refinery::ApplicationHelper
|
|
27
27
|
|
28
28
|
# This was extracted from REFINERY_ROOT/vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb
|
29
29
|
# to remove the complexity of that template by reducing logic in the view.
|
30
|
-
def css_for_menu_branch(menu_branch, menu_branch_counter)
|
30
|
+
def css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count = nil)
|
31
31
|
css = []
|
32
32
|
css << "selected" if selected_page?(menu_branch) or descendant_page_selected?(menu_branch)
|
33
33
|
css << "first" if menu_branch_counter == 0
|
@@ -40,7 +40,10 @@ nl:
|
|
40
40
|
empty_set: Er zijn nog geen instellingen aangemaakt
|
41
41
|
create_first: "Klik '{{link}}' om je eerste instelling aan te maken."
|
42
42
|
form:
|
43
|
-
restart_may_be_in_order: "<strong>Let op</strong>, na een aanpassing moet wellicht uw webapplicatie herstart worden"
|
43
|
+
restart_may_be_in_order: "<strong>Let op</strong>, na een aanpassing moet wellicht uw webapplicatie herstart worden"
|
44
|
+
yes_make_this_setting_restricted: "Ja, maak deze configuratie alleen toegankelijk voor superusers."
|
45
|
+
help:
|
46
|
+
restricted: Dit maakt deze configuratie alleen zichtbaar en bewerkbaar bij gebruikers die superusers zijn (zoals jij).
|
44
47
|
plugins:
|
45
48
|
refinery_settings:
|
46
49
|
title: Instellingen
|
@@ -0,0 +1,45 @@
|
|
1
|
+
ru:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
refinery_setting: "Основные настройки"
|
5
|
+
attributes:
|
6
|
+
refinery_setting:
|
7
|
+
name: "Имя"
|
8
|
+
value: "Значение"
|
9
|
+
restricted: "Доступ"
|
10
|
+
admin:
|
11
|
+
refinery_settings:
|
12
|
+
refinery_setting:
|
13
|
+
edit: 'Редактировать настройки'
|
14
|
+
confirm: 'Вы уверены, что хотите удалить эти настройки навсегда?'
|
15
|
+
remove: 'Удалить эти настройки навсегда'
|
16
|
+
index:
|
17
|
+
new: "Создать новые настройки"
|
18
|
+
empty_set: "Настройки еще не созданы."
|
19
|
+
create_first: "Нажмите '{{link}}', чтобы добавить ваши первоначальные настройки."
|
20
|
+
form:
|
21
|
+
restart_may_be_in_order: "<strong>Пожалуйста, обратите внимание</strong>, что вам нужно перезагрузить сайт, чтобы настройки вступили в силу."
|
22
|
+
yes_make_this_setting_restricted: "Да, сделать эти настройки доступными только суперпользователям."
|
23
|
+
help:
|
24
|
+
restricted: "Это сделает настройки видимыми и доступными для редактирования только для суперпользователей (как вы)."
|
25
|
+
help:
|
26
|
+
activity_show_limit: "Это ограничит количество пунктов, которые могут отображаться в меню."
|
27
|
+
analytics_page_code: "Этот код активирует средства статистики (отслеживание) от Google Analitics на вашем сайте. Если оставить настройки пустыми, либо установить их на UA-xxxxxx-x, то эта функция отключается, и удаленный вызов Google Analitics не производится."
|
28
|
+
image_dialogue_sizes: "Эта установка вызывает диалоговое окно вставки картинки. Вы должны загружать миниатюры разных размеров, а также изменять их."
|
29
|
+
image_thumbnails: "Если вы измените эту настройку, вам придется восстанавливать все картинки, обновлять их: восстанавливать (или <причесывать> картинки, обновлять, если вы только добавили новые миниатюры), иначе вы не сможете использовать уже имеемые картинки."
|
30
|
+
menu_hide_children: "Спрятать все субстраницы из меню, даже если они есть."
|
31
|
+
new_page_parts: "Активировать функцию добавления новых частей страниц (контента) в редакторе страниц."
|
32
|
+
page_title: "Очень сложные опции для установки названия страницы. Здесь вы можете установить обычный класс CSS, либо другой ярлык, либо разбить страницу на фрагменты в соответствии с их происхождением."
|
33
|
+
page_advanced_options_include_seo: "Эта настройка контролирует отображение SEO опций в списке дополнительных опций страницы."
|
34
|
+
preferred_image_view: "Эта настройка устанавливает, вид отображения существующих картинок плагином образов- Grid View для отображения картинок в табличной форме (мозаика), и List View для отображения картинок списком. В плагине образов есть кнопка автоматизации данного процесса."
|
35
|
+
refinery_enable_backend_reordering: "Вы можете убрать возможность изменения порядка плагинов с помощью данной настройки."
|
36
|
+
refinery_menu_cache_action_suffix: "Эта настройка управляет ключом, что применяется для кэширования меню сайта. Если вы используете готовую тему, то лучше оставить настройки темы по умолчанию."
|
37
|
+
show_contact_privacy_link: "Вы можете спрятать или оставить видной ссылку из формы обратной связи на страницу Политики Конфиденциальности."
|
38
|
+
site_name: "Это название сайта, которое будет отображаться в верхнем колонтитуле и в нижнем колонтитуле вместе с указанием <права собственности защищены> для некоторых тем."
|
39
|
+
theme: "Введите имя темы, которую вы хотите использовать. Эта тема сразу же вступит в силу и установки должны корректно идентифицировать существующую тему для работы."
|
40
|
+
use_google_ajax_libraries: "Если вы хотите использовать Google's AJAX CDN установите соответствующую функцию."
|
41
|
+
use_marketable_urls: "Изменяет url(ссылку) страниц и автоматически разрешает конфликты между разными плагинами."
|
42
|
+
use_resource_caching: "Рекомендуется включить эту настройку в рабочем режиме, поскольку она связывает средства javascript и средства stylesheet (стиль страницы) в единый пакет файлов и снижает число вебзапросов на ваш сайт, тем самым увеличивает его скорость."
|
43
|
+
plugins:
|
44
|
+
refinery_settings:
|
45
|
+
title: "Настройки"
|
@@ -22,7 +22,7 @@ nl:
|
|
22
22
|
upload_new: Upload een nieuw bestand.
|
23
23
|
no_files_yet: Er zijn nog geen bestanden. Klik op "Upload een nieuw bestand" om uw eerste bestand toe te voegen.
|
24
24
|
insert:
|
25
|
-
|
25
|
+
existing: Bestaand bestand
|
26
26
|
new: Nieuw bestand
|
27
27
|
link_to_resource: Link naar dit bestand
|
28
28
|
previous: Vorige
|
@@ -30,3 +30,6 @@ nl:
|
|
30
30
|
submit_insert: Voeg in
|
31
31
|
or: of
|
32
32
|
cancel: Annuleer
|
33
|
+
existing_resource:
|
34
|
+
link_to_resource: 'Link naar dit Bestand'
|
35
|
+
submit_insert: Voeg in
|
@@ -0,0 +1,33 @@
|
|
1
|
+
ru:
|
2
|
+
plugins:
|
3
|
+
refinery_files:
|
4
|
+
title: "Файлы"
|
5
|
+
must_choose_file: "Вы должны выбрать файл для загрузки"
|
6
|
+
file_should_be_smaller_than_max_file_size: "Файлы должны быть по размеру меньше чем {{max_file_size}}"
|
7
|
+
admin:
|
8
|
+
resources:
|
9
|
+
form:
|
10
|
+
file_to_upload: "Загружаемый файл"
|
11
|
+
download_current: "Скачать текущий файл"
|
12
|
+
or: "или"
|
13
|
+
replace: ", заменить его на вот этот..."
|
14
|
+
maximum_file_size: "Максимальный размер файла {{megabytes}} мегабайт."
|
15
|
+
resource:
|
16
|
+
download: "Скачать файл ({{size}})"
|
17
|
+
edit: "Редактировать файл"
|
18
|
+
delete:
|
19
|
+
message: "Вы уверены, что хотите удалить '{{title}}'?"
|
20
|
+
title: "Удалить этот файл навсегда"
|
21
|
+
index:
|
22
|
+
upload_new: "Загрузить новый файл"
|
23
|
+
no_files_yet: "Здесь пока нет файлов. Нажмите 'Загрузить новые файлы', чтобы добавить первый файл."
|
24
|
+
insert:
|
25
|
+
existing: "Существующий файл"
|
26
|
+
new: "Новый файл"
|
27
|
+
previous: "Предыдущий"
|
28
|
+
next: "Следующий"
|
29
|
+
or: "или"
|
30
|
+
cancel: "Отмена"
|
31
|
+
existing_resource:
|
32
|
+
link_to_resource: 'Поставить ссылку на этот ресурс'
|
33
|
+
submit_insert: "Вставить"
|
@@ -29,6 +29,11 @@ class RefineryThemeGenerator < Rails::Generator::Base
|
|
29
29
|
m.file "views/pages/show.html.erb", "themes/#{theme_name}/views/pages/show.html.erb"
|
30
30
|
m.file "views/pages/home.html.erb", "themes/#{theme_name}/views/pages/home.html.erb"
|
31
31
|
|
32
|
+
m.directory "themes/#{theme_name}/views/shared"
|
33
|
+
["content_page", "footer", "head", "header", "menu", "menu_branch"].each do |partial|
|
34
|
+
m.file "../../../../refinery/app/views/shared/_#{partial}.html.erb","themes/#{theme_name}/views/shared/_#{partial}.html.erb"
|
35
|
+
end
|
36
|
+
|
32
37
|
puts 'NOTE: If you want this new theme to be the current theme used, set the "theme"
|
33
38
|
setting in the Refinery backend to the name of this theme.' unless RAILS_ENV == "test"
|
34
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 7
|
10
|
-
-
|
11
|
-
version: 0.9.7.
|
10
|
+
- 13
|
11
|
+
version: 0.9.7.13
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Resolve Digital
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-08-
|
21
|
+
date: 2010-08-24 00:00:00 +12:00
|
22
22
|
default_executable:
|
23
23
|
dependencies: []
|
24
24
|
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- public/images/refinery/hover-gradient.jpg
|
156
156
|
- public/images/refinery/icons/accept.png
|
157
157
|
- public/images/refinery/icons/add.png
|
158
|
+
- public/images/refinery/icons/ajax-loader.gif
|
158
159
|
- public/images/refinery/icons/application_edit.png
|
159
160
|
- public/images/refinery/icons/application_go.png
|
160
161
|
- public/images/refinery/icons/arrow_left.png
|
@@ -546,7 +547,6 @@ files:
|
|
546
547
|
- public/stylesheets/application.css
|
547
548
|
- public/stylesheets/formatting.css
|
548
549
|
- public/stylesheets/home.css
|
549
|
-
- public/stylesheets/ie6.css
|
550
550
|
- public/stylesheets/ie7.css
|
551
551
|
- public/stylesheets/refinery/application.css
|
552
552
|
- public/stylesheets/refinery/formatting.css
|
@@ -713,6 +713,7 @@ files:
|
|
713
713
|
- vendor/plugins/authentication/config/locales/nb.yml
|
714
714
|
- vendor/plugins/authentication/config/locales/nl.yml
|
715
715
|
- vendor/plugins/authentication/config/locales/pt-BR.yml
|
716
|
+
- vendor/plugins/authentication/config/locales/ru.yml
|
716
717
|
- vendor/plugins/authentication/config/locales/sl.yml
|
717
718
|
- vendor/plugins/authentication/config/routes.rb
|
718
719
|
- vendor/plugins/authentication/lib/authenticated_system.rb
|
@@ -737,6 +738,7 @@ files:
|
|
737
738
|
- vendor/plugins/dashboard/config/locales/nb.yml
|
738
739
|
- vendor/plugins/dashboard/config/locales/nl.yml
|
739
740
|
- vendor/plugins/dashboard/config/locales/pt-BR.yml
|
741
|
+
- vendor/plugins/dashboard/config/locales/ru.yml
|
740
742
|
- vendor/plugins/dashboard/config/locales/sl.yml
|
741
743
|
- vendor/plugins/dashboard/config/routes.rb
|
742
744
|
- vendor/plugins/dashboard/rails/init.rb
|
@@ -851,6 +853,7 @@ files:
|
|
851
853
|
- vendor/plugins/images/config/locales/nb.yml
|
852
854
|
- vendor/plugins/images/config/locales/nl.yml
|
853
855
|
- vendor/plugins/images/config/locales/pt-BR.yml
|
856
|
+
- vendor/plugins/images/config/locales/ru.yml
|
854
857
|
- vendor/plugins/images/config/locales/sl.yml
|
855
858
|
- vendor/plugins/images/config/routes.rb
|
856
859
|
- vendor/plugins/images/lib/tasks/images.rake
|
@@ -885,6 +888,7 @@ files:
|
|
885
888
|
- vendor/plugins/inquiries/config/locales/nb.yml
|
886
889
|
- vendor/plugins/inquiries/config/locales/nl.yml
|
887
890
|
- vendor/plugins/inquiries/config/locales/pt-BR.yml
|
891
|
+
- vendor/plugins/inquiries/config/locales/ru.yml
|
888
892
|
- vendor/plugins/inquiries/config/locales/sl.yml
|
889
893
|
- vendor/plugins/inquiries/config/routes.rb
|
890
894
|
- vendor/plugins/inquiries/rails/init.rb
|
@@ -928,6 +932,7 @@ files:
|
|
928
932
|
- vendor/plugins/pages/config/locales/nb.yml
|
929
933
|
- vendor/plugins/pages/config/locales/nl.yml
|
930
934
|
- vendor/plugins/pages/config/locales/pt-BR.yml
|
935
|
+
- vendor/plugins/pages/config/locales/ru.yml
|
931
936
|
- vendor/plugins/pages/config/locales/sl.yml
|
932
937
|
- vendor/plugins/pages/config/routes.rb
|
933
938
|
- vendor/plugins/pages/rails/init.rb
|
@@ -972,6 +977,7 @@ files:
|
|
972
977
|
- vendor/plugins/refinery/config/locales/nb.yml
|
973
978
|
- vendor/plugins/refinery/config/locales/nl.yml
|
974
979
|
- vendor/plugins/refinery/config/locales/pt-BR.yml
|
980
|
+
- vendor/plugins/refinery/config/locales/ru.yml
|
975
981
|
- vendor/plugins/refinery/config/locales/sl.yml
|
976
982
|
- vendor/plugins/refinery/config/routes.rb
|
977
983
|
- vendor/plugins/refinery/crud.md
|
@@ -1042,6 +1048,7 @@ files:
|
|
1042
1048
|
- vendor/plugins/refinery_settings/config/locales/nb.yml
|
1043
1049
|
- vendor/plugins/refinery_settings/config/locales/nl.yml
|
1044
1050
|
- vendor/plugins/refinery_settings/config/locales/pt-BR.yml
|
1051
|
+
- vendor/plugins/refinery_settings/config/locales/ru.yml
|
1045
1052
|
- vendor/plugins/refinery_settings/config/locales/sl.yml
|
1046
1053
|
- vendor/plugins/refinery_settings/config/routes.rb
|
1047
1054
|
- vendor/plugins/refinery_settings/rails/init.rb
|
@@ -1064,6 +1071,7 @@ files:
|
|
1064
1071
|
- vendor/plugins/resources/config/locales/nb.yml
|
1065
1072
|
- vendor/plugins/resources/config/locales/nl.yml
|
1066
1073
|
- vendor/plugins/resources/config/locales/pt-BR.yml
|
1074
|
+
- vendor/plugins/resources/config/locales/ru.yml
|
1067
1075
|
- vendor/plugins/resources/config/locales/sl.yml
|
1068
1076
|
- vendor/plugins/resources/config/routes.rb
|
1069
1077
|
- vendor/plugins/resources/rails/init.rb
|
data/public/stylesheets/ie6.css
DELETED
File without changes
|