refinerycms 0.9.7.11 → 0.9.7.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/Gemfile +6 -6
  2. data/bin/refinerycms +7 -0
  3. data/changelog.md +13 -1
  4. data/config/acts_as_indexed_config.rb +7 -4
  5. data/config/application.rb +5 -0
  6. data/public/images/refinery/icons/ajax-loader.gif +0 -0
  7. data/public/javascripts/jquery/jquery.corner.js +7 -1
  8. data/public/javascripts/jquery/jquery.jcarousel.js +6 -2
  9. data/public/javascripts/refinery/admin.js +22 -11
  10. data/public/javascripts/refinery/boot_wym.js +7 -3
  11. data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +11 -11
  12. data/public/stylesheets/ie7.css +1 -1
  13. data/public/stylesheets/refinery/formatting.css +4 -0
  14. data/public/stylesheets/refinery/refinery.css +43 -31
  15. data/readme.md +2 -2
  16. data/themes/demolicious/stylesheets/application.css +6 -6
  17. data/themes/demolicious/stylesheets/formatting.css +1 -1
  18. data/themes/hemingway/stylesheets/application.css +12 -12
  19. data/vendor/plugins/attachment_fu/init.rb +1 -1
  20. data/vendor/plugins/authentication/config/locales/nl.yml +4 -0
  21. data/vendor/plugins/authentication/config/locales/ru.yml +80 -0
  22. data/vendor/plugins/dashboard/app/views/admin/dashboard/_recent_inquiries.html.erb +2 -3
  23. data/vendor/plugins/dashboard/config/locales/nl.yml +4 -2
  24. data/vendor/plugins/dashboard/config/locales/ru.yml +27 -0
  25. data/vendor/plugins/images/config/locales/nl.yml +4 -0
  26. data/vendor/plugins/images/config/locales/ru.yml +46 -0
  27. data/vendor/plugins/inquiries/app/models/inquiry.rb +6 -2
  28. data/vendor/plugins/inquiries/app/views/inquiries/new.html.erb +1 -1
  29. data/vendor/plugins/inquiries/config/locales/nl.yml +13 -1
  30. data/vendor/plugins/inquiries/config/locales/ru.yml +79 -0
  31. data/vendor/plugins/pages/app/controllers/admin/pages_controller.rb +1 -1
  32. data/vendor/plugins/pages/app/models/page.rb +25 -16
  33. data/vendor/plugins/pages/app/views/admin/pages/_page.html.erb +6 -5
  34. data/vendor/plugins/pages/config/locales/nl.yml +50 -0
  35. data/vendor/plugins/pages/config/locales/ru.yml +97 -0
  36. data/vendor/plugins/refinery/app/views/layouts/admin.html.erb +7 -9
  37. data/vendor/plugins/refinery/app/views/layouts/application.html.erb +1 -1
  38. data/vendor/plugins/refinery/app/views/shared/_content_page.html.erb +2 -2
  39. data/vendor/plugins/refinery/app/views/shared/_footer.html.erb +2 -2
  40. data/vendor/plugins/refinery/app/views/shared/_head.html.erb +1 -1
  41. data/vendor/plugins/refinery/app/views/shared/_header.html.erb +2 -2
  42. data/vendor/plugins/refinery/app/views/shared/_menu.html.erb +9 -7
  43. data/vendor/plugins/refinery/app/views/shared/_menu_branch.html.erb +12 -10
  44. data/vendor/plugins/refinery/app/views/shared/_site_bar.html.erb +2 -2
  45. data/vendor/plugins/refinery/config/locales/nl.yml +7 -0
  46. data/vendor/plugins/refinery/config/locales/ru.yml +61 -0
  47. data/vendor/plugins/refinery/lib/crud.rb +1 -3
  48. data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/seed.rb +1 -1
  49. data/vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/admin/index.html.erb +5 -1
  50. data/vendor/plugins/refinery/lib/refinery.rb +1 -1
  51. data/vendor/plugins/refinery/lib/refinery/admin_base_controller.rb +8 -2
  52. data/vendor/plugins/refinery/lib/refinery/application_helper.rb +1 -1
  53. data/vendor/plugins/refinery/rails/init.rb +0 -4
  54. data/vendor/plugins/refinery_settings/config/locales/nl.yml +4 -1
  55. data/vendor/plugins/refinery_settings/config/locales/ru.yml +45 -0
  56. data/vendor/plugins/resources/config/locales/nl.yml +4 -1
  57. data/vendor/plugins/resources/config/locales/ru.yml +33 -0
  58. data/vendor/plugins/themes/generators/refinery_theme/refinery_theme_generator.rb +5 -0
  59. metadata +13 -5
  60. data/public/stylesheets/ie6.css +0 -0
