alchemy_cms 2.5.0.b5 → 2.5.0.b9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/alchemy_cms.gemspec +2 -2
- data/app/assets/javascripts/alchemy/alchemy.base.js +0 -24
- data/app/assets/javascripts/alchemy/alchemy.growler.js +2 -4
- data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +0 -1
- data/app/assets/javascripts/alchemy/alchemy.page_sorter.js +1 -1
- data/app/assets/stylesheets/alchemy/base.scss +4 -20
- data/app/assets/stylesheets/alchemy/elements.scss +19 -31
- data/app/assets/stylesheets/alchemy/flash.scss +11 -0
- data/app/assets/stylesheets/alchemy/form_elements.scss +2 -14
- data/app/assets/stylesheets/alchemy/menubar.css.scss +1 -0
- data/app/assets/stylesheets/alchemy/mixins.scss +37 -2
- data/app/assets/stylesheets/alchemy/notices.scss +1 -0
- data/app/assets/stylesheets/alchemy/sitemap.scss +30 -0
- data/app/assets/stylesheets/alchemy/tables.scss +20 -27
- data/app/controllers/alchemy/admin/attachments_controller.rb +3 -3
- data/app/controllers/alchemy/admin/base_controller.rb +1 -1
- data/app/controllers/alchemy/admin/contents_controller.rb +2 -2
- data/app/controllers/alchemy/admin/elements_controller.rb +3 -3
- data/app/controllers/alchemy/admin/essence_pictures_controller.rb +2 -2
- data/app/controllers/alchemy/admin/pages_controller.rb +16 -9
- data/app/controllers/alchemy/admin/pictures_controller.rb +8 -8
- data/app/controllers/alchemy/admin/resources_controller.rb +1 -1
- data/app/controllers/alchemy/admin/tags_controller.rb +4 -4
- data/app/controllers/alchemy/admin/users_controller.rb +3 -3
- data/app/controllers/alchemy/base_controller.rb +10 -12
- data/app/controllers/alchemy/messages_controller.rb +2 -2
- data/app/controllers/alchemy/pages_controller.rb +4 -1
- data/app/controllers/alchemy/pictures_controller.rb +1 -4
- data/app/controllers/alchemy/user_sessions_controller.rb +5 -5
- data/app/helpers/alchemy/admin/attachments_helper.rb +1 -1
- data/app/helpers/alchemy/admin/base_helper.rb +13 -13
- data/app/helpers/alchemy/admin/contents_helper.rb +6 -6
- data/app/helpers/alchemy/admin/elements_helper.rb +2 -2
- data/app/helpers/alchemy/admin/essences_helper.rb +8 -8
- data/app/helpers/alchemy/admin/pages_helper.rb +13 -7
- data/app/helpers/alchemy/base_helper.rb +20 -5
- data/app/helpers/alchemy/elements_helper.rb +2 -2
- data/app/helpers/alchemy/essences_helper.rb +2 -2
- data/app/helpers/alchemy/pages_helper.rb +2 -3
- data/app/models/alchemy/cell.rb +11 -3
- data/app/models/alchemy/content.rb +17 -17
- data/app/models/alchemy/element.rb +49 -26
- data/app/models/alchemy/legacy_page_url.rb +6 -0
- data/app/models/alchemy/page.rb +24 -45
- data/app/models/alchemy/picture.rb +1 -2
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +3 -3
- data/app/views/alchemy/admin/attachments/_attachment.html.erb +6 -6
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +2 -2
- data/app/views/alchemy/admin/attachments/edit.html.erb +5 -3
- data/app/views/alchemy/admin/attachments/index.html.erb +3 -3
- data/app/views/alchemy/admin/attachments/new.html.erb +2 -2
- data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
- data/app/views/alchemy/admin/clipboard/index.html.erb +3 -3
- data/app/views/alchemy/admin/clipboard/insert.js.erb +2 -2
- data/app/views/alchemy/admin/clipboard/remove.js.erb +4 -4
- data/app/views/alchemy/admin/contents/_missing.html.erb +2 -2
- data/app/views/alchemy/admin/contents/create.js.erb +1 -1
- data/app/views/alchemy/admin/contents/new.html.erb +3 -3
- data/app/views/alchemy/admin/dashboard/index.html.erb +12 -12
- data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_element.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_element_foot.html.erb +5 -5
- data/app/views/alchemy/admin/elements/_element_head.html.erb +6 -6
- data/app/views/alchemy/admin/elements/_elements_select.html.erb +2 -2
- data/app/views/alchemy/admin/elements/_new_element_form.html.erb +4 -4
- data/app/views/alchemy/admin/elements/_picture_gallery_editor.html.erb +1 -1
- data/app/views/alchemy/admin/elements/create.js.erb +2 -2
- data/app/views/alchemy/admin/elements/index.html.erb +2 -2
- data/app/views/alchemy/admin/elements/list.js.erb +1 -1
- data/app/views/alchemy/admin/elements/new.html.erb +4 -4
- data/app/views/alchemy/admin/elements/order.js.erb +1 -1
- data/app/views/alchemy/admin/elements/trash.js.erb +1 -1
- data/app/views/alchemy/admin/elements/update.js.erb +1 -1
- data/app/views/alchemy/admin/essence_files/edit.html.erb +5 -5
- data/app/views/alchemy/admin/essence_pictures/crop.html.erb +4 -4
- data/app/views/alchemy/admin/essence_pictures/edit.html.erb +4 -4
- data/app/views/alchemy/admin/languages/_form.html.erb +6 -10
- data/app/views/alchemy/admin/languages/_language.html.erb +4 -4
- data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
- data/app/views/alchemy/admin/languages/index.html.erb +1 -1
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +6 -6
- data/app/views/alchemy/admin/layoutpages/index.html.erb +8 -8
- data/app/views/alchemy/admin/pages/_contactform_links.html.erb +7 -7
- data/app/views/alchemy/admin/pages/_create_language_form.html.erb +10 -9
- data/app/views/alchemy/admin/pages/_external_link.html.erb +7 -7
- data/app/views/alchemy/admin/pages/_file_link.html.erb +6 -6
- data/app/views/alchemy/admin/pages/_internal_link.html.erb +5 -5
- data/app/views/alchemy/admin/pages/_new_page_form.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_page.html.erb +28 -28
- data/app/views/alchemy/admin/pages/_page_for_links.html.erb +5 -5
- data/app/views/alchemy/admin/pages/_page_infos.html.erb +3 -3
- data/app/views/alchemy/admin/pages/_page_status.html.erb +3 -3
- data/app/views/alchemy/admin/pages/_sitemap.html.erb +1 -1
- data/app/views/alchemy/admin/pages/configure.html.erb +11 -11
- data/app/views/alchemy/admin/pages/configure_external.html.erb +4 -4
- data/app/views/alchemy/admin/pages/destroy.js.erb +0 -1
- data/app/views/alchemy/admin/pages/edit.html.erb +35 -35
- data/app/views/alchemy/admin/pages/flush.js.erb +1 -1
- data/app/views/alchemy/admin/pages/fold.js.erb +0 -1
- data/app/views/alchemy/admin/pages/index.html.erb +14 -14
- data/app/views/alchemy/admin/pages/link.html.erb +4 -4
- data/app/views/alchemy/admin/pages/locked.html.erb +1 -1
- data/app/views/alchemy/admin/pages/new.html.erb +4 -4
- data/app/views/alchemy/admin/pages/update.js.erb +2 -2
- data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_flash_notices.html.erb +3 -3
- data/app/views/alchemy/admin/partials/_flash_upload.html.erb +8 -8
- data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
- data/app/views/alchemy/admin/partials/_search_form.html.erb +2 -2
- data/app/views/alchemy/admin/partials/_sub_navigation_tab.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_upload_form.html.erb +11 -11
- data/app/views/alchemy/admin/pictures/_archive.html.erb +13 -13
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +7 -7
- data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +4 -4
- data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_picture.html.erb +7 -7
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +2 -2
- data/app/views/alchemy/admin/pictures/edit.html.erb +2 -2
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +6 -6
- data/app/views/alchemy/admin/pictures/index.html.erb +10 -10
- data/app/views/alchemy/admin/pictures/info.html.erb +2 -2
- data/app/views/alchemy/admin/pictures/new.html.erb +2 -2
- data/app/views/alchemy/admin/resources/_boolean.html.erb +5 -0
- data/app/views/alchemy/admin/resources/_datetime.html.erb +2 -0
- data/app/views/alchemy/admin/resources/_form.html.erb +17 -28
- data/app/views/alchemy/admin/resources/_resource.html.erb +4 -4
- data/app/views/alchemy/admin/resources/_string.html.erb +5 -0
- data/app/views/alchemy/admin/resources/_table.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_text.html.erb +5 -0
- data/app/views/alchemy/admin/resources/index.html.erb +1 -1
- data/app/views/alchemy/admin/tags/_tag.html.erb +4 -4
- data/app/views/alchemy/admin/tags/edit.html.erb +4 -4
- data/app/views/alchemy/admin/tags/index.html.erb +5 -5
- data/app/views/alchemy/admin/tags/new.html.erb +2 -2
- data/app/views/alchemy/admin/trash/clear.js.coffee +1 -1
- data/app/views/alchemy/admin/trash/index.html.erb +3 -3
- data/app/views/alchemy/admin/users/_table.html.erb +3 -3
- data/app/views/alchemy/admin/users/_user.html.erb +6 -6
- data/app/views/alchemy/admin/users/index.html.erb +4 -4
- data/app/views/alchemy/base/error_notice.html.erb +1 -4
- data/app/views/alchemy/elements/_editor_not_found.html.erb +2 -2
- data/app/views/alchemy/essences/_essence_boolean_view.html.erb +1 -1
- data/app/views/alchemy/essences/_essence_file_editor.html.erb +7 -7
- data/app/views/alchemy/essences/_essence_picture_editor.html.erb +5 -5
- data/app/views/alchemy/essences/_essence_picture_tools.html.erb +8 -8
- data/app/views/alchemy/essences/_linkable_essence_tools.html.erb +2 -2
- data/app/views/alchemy/search/_form.html.erb +2 -2
- data/app/views/alchemy/search/_result.html.erb +1 -1
- data/app/views/alchemy/search/_results.html.erb +3 -3
- data/app/views/alchemy/user_sessions/leave.html.erb +5 -5
- data/app/views/alchemy/user_sessions/login.html.erb +1 -1
- data/app/views/alchemy/user_sessions/signup.html.erb +2 -2
- data/app/views/kaminari/_gap.html.erb +1 -1
- data/app/views/kaminari/_next_page.html.erb +2 -2
- data/app/views/kaminari/_prev_page.html.erb +2 -2
- data/app/views/layouts/alchemy/admin.html.erb +7 -7
- data/bin/alchemy +1 -1
- data/config/authorization_rules.rb +1 -3
- data/config/locales/alchemy.de.yml +33 -23
- data/config/locales/alchemy.en.yml +31 -6
- data/db/migrate/{20121026100815_alchemy_two_point_three.rb → 20121118000000_alchemy_two_point_four.rb} +51 -28
- data/db/migrate/20130110212411_create_alchemy_legacy_page_urls.rb +11 -0
- data/lib/alchemy/capistrano.rb +22 -30
- data/lib/alchemy/errors.rb +45 -0
- data/lib/alchemy/i18n.rb +7 -5
- data/lib/alchemy/logger.rb +16 -0
- data/lib/alchemy/page_layout.rb +3 -3
- data/lib/alchemy/resource.rb +17 -1
- data/lib/alchemy/resources_helper.rb +8 -1
- data/lib/alchemy/upgrader.rb +9 -0
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy_cms.rb +1 -6
- data/lib/rails/generators/alchemy/scaffold/files/elements.yml +41 -19
- data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +13 -0
- data/lib/tasks/alchemy/db.rake +5 -11
- data/lib/tasks/alchemy/install.rake +7 -7
- data/spec/controllers/admin/pages_controller_spec.rb +14 -2
- data/spec/controllers/pages_controller_spec.rb +50 -17
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/db/migrate/{20121026100815_alchemy_two_point_three.rb → 20121118000000_alchemy_two_point_four.rb} +51 -28
- data/spec/dummy/db/migrate/20130110212411_create_alchemy_legacy_page_urls.rb +11 -0
- data/spec/dummy/db/schema.rb +10 -1
- data/spec/factories.rb +1 -0
- data/spec/integration/admin/picture_library_integration_spec.rb +8 -2
- data/spec/integration/security_spec.rb +2 -2
- data/spec/integration/translation_integration_spec.rb +20 -4
- data/spec/libraries/resources_helper_spec.rb +1 -1
- data/spec/models/cell_spec.rb +45 -0
- data/spec/models/page_spec.rb +19 -2
- data/spec/models/picture_spec.rb +12 -0
- data/spec/routing_spec.rb +115 -115
- data/spec/spec_helper.rb +3 -0
- data/spec/support/alchemy/specs_helpers.rb +6 -2
- data/spec/support/image.png +0 -0
- data/spec/support/image2.PNG +0 -0
- data/spec/support/image3.jpeg +0 -0
- metadata +27 -23
- data/db/migrate/20121113115120_create_alchemy_essence_links.rb +0 -13
- data/db/migrate/20121115100736_add_cached_tag_list_to_elements_pages_and_users.rb +0 -7
- data/db/migrate/20121116140636_add_cached_tag_list_to_alchemy_attachments.rb +0 -5
- data/db/migrate/20121116141016_change_alchemy_pictures_tag_list_column.rb +0 -9
- data/spec/dummy/db/migrate/20121113115120_create_alchemy_essence_links.rb +0 -13
- data/spec/dummy/db/migrate/20121115100736_add_cached_tag_list_to_elements_pages_and_users.rb +0 -7
- data/spec/dummy/db/migrate/20121116140636_add_cached_tag_list_to_alchemy_attachments.rb +0 -5
- data/spec/dummy/db/migrate/20121116141016_change_alchemy_pictures_tag_list_column.rb +0 -9
@@ -7,12 +7,15 @@
|
|
7
7
|
</tr>
|
8
8
|
<tr>
|
9
9
|
<td class="label"><%= f.label :language_code %></td>
|
10
|
-
<td class="input"><%= f.text_field :language_code, :class => 'thin_border', :placeholder =>
|
10
|
+
<td class="input"><%= f.text_field :language_code, :class => 'thin_border', :placeholder => _t(:language_code_placeholder) -%></td>
|
11
11
|
</tr>
|
12
12
|
<tr>
|
13
13
|
<td class="label"><%= f.label :country_code %>*</td>
|
14
14
|
<td class="input">
|
15
|
-
<%= f.text_field :country_code, :class => 'thin_border', :placeholder =>
|
15
|
+
<%= f.text_field :country_code, :class => 'thin_border', :placeholder => _t(:country_code_placeholder) -%>
|
16
|
+
<p class="foot_note">
|
17
|
+
* <%= _t(:country_code_foot_note) %>
|
18
|
+
</p>
|
16
19
|
</td>
|
17
20
|
</tr>
|
18
21
|
<tr>
|
@@ -37,16 +40,9 @@
|
|
37
40
|
<%= f.label :default -%>
|
38
41
|
</td>
|
39
42
|
</tr>
|
40
|
-
<tr>
|
41
|
-
<td colspan="2">
|
42
|
-
<p class="foot_note">
|
43
|
-
* <%= t(:country_code_foot_note) %>
|
44
|
-
</p>
|
45
|
-
</td>
|
46
|
-
</tr>
|
47
43
|
<tr>
|
48
44
|
<td class="submit" colspan="2">
|
49
|
-
<%= f.button
|
45
|
+
<%= f.button _t('save'), :class => 'button' %>
|
50
46
|
</td>
|
51
47
|
</tr>
|
52
48
|
</table>
|
@@ -24,9 +24,9 @@
|
|
24
24
|
<%- permitted_to?(:destroy, :alchemy_admin_languages) do -%>
|
25
25
|
<%= link_to_confirmation_window(
|
26
26
|
'',
|
27
|
-
|
27
|
+
_t("Are you sure?"),
|
28
28
|
alchemy.admin_language_path(language),
|
29
|
-
:title =>
|
29
|
+
:title => _t("Delete"),
|
30
30
|
:class => "icon destroy"
|
31
31
|
) -%>
|
32
32
|
<%- end -%>
|
@@ -35,11 +35,11 @@
|
|
35
35
|
'',
|
36
36
|
alchemy.edit_admin_language_path(language),
|
37
37
|
{
|
38
|
-
:title =>
|
38
|
+
:title => _t("Edit")
|
39
39
|
},
|
40
40
|
{
|
41
41
|
:class => "icon edit",
|
42
|
-
:title =>
|
42
|
+
:title => _t("Edit")
|
43
43
|
}
|
44
44
|
) -%>
|
45
45
|
<%- end -%>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<%= render_resources %>
|
28
28
|
</table>
|
29
29
|
<%- elsif params[:query] -%>
|
30
|
-
<p><%=
|
30
|
+
<p><%= _t('Nothing found') %></p>
|
31
31
|
<%- end -%>
|
32
32
|
|
33
33
|
<%= render 'alchemy/admin/partials/pagination_links', :items => @languages, :scope => alchemy %>
|
@@ -9,11 +9,11 @@
|
|
9
9
|
render_icon('configure_page'),
|
10
10
|
alchemy.configure_admin_page_path(layoutpage),
|
11
11
|
{
|
12
|
-
:title =>
|
12
|
+
:title => _t('edit_page_properties'),
|
13
13
|
:size => '410x150'
|
14
14
|
},
|
15
15
|
:class => '',
|
16
|
-
:title =>
|
16
|
+
:title => _t('edit_page_properties')
|
17
17
|
) -%>
|
18
18
|
<%- end -%>
|
19
19
|
<%- permitted_to?([:new, :destroy, :copy], :alchemy_admin_pages) do -%>
|
@@ -28,13 +28,13 @@
|
|
28
28
|
:remote => true,
|
29
29
|
:method => :post,
|
30
30
|
:class => "",
|
31
|
-
:title =>
|
31
|
+
:title => _t("copy_page")
|
32
32
|
) %>
|
33
33
|
<%- end -%>
|
34
34
|
<%- permitted_to?(:destroy, :alchemy_admin_pages) do -%>
|
35
35
|
<%= link_to_confirmation_window(
|
36
36
|
render_icon('delete_page'),
|
37
|
-
|
37
|
+
_t("confirm_to_delete_page"),
|
38
38
|
url_for(
|
39
39
|
:controller => 'pages',
|
40
40
|
:action => 'destroy',
|
@@ -42,7 +42,7 @@
|
|
42
42
|
),
|
43
43
|
{
|
44
44
|
:class => "",
|
45
|
-
:title =>
|
45
|
+
:title => _t("delete_page")
|
46
46
|
}
|
47
47
|
) -%>
|
48
48
|
<%- end -%>
|
@@ -53,7 +53,7 @@
|
|
53
53
|
<%= link_to(
|
54
54
|
layoutpage.name,
|
55
55
|
alchemy.edit_admin_page_path(layoutpage),
|
56
|
-
:title =>
|
56
|
+
:title => _t("edit_page"),
|
57
57
|
:class => "sitemap_pagename_link #{cycle('even', 'odd')}"
|
58
58
|
) -%>
|
59
59
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%- content_for(:subnav_additions) do -%>
|
2
2
|
<%- unless @locked_pages.blank? -%>
|
3
|
-
<label><%=
|
3
|
+
<label><%= _t('Active Pages') %> »</label>
|
4
4
|
<%- @locked_pages.each do |page| -%>
|
5
5
|
<div class="subnavi_tab wide" id="locked_page_<%= page.id %>">
|
6
6
|
<%= link_to alchemy.edit_admin_page_path(page) do %>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
</span>
|
10
10
|
<% end %>
|
11
11
|
<%= form_tag(alchemy.unlock_admin_page_path(page), :remote => true) do %>
|
12
|
-
<button class="icon_button small" title="<%=
|
12
|
+
<button class="icon_button small" title="<%= _t('explain_unlocking') %>">
|
13
13
|
<%= render_icon('close small') %>
|
14
14
|
</button>
|
15
15
|
<% end %>
|
@@ -25,24 +25,24 @@
|
|
25
25
|
:icon => 'add_page',
|
26
26
|
:url => alchemy.new_admin_page_path(:parent_id => @layout_root.id, :layoutpage => true),
|
27
27
|
:overlay_options => {
|
28
|
-
:title =>
|
28
|
+
:title => _t('Add global page'),
|
29
29
|
:size => '340x150',
|
30
30
|
:overflow => true
|
31
31
|
},
|
32
|
-
:title =>
|
33
|
-
:label =>
|
32
|
+
:title => _t('Add global page'),
|
33
|
+
:label => _t('Add global page'),
|
34
34
|
:if_permitted_to => [:new, :alchemy_admin_pages]
|
35
35
|
) %>
|
36
36
|
<%= toolbar_button(
|
37
37
|
:icon => "clipboard#{clipboard_empty?('pages') ? '' : ' full'}",
|
38
38
|
:url => alchemy.admin_clipboard_path(:remarkable_type => 'pages'),
|
39
39
|
:overlay_options => {
|
40
|
-
:title =>
|
40
|
+
:title => _t('Clipboard'),
|
41
41
|
:size => '380x270'
|
42
42
|
},
|
43
|
-
:title =>
|
43
|
+
:title => _t('Show clipboard'),
|
44
44
|
:id => "clipboard_button",
|
45
|
-
:label =>
|
45
|
+
:label => _t('Show clipboard')
|
46
46
|
) %>
|
47
47
|
</div>
|
48
48
|
<%- end -%>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div id="overlay_tab_contactform_link">
|
2
2
|
<h2>
|
3
|
-
<%=
|
3
|
+
<%= _t("please enter subject and mail address") %>
|
4
4
|
</h2>
|
5
5
|
<table class="window_form">
|
6
6
|
<%= hidden_field_tag(
|
@@ -12,7 +12,7 @@
|
|
12
12
|
) %>
|
13
13
|
<tr>
|
14
14
|
<td class="label">
|
15
|
-
<label for="contactform_subject" class="medium"><%=
|
15
|
+
<label for="contactform_subject" class="medium"><%= _t("subject") %></label>
|
16
16
|
</td>
|
17
17
|
<td class="input">
|
18
18
|
<%= text_field_tag "contactform_subject", {}, :class => "thin_border auto_resize" %>
|
@@ -20,12 +20,12 @@
|
|
20
20
|
</tr>
|
21
21
|
<tr>
|
22
22
|
<td class="label">
|
23
|
-
<label for="contactform_mailto" class="medium"><%=
|
23
|
+
<label for="contactform_mailto" class="medium"><%= _t("mail_to") %></label>
|
24
24
|
</td>
|
25
25
|
<td class="input">
|
26
26
|
<%= select_tag(
|
27
27
|
"contactform_mailto",
|
28
|
-
options_for_select(configuration(:mailer)[:mail_addresses].map{ |a| [
|
28
|
+
options_for_select(configuration(:mailer)[:mail_addresses].map{ |a| [_t('alchemy.mailer.mail_addresses.'+a[0]), a[0]] }),
|
29
29
|
:style => "width: 300px", :class => 'alchemy_selectbox'
|
30
30
|
) %>
|
31
31
|
</td>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<tr>
|
34
34
|
<td class="label">
|
35
35
|
<label for="contactform_body" class="medium">
|
36
|
-
<%=
|
36
|
+
<%= _t("contactform_body") %>
|
37
37
|
</label>
|
38
38
|
</td>
|
39
39
|
<td class="input">
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<tr>
|
44
44
|
<td class="label">
|
45
45
|
<label for="contactform_link_title" class="medium">
|
46
|
-
<%=
|
46
|
+
<%= _t("link_title") %>
|
47
47
|
</label>
|
48
48
|
</td>
|
49
49
|
<td class="input">
|
@@ -52,7 +52,7 @@
|
|
52
52
|
</tr>
|
53
53
|
<tr>
|
54
54
|
<td class="submit" colspan="2">
|
55
|
-
<%= link_to(
|
55
|
+
<%= link_to(_t(:apply), '#', {
|
56
56
|
:onclick => "Alchemy.LinkOverlay.createLink('contact', jQuery('#contactform_url').val() + '?subject=' + encodeURIComponent(jQuery('#contactform_subject').val()) + '&mail_to=' + encodeURIComponent(jQuery('#contactform_mailto').val()) + '&body=' + encodeURIComponent(jQuery('#contactform_body').val()), jQuery('#contactform_link_title').val(), null); Alchemy.LinkOverlay.close()",
|
57
57
|
:class => 'button'
|
58
58
|
}) %>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<div id="create_language_tree_form" style="display: none">
|
2
2
|
<div class="info">
|
3
3
|
<%= render_icon('info') %>
|
4
|
-
<%=
|
4
|
+
<%= _t("language_does_not_exist") %>
|
5
5
|
</div>
|
6
6
|
<%- if @language -%>
|
7
7
|
|
8
8
|
<%- if @languages_with_page_tree.size >= 1 -%>
|
9
9
|
<%= form_tag(alchemy.copy_language_tree_admin_pages_path) do %>
|
10
|
-
<h2><%=
|
11
|
-
<p><%=
|
10
|
+
<h2><%= _t('copy_language_tree_heading') %></h2>
|
11
|
+
<p><%= _t("want_to_make_copy_of_existing_language") %></p>
|
12
12
|
<table>
|
13
13
|
<tr>
|
14
|
-
<td class="label"><%= label_tag('languages[old_lang_id]',
|
14
|
+
<td class="label"><%= label_tag('languages[old_lang_id]', _t('Language tree')) %></td>
|
15
15
|
<td class="select">
|
16
16
|
<%= select_tag("languages[old_lang_id]", options_for_select(@languages_with_page_tree.map{ |l| [l.name, l.id] }), :class => "alchemy_selectbox medium_long") %>
|
17
17
|
<%= hidden_field_tag("languages[new_lang_id]", @language.id) %>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<tr>
|
21
21
|
<td class="submit" colspan="2">
|
22
22
|
<%= hidden_field_tag("layoutpage", params[:action] == "layoutpages") if params[:action] == "layoutpages" %>
|
23
|
-
<%= submit_tag
|
23
|
+
<%= submit_tag _t("copy"), :class => 'button' %>
|
24
24
|
</td>
|
25
25
|
</tr>
|
26
26
|
</table>
|
@@ -30,22 +30,23 @@
|
|
30
30
|
<%- if params[:action] == "index" -%>
|
31
31
|
|
32
32
|
<%= form_for([:admin, Alchemy::Page.new], :remote => true) do |form| %>
|
33
|
-
<h2><%=
|
34
|
-
<p><%=
|
33
|
+
<h2><%= _t('create_language_tree_heading') %></h2>
|
34
|
+
<p><%= _t("want_to_create_new_language") %></p>
|
35
35
|
<%= form.hidden_field :name, :value => @language.frontpage_name %>
|
36
36
|
<%= form.hidden_field :language_id, :value => @language.id %>
|
37
37
|
<%= form.hidden_field :language_code, :value => @language.code %>
|
38
38
|
<%= form.hidden_field :page_layout, :value => @language.page_layout %>
|
39
39
|
<%= form.hidden_field :language_root, :value => true %>
|
40
40
|
<%= form.hidden_field :parent_id, :value => Alchemy::Page.rootpage.id %>
|
41
|
-
<%=
|
41
|
+
<%= hidden_field_tag :redirect_to, admin_pages_path %>
|
42
|
+
<%= form.button _t("create_tree_as_new_language", :language => @language.name), :class => 'button' %>
|
42
43
|
<% end %>
|
43
44
|
|
44
45
|
<%- end -%>
|
45
46
|
|
46
47
|
<%- else -%>
|
47
48
|
|
48
|
-
<p><%=
|
49
|
+
<p><%= _t("Actually this language does not exist. Please create this language first.") %></p>
|
49
50
|
|
50
51
|
<%- end -%>
|
51
52
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div id="overlay_tab_external_link">
|
2
|
-
<h2><%=
|
2
|
+
<h2><%= _t("enter_external_link") %></h2>
|
3
3
|
<%= render_message do %>
|
4
|
-
<p><%=
|
5
|
-
<p><%=
|
4
|
+
<p><%= _t(:external_link_notice_1) %></p>
|
5
|
+
<p><%= _t(:external_link_notice_2) %></p>
|
6
6
|
<% end %>
|
7
7
|
<div id="errors" class="errors">
|
8
8
|
<ul></ul>
|
@@ -18,21 +18,21 @@
|
|
18
18
|
</tr>
|
19
19
|
<tr>
|
20
20
|
<td class="label long">
|
21
|
-
<label for="extern_link_title"><%=
|
21
|
+
<label for="extern_link_title"><%= _t("link_title") %></label>
|
22
22
|
</td>
|
23
23
|
<td class="input"><%= text_field_tag "extern_link_title", '', :class => 'thin_border auto_resize link_title' %></td>
|
24
24
|
</tr>
|
25
25
|
<tr>
|
26
26
|
<td class="label long">
|
27
|
-
<label for="external_link_target"><%=
|
27
|
+
<label for="external_link_target"><%= _t("Open Link in") %>:</label>
|
28
28
|
</td>
|
29
29
|
<td class="select left">
|
30
|
-
<%= select_tag 'external_link_target', options_for_select(Alchemy::Page.link_target_options), :class => 'alchemy_selectbox link_target
|
30
|
+
<%= select_tag 'external_link_target', options_for_select(Alchemy::Page.link_target_options), :class => 'alchemy_selectbox link_target' %>
|
31
31
|
</td>
|
32
32
|
</tr>
|
33
33
|
<tr>
|
34
34
|
<td class="submit" colspan="2">
|
35
|
-
<%= link_to(
|
35
|
+
<%= link_to(_t(:apply), '#', {
|
36
36
|
:onclick => "Alchemy.LinkOverlay.createLink('external', jQuery('#external_url').val(), jQuery('#extern_link_title').val(), jQuery('#external_link_target').val());",
|
37
37
|
:class => 'button'
|
38
38
|
}) %>
|
@@ -1,24 +1,24 @@
|
|
1
1
|
<div id="overlay_tab_file_link">
|
2
2
|
<h2>
|
3
|
-
<%=
|
3
|
+
<%= _t("choose_file_to_link") %>
|
4
4
|
</h2>
|
5
5
|
<table class="window_form">
|
6
6
|
<tr>
|
7
7
|
<td class="label long">
|
8
|
-
<label for="public_filename"><%=
|
8
|
+
<label for="public_filename"><%= _t("file") %></label>
|
9
9
|
</td>
|
10
10
|
<td class="select">
|
11
11
|
<%= select_tag(
|
12
12
|
"public_filename",
|
13
13
|
options_for_select(@attachments),
|
14
|
-
:class => "alchemy_selectbox
|
14
|
+
:class => "alchemy_selectbox"
|
15
15
|
) %>
|
16
16
|
</td>
|
17
17
|
</tr>
|
18
18
|
<tr>
|
19
19
|
<td class="label long">
|
20
20
|
<label for="file_link_title">
|
21
|
-
<%=
|
21
|
+
<%= _t("link_title") %>
|
22
22
|
</label>
|
23
23
|
</td>
|
24
24
|
<td class="input">
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</tr>
|
28
28
|
<tr>
|
29
29
|
<td class="label long">
|
30
|
-
<label for="file_link_target"><%=
|
30
|
+
<label for="file_link_target"><%= _t("Open Link in") %>:</label>
|
31
31
|
</td>
|
32
32
|
<td class="select left">
|
33
33
|
<%= select_tag 'file_link_target', options_for_select(Alchemy::Page.link_target_options), :class => 'alchemy_selectbox link_target medium' %>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</tr>
|
36
36
|
<tr>
|
37
37
|
<td class="submit" colspan="2">
|
38
|
-
<%= link_to(
|
38
|
+
<%= link_to(_t(:apply), '#', {
|
39
39
|
:onclick => "Alchemy.LinkOverlay.createLink('file', jQuery('#public_filename').val(), jQuery('#file_link_title').val(), jQuery('#file_link_target').val()); Alchemy.LinkOverlay.close()",
|
40
40
|
:class => 'button'
|
41
41
|
}) %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="overlay_tab_internal_link">
|
2
|
-
<h2><%=
|
2
|
+
<h2><%= _t("internal_link_headline") %></h2>
|
3
3
|
<table class="window_form">
|
4
4
|
<tr>
|
5
5
|
<td colspan="2">
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</tr>
|
15
15
|
<tr>
|
16
16
|
<td class="label long">
|
17
|
-
<label for="internal_link_title"><%=
|
17
|
+
<label for="internal_link_title"><%= _t('Title') %>:</label>
|
18
18
|
</td>
|
19
19
|
<td class="input">
|
20
20
|
<%= text_field_tag "internal_link_title", '', :class => 'thin_border auto_resize link_title' %>
|
@@ -22,17 +22,17 @@
|
|
22
22
|
</tr>
|
23
23
|
<tr>
|
24
24
|
<td class="label long">
|
25
|
-
<label for="internal_link_target"><%=
|
25
|
+
<label for="internal_link_target"><%= _t("Open Link in") %>:</label>
|
26
26
|
</td>
|
27
27
|
<td class="select left">
|
28
|
-
<%= select_tag 'internal_link_target', options_for_select(Alchemy::Page.link_target_options), :class => 'alchemy_selectbox link_target
|
28
|
+
<%= select_tag 'internal_link_target', options_for_select(Alchemy::Page.link_target_options), :class => 'alchemy_selectbox link_target' %>
|
29
29
|
</td>
|
30
30
|
</tr>
|
31
31
|
<tr>
|
32
32
|
<td class="submit" colspan="2">
|
33
33
|
<%= hidden_field_tag(:internal_urlname) %>
|
34
34
|
<%= hidden_field_tag(:page_anchor) %>
|
35
|
-
<%= link_to(
|
35
|
+
<%= link_to(_t(:apply), '#', {
|
36
36
|
:onclick => "Alchemy.LinkOverlay.createLink('internal', jQuery('#internal_urlname').val() + jQuery('#page_anchor').val(), jQuery('#internal_link_title').val(), jQuery('#internal_link_target').val()); Alchemy.LinkOverlay.close()",
|
37
37
|
:class => 'button'
|
38
38
|
}) %>
|
@@ -2,25 +2,25 @@
|
|
2
2
|
<div class="sitemap_page<%= page.locked ? ' locked' : '' %>">
|
3
3
|
<div class="sitemap_left_images">
|
4
4
|
<%= sitemapFolderLink(page) unless page.children.blank? || @sorting %>
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
5
|
+
<div class="site_status <%= @sorting && page.level > 1 ? 'handle' : nil %>">
|
6
|
+
<div class="tooltip">
|
7
|
+
<h3><%= _t("page_type") %>:</h3>
|
8
|
+
<p><%= page.layout_display_name %></p>
|
9
|
+
<h3><%= _t("page_status") %>:</h3>
|
10
|
+
<p><%= combined_page_status(page) %></p>
|
11
|
+
<h3><%= _t(:created_at) %>:</h3>
|
12
|
+
<p><%= l(page.created_at) %></p>
|
13
|
+
<h3><%= _t(:created_by) %>:</h3>
|
14
|
+
<p><%= page.creator %></p>
|
15
|
+
<h3><%= _t(:updated_at) %>:</h3>
|
16
|
+
<p><%= l(page.updated_at) %></p>
|
17
|
+
<h3><%= _t(:updated_by) %>:</h3>
|
18
|
+
<p><%= page.updater %></p>
|
19
|
+
<%- if page.locked? -%>
|
20
|
+
<h3><%= _t("currently_edited_by") %>:</h3>
|
21
|
+
<p><%= page.current_editor %></p>
|
22
|
+
<%- end -%>
|
23
|
+
</div>
|
24
24
|
</div>
|
25
25
|
</div>
|
26
26
|
<div class="sitemap_right_tools">
|
@@ -30,11 +30,11 @@
|
|
30
30
|
render_icon('configure_page'),
|
31
31
|
alchemy.configure_admin_page_path(page),
|
32
32
|
{
|
33
|
-
:title =>
|
33
|
+
:title => _t('edit_page_properties'),
|
34
34
|
:size => page.redirects_to_external? ? '410x270' : '410x655'
|
35
35
|
},
|
36
36
|
:class => '',
|
37
|
-
:title =>
|
37
|
+
:title => _t('edit_page_properties')
|
38
38
|
) -%>
|
39
39
|
<%- end -%>
|
40
40
|
<%- permitted_to?([:new, :destroy, :copy], :alchemy_admin_pages) do -%>
|
@@ -49,13 +49,13 @@
|
|
49
49
|
:remote => true,
|
50
50
|
:method => :post,
|
51
51
|
:class => "",
|
52
|
-
:title =>
|
52
|
+
:title => _t("copy_page")
|
53
53
|
) %>
|
54
54
|
<%- end -%>
|
55
55
|
<%- permitted_to?(:destroy, :alchemy_admin_pages) do -%>
|
56
56
|
<%= link_to_confirmation_window(
|
57
57
|
render_icon('delete_page'),
|
58
|
-
|
58
|
+
_t("confirm_to_delete_page"),
|
59
59
|
url_for(
|
60
60
|
:controller => 'pages',
|
61
61
|
:action => 'destroy',
|
@@ -63,7 +63,7 @@
|
|
63
63
|
),
|
64
64
|
{
|
65
65
|
:class => "",
|
66
|
-
:title =>
|
66
|
+
:title => _t("delete_page")
|
67
67
|
}
|
68
68
|
) -%>
|
69
69
|
<%- end -%>
|
@@ -72,12 +72,12 @@
|
|
72
72
|
render_icon('add_page'),
|
73
73
|
alchemy.new_admin_page_path(:parent_id => page.id),
|
74
74
|
{
|
75
|
-
:title =>
|
75
|
+
:title => _t('create_page'),
|
76
76
|
:size => '340x150',
|
77
77
|
:overflow => true
|
78
78
|
},
|
79
79
|
:class => '',
|
80
|
-
:title =>
|
80
|
+
:title => _t('create_page')
|
81
81
|
) -%>
|
82
82
|
<%- end -%>
|
83
83
|
</span>
|
@@ -91,7 +91,7 @@
|
|
91
91
|
<%- if page.redirects_to_external? -%>
|
92
92
|
<span class="sitemap_pagename_link <%= cycle('even', 'odd') %> inactive"><%= page.name %></span>
|
93
93
|
<span class="redirect_url" title="<%= h page.urlname %>">
|
94
|
-
» <%=
|
94
|
+
» <%= _t('Redirects to') %>:
|
95
95
|
<%= h page.urlname %>
|
96
96
|
</span>
|
97
97
|
<%- else -%>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
@sorting,
|
101
101
|
page.name,
|
102
102
|
alchemy.edit_admin_page_path(page),
|
103
|
-
:title =>
|
103
|
+
:title => _t("edit_page"),
|
104
104
|
:class => "sitemap_pagename_link #{cycle_class}"
|
105
105
|
) { content_tag('span', page.name, :class => "sitemap_pagename_link #{cycle_class}") } -%>
|
106
106
|
<%- end -%>
|