@@ -13,7 +13,7 @@ class Admin::PagesController < Admin::BaseController
13
13
 
14
14
  def new
15
15
  @page = Page.new
16
- RefinerySetting.find_or_set(:default_page_parts, ["Body", "Side Body"]).each_with_index do |page_part, index|
16
+ Page.default_parts.each_with_index do |page_part, index|
17
17
  @page.parts << PagePart.new(:title => page_part, :position => index)
18
18
  end
19
19
  end
@@ -15,7 +15,6 @@ class Page < ActiveRecord::Base
15
15
 
16
16
  before_destroy :deletable?
17
17
  after_save :reposition_parts!
18
-
19
18
  after_save :invalidate_child_cached_url
20
19
 
21
20
  # when a dialog pops up to link to a page, how many pages per page should there be
@@ -164,15 +163,27 @@ class Page < ActiveRecord::Base
164
163
  self.siblings.reject { |sibling| not sibling.in_menu? }
165
164
  end
166
165
 
167
- # Returns all the top level pages, usually to render the top level navigation.
168
- def self.top_level(include_children = false)
169
- include_associations = [:parts]
170
- include_associations.push(:slugs) if self.class.methods.include? "find_one_with_friendly"
171
- include_associations.push(:children) if include_children
172
- find_all_by_parent_id(nil,
173
- :conditions => {:show_in_menu => true, :draft => false},
174
- :order => "position ASC",
175
- :include => include_associations)
166
+ class << self
167
+ # Accessor to find out the default page parts created for each new page
168
+ def default_parts
169
+ RefinerySetting.find_or_set(:default_page_parts, ["Body", "Side Body"])
170
+ end
171
+
172
+ # Returns how many pages per page should there be when paginating pages
173
+ def per_page(dialog = false)
174
+ dialog ? PAGES_PER_DIALOG : PAGES_PER_ADMIN_INDEX
175
+ end
176
+
177
+ # Returns all the top level pages, usually to render the top level navigation.
178
+ def top_level(include_children = false)
179
+ include_associations = [:parts]
180
+ include_associations.push(:slugs) if self.class.methods.include? "find_one_with_friendly"
181
+ include_associations.push(:children) if include_children
182
+ find_all_by_parent_id(nil,
183
+ :conditions => {:show_in_menu => true, :draft => false},
184
+ :order => "position ASC",
185
+ :include => include_associations.presence)
186
+ end
176
187
  end
177
188
 
178
189
  # Accessor method to get a page part from a page.
@@ -186,7 +197,10 @@ class Page < ActiveRecord::Base
186
197
  # the way that we call page parts seems flawed, will probably revert to page.parts[:title] in a future release.
187
198
  if (super_value = super).blank?
188
199
  # self.parts is already eager loaded so we can now just grab the first element matching the title we specified.
189
- part = self.parts.detect {|part| (part.title == part_title.to_s) || (part.title.downcase.gsub(" ", "_") == part_title.to_s.downcase.gsub(" ", "_")) }
200
+ part = self.parts.detect do |part|
201
+ part.title == part_title.to_s or
202
+ part.title.downcase.gsub(" ", "_") == part_title.to_s.downcase.gsub(" ", "_")
203
+ end
190
204
 
191
205
  return part.body unless part.nil?
192
206
  end
@@ -208,11 +222,6 @@ class Page < ActiveRecord::Base
208
222
  self.parts.collect {|p| p.body}.join(" ")
209
223
  end
210
224
 
211
- # Returns how many pages per page should there be when paginating pages
212
- def self.per_page(dialog = false)
213
- dialog ? PAGES_PER_DIALOG : PAGES_PER_ADMIN_INDEX
214
- end
215
-
216
225
  ##
217
226
  # Protects generated slugs from title if they are in the list of reserved words
218
227
  # This applies mostly to plugin-generated pages.
@@ -24,9 +24,10 @@
24
24
  :title => t('.confirm_delete_page_title') if page.deletable? %>
25
25
  </span>
26
26
  </div>
27
- <% if (children = page.children).any? -%>
28
- <ul class='nested'>
29
- <%= render :partial => 'page', :collection => children %>
30
- </ul>
31
- <% end -%>
27
+ <ul class='nested'>
28
+ <% if (children = page.children).any? -%>
29
+ <%= render :partial => 'page', :collection => children %>
30
+ <% end -%>
31
+ </ul>
32
+
32
33
  </li>
@@ -4,8 +4,20 @@ nl:
4
4
  title: "Pagina's"
5
5
  admin:
6
6
  pages:
7
+ page:
8
+ confirm_delete_page_title: Verwijder deze pagina
9
+ confirm_delete_page_message: "Weet je zeker dat je deze pagina wilt verwijderen '{{title}}'?"
10
+ view_live: Bekijk deze pagina live <br/><em>(opent in een nieuw venster)</em>
11
+ edit_this_page: Bewerk deze pagina
12
+ hidden: verborgen
13
+ draft: ontwerp
14
+ form_new_page_parts:
15
+ title: Titel
7
16
  form_advanced_options:
8
17
  title: Titel
18
+ toggle_advanced_options: Klik om meta tag eigenschappen en menu opties te tonen
19
+ parent_page: Bovenliggende pagina
20
+ parent_page_help: "Je kunt een pagina binnen een andere pagina plaatsen door het in de lijst te selecteren. Als je wilt dat dit de pagina geen bovenliggende pagina's heeft, laat dit veld dan leeg."
9
21
  create_content_section: Maak een nieuw content sectie aan
10
22
  delete_content_section: Verwijder een content sectie
11
23
  advanced_options: Uitgebreide opties
@@ -28,11 +40,21 @@ nl:
28
40
  save_as_draft: Sla op als concept
29
41
  save: Opslaan
30
42
  cancel: Annuleren
43
+
44
+ skip_to_first_child: Sla top-level pagina over.
45
+ skip_to_first_child_label: Stuur bezoekers door naar de eerste sub-level pagina.
46
+ skip_to_first_child_help: "Deze optie maakt van deze pagina een link naar de onderliggende pagina. Dit kan handig zijn voor het groeperen van pagina's."
47
+ link_url: Stuur deze pagina door naar een andere website of pagina.
48
+ link_url_help: "Als je wilt dat deze pagina doorlinkt naar een andere website of pagina als je er op klikt in de menu, voer dan een URL in. Bijvoorbeeld: http://google.com/"
49
+ custom_title_help: "Als je wilt dat de pagina een andere titel heeft dan de gene die vertoont wordt in de menu, selecteer dan &apos;Text&apos; en vul het in."
50
+ show_in_menu_help: "Deselecteer deze optie om de link naar de pagina van de menu te verwijderen. Dit kan handig zijn als je een pagina hebt die mensen niet direct via een link mogen tonen."
51
+
31
52
  form_advanced_options_seo:
32
53
  seo: Zoekmachine optimalisatie
33
54
  seo_override_title: Browser titel
34
55
  seo_override_title_help: Als u de standaard titel van het browservenster wilt wijzigen, kunt u hier een alternatief invullen.
35
56
  meta_keywords_title: Meta zoekwoorden
57
+ meta_keywords_help: "Voer 5-10 keywords die gerelateerd zijn aan deze pagina. Scheidt deze keywords met comma's."
36
58
  meta_description_help: Voeg 5 tot 10 meta zoekwoorden toe. Gebruik een komma om de zoekwoorden te scheiden.
37
59
  meta_description_title: Meta omschrijving
38
60
  meta_description_help: Voer een compacte (twee a drie zinnen) pagina beschrijving in.
@@ -48,6 +70,34 @@ nl:
48
70
  reorder_pages_done: "Klaar met het wijzingen van de volgorde van de pagina's"
49
71
  sorry_no_results: Helaas! Er zijn geen resultaten gevonden.
50
72
  no_pages_yet: "Er zijn nog geen pagina's. Druk op 'Maak een nieuwe pagina' om de eerste aan te maken."
73
+
74
+ pages_dialogs:
75
+ not_allowed: Je hebt geen rechten om deze functie te gebruiken.
76
+ page_link:
77
+ link_to_this_page: Link naar deze pagina
78
+ link_to:
79
+ your_page:
80
+ tab_name: Jouw pagina
81
+ web_address:
82
+ tab_name: Website
83
+ location: Locatie
84
+ new_window: Nieuw venster
85
+ new_window_label: Selecteer deze optie om de link in een nieuw venster te openen.
86
+ not_sure: Weet je niet zeker wat je in het bovenstaande veld kan invoeren?
87
+ step1: Zoek de pagina op het internet waar je naartoe wilt linken.
88
+ step2: "Kopieër het web adres uit het adres balk van je browser en plak het in het bovenstaande veld."
89
+ email_address:
90
+ tab_name: Email adres
91
+ subject_line_optional: Optioneel onderwerp
92
+ body_optional: Optioneel inhoud
93
+ not_sure: Niet zeker wat je in de bovenstaande velden moet invullen?
94
+ step1: "Schrijf of kopieër en plak (bijvoorbeeld uit je adresboek) het email adres in het bovenstaande '<strong>Email Adres</strong>' veld."
95
+ step2: "Gebruik het bovenstaande '<strong>Optioneel onderwerp</strong>' veld als je het bericht samengesteld wilt hebben met een <strong>voorgeschreven onderwerp regel</strong>."
96
+ step3: "Gebruik het bovenstaande '<strong>Optioneel inhoud</strong>' veld als je het bericht samengesteld wilt hebben met <strong>voorgeschreven inhoud</strong>."
97
+ your_resource:
98
+ tab_name: Jouw bestand
99
+ link_to_this_resource: Link naar dit bestand
100
+
51
101
  activerecord:
52
102
  attributes:
53
103
  page:
@@ -0,0 +1,97 @@
1
+ ru:
2
+ plugins:
3
+ refinery_pages:
4
+ title: Pages
5
+ admin:
6
+ pages_dialogs:
7
+ not_allowed: You do not have permission to access this feature.
8
+ page_link:
9
+ link_to_this_page: Link to this page
10
+ link_to:
11
+ your_page:
12
+ tab_name: Your page
13
+ web_address:
14
+ tab_name: Website
15
+ location: Location
16
+ new_window: New window
17
+ new_window_label: Check this box to have the link open in a new browser window.
18
+ not_sure: Not sure what to put in the box above?
19
+ step1: Find the page on the web you want to link to.
20
+ step2: "Copy the web address from your browser's address bar and paste it into the box above."
21
+ email_address:
22
+ tab_name: Email address
23
+ subject_line_optional: Optional subject
24
+ body_optional: Optional body
25
+ not_sure: Not sure what to put in the boxes above?
26
+ step1: "Write or copy and paste (e.g. from your address book) the email address to link to into the '<strong>Email Address</strong>' box above."
27
+ step2: "Use the '<strong>Subject Line</strong>' box above if you want the message to be composed with a <strong>pre-written subject line</strong>."
28
+ step3: "Use the <strong>Email Body</strong> box above if you want the message to be composed with a <strong>pre-written message</strong>."
29
+ your_resource:
30
+ tab_name: Your file
31
+ link_to_this_resource: Link to this file
32
+ pages:
33
+ page:
34
+ view_live: View this page live <br/><em>(opens in a new window)</em>
35
+ edit_this_page: Edit this page
36
+ confirm_delete_page_title: Delete this page
37
+ confirm_delete_page_message: "Are you sure you want to delete the page '{{title}}'?"
38
+ hidden: hidden
39
+ draft: draft
40
+ form_new_page_parts:
41
+ title: Title
42
+ form_advanced_options:
43
+ toggle_advanced_options: Click to access meta tag settings and menu options
44
+ parent_page: Parent page
45
+ title: Title
46
+ create_content_section: Create content section
47
+ delete_content_section: Delete content section
48
+ advanced_options: Advanced Options
49
+ explain_page_different_title: If you want the page to have a different title than the one that shows in the menu and browser title then enter it here.
50
+ parent_id_title: Parent
51
+ custom_title: Custom title
52
+ title_type: "Type:"
53
+ title_types:
54
+ none: None
55
+ text: Text
56
+ image: Image
57
+ custom_url: Custom URL
58
+ custom_url_explanation: "Enter a URL if this page links to an external site or to a pre-existing resource e.g. a contact page. <br/> Note: This URL must point to a location that exists; a new one will not be created."
59
+ draft: Draft
60
+ show_in_menu_title: Show in menu
61
+ show_in_menu_description: Display this page in the site menu
62
+ show_in_menu_help: "Uncheck this box if you want to remove a page from your site menu. This can be handy if you have a page you want to link people to directly but don&apos;t want to show the page in the menu."
63
+ draft: Draft
64
+ save_as_draft: Save as Draft
65
+ save: Save
66
+ cancel: Cancel
67
+ skip_to_first_child: Skip top-level page
68
+ skip_to_first_child_label: Redirect visitors to the first sub-level page.
69
+ skip_to_first_child_help: "This option makes this page link to the first page underneath. This can be useful when grouping pages together."
70
+ link_url: "Forward this page to another website or page"
71
+ link_url_help: "If you want this page to go to another website or page when you click this page in the menu, enter a URL. e.g. http://google.com otherwise leave it blank"
72
+ parent_page_help: "You can put a page under another page by selecting it in the list. If you want this page to be a top-level page, just leave it blank."
73
+ custom_title_help: "If you want the page to have a different title than the one that shows in the menu then select &apos;Text&apos; and enter it here."
74
+ form_advanced_options_seo:
75
+ seo: Search Engine Optimization
76
+ seo_override_title: Browser title
77
+ seo_override_title_help: "Enter a 5-10 word title that summarizes the contents of this page."
78
+ meta_keywords_title: Meta keywords
79
+ meta_keywords_help: Enter 5-10 keywords that relate to this page. Separate keywords by a comma.
80
+ meta_description_title: Meta description
81
+ meta_description_help: Enter a concise two or three sentences describing what this page is about.
82
+ js:
83
+ content_section:
84
+ create: Create Content Section
85
+ already_exists: "A content section with that title already exists, please choose another."
86
+ title_empty: "You have not entered a title for the content section, please enter one."
87
+ confirm_delete: "This will remove the content section {{section_name}} when the page is saved and erase all content that has been entered into it, Are you sure?"
88
+ index:
89
+ create_new_page: Create New Page
90
+ reorder_pages: Reorder Pages
91
+ reorder_pages_done: Done Reordering Pages
92
+ sorry_no_results: Sorry! There are no results found.
93
+ no_pages_yet: There are no pages yet. Click "Create New Page" to add your first page.
94
+ activerecord:
95
+ attributes:
96
+ page:
97
+ skip_to_first_child: "Skip to first child?"
@@ -4,15 +4,13 @@
4
4
  <body<%= " class='login #{::Refinery::I18n.current_locale}'" unless logged_in? %><%= " class='splash #{::Refinery::I18n.current_locale}'" if logged_in? and action_name == "index" %>>
5
5
  <%= render :partial => '/shared/site_bar' %>
6
6
  <div id='tooltip_container'></div>
7
- <div id='header'>
8
- <div id='header_content'>
9
- <% if logged_in? %>
10
- <%= render :partial => "/admin/menu" %>
11
- <% else %>
12
- <h1><%= yield :header %></h1>
13
- <% end %>
14
- </div>
15
- </div>
7
+ <header>
8
+ <% if logged_in? %>
9
+ <%= render :partial => "/admin/menu" %>
10
+ <% else %>
11
+ <h1><%= yield :header %></h1>
12
+ <% end %>
13
+ </header>
16
14
  <div id="page_container">
17
15
  <div id="page">
18
16
  <div id="content" class="clearfix">
@@ -6,7 +6,7 @@
6
6
  <%= render :partial => "/shared/ie6check" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
7
7
  <div id='page_container'>
8
8
  <div id='page'>
9
- <div id='header' class='clearfix'>
9
+ <div id='header'>
10
10
  <%= render :partial => "/shared/header" %>
11
11
  </div>
12
12
  <div id='body' class='clearfix'>
@@ -5,8 +5,8 @@
5
5
 
6
6
  sections = [
7
7
  {:yield => :body_content_title, :fallback => page_title, :id => 'body_content_page_title', :title => true},
8
- {:yield => :body_content_left, :fallback => @page.present? ? @page[:body] : nil},
9
- {:yield => :body_content_right, :fallback => @page.present? ? @page[:side_body] : nil}
8
+ {:yield => :body_content_left, :fallback => @page.present? ? @page[Page.default_parts.first.to_sym] : nil},
9
+ {:yield => :body_content_right, :fallback => @page.present? ? @page[Page.default_parts.second.to_sym] : nil}
10
10
  ].reject {|section| hide_sections.include?(section[:yield]) }
11
11
 
12
12
  css = []
@@ -1,5 +1,5 @@
1
- <div id='footer_content'>
1
+ <footer>
2
2
  <p>
3
3
  Copyright &copy; <%= Time.now.year %> <%= RefinerySetting[:site_name] %>
4
4
  </p>
5
- </div>
5
+ </footer>
@@ -9,7 +9,7 @@
9
9
  <%= stylesheet_link_tag "home", :theme => theme if home_page? %>
10
10
  <%= "<!--[if IE 7]>#{stylesheet_link_tag 'ie7'}<![endif]-->" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
11
11
  <link rel="shortcut icon" href="/favicon.ico" />
12
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
+ <meta charset="utf-8">
13
13
  <%= "<meta name=\"keywords\" content=\"#{h @meta.meta_keywords}\" />" if @meta.meta_keywords.present? %>
14
14
  <%= "<meta name=\"description\" content=\"#{h @meta.meta_description}\" />" if @meta.meta_description.present? -%>
15
15
  <%= yield :head_libraries %>
@@ -1,4 +1,4 @@
1
- <div id='header_content'>
1
+ <header>
2
2
  <h1><%= link_to RefinerySetting[:site_name], root_url(:only_path => true) %></h1>
3
3
  <%= render :partial => "/shared/menu" %>
4
- </div>
4
+ </header>
@@ -8,13 +8,15 @@
8
8
  if (collection ||= @menu_pages).any?
9
9
  -%>
10
10
  <nav id='<%= dom_id %>' class='<%= %W(#{css} clearfix).join(' ') %>'>
11
- <%= render :partial => "/shared/menu_branch",
12
- :collection => collection,
13
- :locals => {
14
- :hide_children => RefinerySetting.find_or_set(:menu_hide_children, false),
15
- :sibling_count => collection.size - 1
16
- }
17
- -%>
11
+ <ul>
12
+ <%= render :partial => "/shared/menu_branch",
13
+ :collection => collection,
14
+ :locals => {
15
+ :hide_children => hide_children ||= RefinerySetting.find_or_set(:menu_hide_children, false),
16
+ :sibling_count => collection.size - 1
17
+ }
18
+ -%>
19
+ </ul>
18
20
  </nav>
19
21
  <%
20
22
  end
@@ -1,21 +1,23 @@
1
1
  <%
2
- css = (css = css_for_menu_branch(menu_branch, menu_branch_counter)).any? ? " class='#{css.join(' ')}'" : nil
2
+ css = (css = css_for_menu_branch(menu_branch, menu_branch_counter, sibling_count||=nil)).any? ? " class='#{css.join(' ')}'" : nil
3
3
  dom_id = (menu_branch.parent_id.nil? and menu_branch.title.present?) ? " id='item_#{menu_branch_counter}'" : nil
4
4
  -%>
5
- <div<%= css -%><%= dom_id -%>>
5
+ <li<%= css -%><%= dom_id -%>>
6
6
  <%= link_to menu_branch.title, menu_branch.url %>
7
7
 
8
8
  <% unless hide_children or
9
9
  menu_branch.parent_id.present? or
10
10
  (children = menu_branch.children.reject{|c| !c.in_menu?}).empty? %>
11
11
  <nav class='clearfix'>
12
- <%=
13
- render :partial => "/shared/menu_branch",
14
- :collection => children,
15
- :locals => {
16
- :hide_children => hide_children,
17
- :sibling_count => children.size - 1
18
- } -%>
12
+ <ul>
13
+ <%=
14
+ render :partial => "/shared/menu_branch",
15
+ :collection => children,
16
+ :locals => {
17
+ :hide_children => hide_children,
18
+ :sibling_count => children.size - 1
19
+ } -%>
20
+ </ul>
19
21
  </nav>
20
22
  <% end %>
21
- </div>
23
+ </li>
@@ -7,8 +7,8 @@
7
7
  <script type='text/javascript'>
8
8
  if (typeof($) == 'function') {
9
9
  $(document).ready(function() {
10
- logo = $('#site_bar_content #site_bar_refinery_cms_logo');
11
- $(logo).css('left', ($('#site_bar_content').width() / 2) - ($(logo).width() / 2));
10
+ $logo = $('#site_bar_content #site_bar_refinery_cms_logo');
11
+ $logo.css('left', ($('#site_bar_content').width() / 2) - ($logo.width() / 2));
12
12
 
13
13
  if ($.isFunction($('#editor_switch a').corner)) {
14
14
  $('#editor_switch a').corner('6px');
@@ -25,6 +25,9 @@ nl:
25
25
  log_out: Afmelden
26
26
  switch_to_your_website: Ga naar de website
27
27
  switch_to_your_website_editor: Ga terug naar de editor
28
+ message:
29
+ close: Sluiten
30
+ close_this_message: Sluit dit bericht
28
31
  admin:
29
32
  message:
30
33
  close: sluiten
@@ -37,11 +40,15 @@ nl:
37
40
  cancel: Annuleer
38
41
  or_continue: of
39
42
  cancel_lose_changes: "Als u annuleert, zullen alle wijzingen voor '{{object_name}}' niet worden opgeslagen!"
43
+ delete: Verwijder
44
+ previous: Vorige
45
+ next: Volgende
40
46
  image_picker:
41
47
  none_selected: "Er is op dit moment geen {{what}} geselecteerd. Klik a.u.b. hier om er een toe te voegen."
42
48
  remove_current: "Verwijder de huidige {{what}}"
43
49
  change: Klik hier om de afbeelding te wijzigen
44
50
  image: afbeelding
51
+ show: Toon
45
52
  resource_picker:
46
53
  none_selected: "Er is op dit moment geen {{what}} geselecteerd. Klik a.u.b. hier om er een toe te voegen."
47
54
  current: "Huidige {{what}}"
@@ -0,0 +1,61 @@
1
+ ru:
2
+ welcome:
3
+ there_are_no_users: "Ни одного пользователя не создано. Вы будите первым."
4
+ remember_admin_location: "Запомнить администратора как:"
5
+ lets_start: "Ок, давайте введем настройки для входа в систему..."
6
+ continue: "Далее..."
7
+ admin:
8
+ menu:
9
+ reorder_menu: "Поменять порядок"
10
+ reorder_menu_done: "Порядок изменен"
11
+ search: "Поиск"
12
+ search_submit: "Далее"
13
+ search_results_for: "Результаты поиска для '{{query}}'"
14
+ search_no_results: "Ничего не найдено"
15
+ images:
16
+ existing_image:
17
+ submit_insert: "Встатвить"
18
+ refinery:
19
+ other: "Иначе {{what}}"
20
+ reorder: "Поменять порядок {{what}}"
21
+ reorder_done: "Закончено {{what}}"
22
+ crudify:
23
+ created: "{{what}} создан(а)."
24
+ updated: "{{what}} отредактирован(а)."
25
+ destroyed: "{{what}} уничтожен(а)."
26
+ shared:
27
+ site_bar:
28
+ log_out: "Выйти"
29
+ switch_to_your_website: "Перейти на сайт"
30
+ switch_to_your_website_editor: "Прейти в администарторскую"
31
+ admin:
32
+ message:
33
+ close: "Закрыть"
34
+ continue_editing:
35
+ save_and_continue_editing: "Сохранить и продолжить"
36
+ form_actions:
37
+ or: "или"
38
+ save: "Сохранить"
39
+ or_cancel: "или"
40
+ cancel: "Отмена"
41
+ or_continue: "или"
42
+ cancel_lose_changes: "Cancelling will lose all changes you've made to this {{object_name}}"
43
+ delete: "Удалить"
44
+ previous: "Предпросмотр"
45
+ next: "Следующее"
46
+ image_picker:
47
+ none_selected: "There is currently no {{what}} selected, please click here to add one."
48
+ remove_current: "Remove current {{what}}"
49
+ change: Click here to pick a image
50
+ image: image
51
+ show: Show
52
+ resource_picker:
53
+ none_selected: "There is currently no {{what}} selected, please click here to add one."
54
+ current: "Current {{what}}"
55
+ download_current: "Download current {{what}}"
56
+ opens_in_new_window: Opens in a new window
57
+ remove_current: "Remove current {{what}}"
58
+ resource: resource
59
+ message:
60
+ close: Close
61
+ close_this_message: Close this message