locomotive_cms 0.0.2.9 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/app/controllers/admin/accounts_controller.rb +5 -11
- data/app/controllers/admin/asset_collections_controller.rb +5 -46
- data/app/controllers/admin/assets_controller.rb +12 -30
- data/app/controllers/admin/base_controller.rb +15 -19
- data/app/controllers/admin/content_types_controller.rb +1 -46
- data/app/controllers/admin/contents_controller.rb +15 -42
- data/app/controllers/admin/current_sites_controller.rb +10 -11
- data/app/controllers/admin/custom_fields_controller.rb +1 -1
- data/app/controllers/admin/layouts_controller.rb +2 -46
- data/app/controllers/admin/memberships_controller.rb +5 -18
- data/app/controllers/admin/my_accounts_controller.rb +11 -9
- data/app/controllers/admin/pages_controller.rb +6 -45
- data/app/controllers/admin/sitemaps_controller.rb +16 -0
- data/app/controllers/admin/sites_controller.rb +12 -19
- data/app/controllers/admin/snippets_controller.rb +2 -45
- data/app/controllers/admin/theme_assets_controller.rb +13 -54
- data/app/helpers/admin/assets_helper.rb +1 -1
- data/app/helpers/admin/base_helper.rb +2 -2
- data/app/helpers/admin/pages_helper.rb +13 -0
- data/app/models/membership.rb +4 -1
- data/app/models/page.rb +8 -1
- data/app/models/page_part.rb +1 -4
- data/app/views/admin/asset_collections/_asset.html.haml +1 -1
- data/app/views/admin/asset_collections/edit.html.haml +7 -7
- data/app/views/admin/asset_collections/new.html.haml +1 -1
- data/app/views/admin/assets/_form.html.haml +1 -1
- data/app/views/admin/assets/edit.html.haml +3 -3
- data/app/views/admin/assets/new.html.haml +2 -2
- data/app/views/admin/content_types/edit.html.haml +1 -1
- data/app/views/admin/contents/edit.html.haml +1 -1
- data/app/views/admin/contents/index.html.haml +1 -1
- data/app/views/admin/contents/new.html.haml +1 -1
- data/app/views/admin/current_sites/edit.html.haml +3 -3
- data/app/views/admin/layouts/edit.html.haml +2 -2
- data/app/views/admin/layouts/index.html.haml +1 -1
- data/app/views/admin/my_accounts/edit.html.haml +3 -3
- data/app/views/admin/pages/edit.html.haml +1 -1
- data/app/views/admin/pages/index.html.haml +1 -1
- data/app/views/admin/shared/_head.html.haml +1 -1
- data/app/views/admin/shared/menu/_assets.html.haml +2 -2
- data/app/views/admin/sitemaps/show.xml.builder +18 -0
- data/app/views/admin/snippets/edit.html.haml +2 -2
- data/app/views/admin/snippets/index.html.haml +1 -1
- data/app/views/admin/theme_assets/_form.html.haml +9 -9
- data/app/views/admin/theme_assets/edit.html.haml +4 -4
- data/app/views/admin/theme_assets/index.html.haml +1 -1
- data/app/views/admin/theme_assets/new.html.haml +1 -1
- data/app/views/layouts/admin/application.html.haml +1 -0
- data/config/initializers/locomotive.rb +21 -0
- data/config/locales/admin_ui_en.yml +2 -66
- data/config/locales/admin_ui_fr.yml +0 -64
- data/config/locales/flash.en.yml +116 -0
- data/config/locales/flash.fr.yml +116 -0
- data/config/routes.rb +3 -0
- data/lib/generators/locomotive/copy_assets/copy_assets_generator.rb +14 -0
- data/lib/generators/locomotive/install/install_generator.rb +15 -2
- data/lib/generators/locomotive/install/templates/README +17 -0
- data/lib/locomotive.rb +3 -0
- data/lib/locomotive/admin_responder.rb +28 -0
- data/lib/locomotive/inherited_resources.rb +46 -0
- data/lib/locomotive/liquid/drops/page.rb +1 -1
- data/lib/locomotive/liquid/filters/text.rb +1 -1
- data/lib/locomotive/liquid/tags/nav.rb +7 -4
- data/public/images/admin/icons/actions.png +0 -0
- data/public/images/admin/menu/icons/assets.png +0 -0
- data/public/javascripts/admin/application.js +3 -0
- data/public/javascripts/admin/pages.js +1 -1
- data/public/javascripts/admin/plugins/shortcut.js +55 -0
- data/public/stylesheets/admin/application.css +1 -1
- data/public/stylesheets/admin/buttons.css +8 -13
- data/public/stylesheets/admin/formtastic_changes.css +1 -2
- data/public/stylesheets/admin/layout.css +24 -12
- data/public/stylesheets/admin/menu.css +3 -3
- data/spec/factories.rb +1 -1
- data/spec/lib/locomotive/liquid/tags/nav_spec.rb +11 -2
- data/spec/models/membership_spec.rb +5 -4
- data/spec/models/page_spec.rb +10 -8
- metadata +30 -6
- data/lib/generators/locomotive/assets/assets_generator.rb +0 -16
data/app/models/page_part.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
%li{ :id => "asset-#{asset.id}", :class => "asset #{'last' if (asset_counter + 1) % 6 == 0}"}
|
2
|
-
%h4= link_to truncate(asset.name, :length => 22), edit_admin_asset_path(@
|
2
|
+
%h4= link_to truncate(asset.name, :length => 22), edit_admin_asset_path(@asset_collection, asset)
|
3
3
|
.image
|
4
4
|
.inside
|
5
5
|
= vignette_tag(asset)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
- title link_to(@
|
1
|
+
- title link_to(@asset_collection.name.blank? ? @asset_collection.name_was : @asset_collection.name, '#', :rel => 'asset_collection_name', :title => t('.ask_for_name'), :class => 'editable')
|
2
2
|
|
3
3
|
- content_for :head do
|
4
4
|
= javascript_include_tag 'admin/plugins/fancybox', 'admin/asset_collections', 'admin/custom_fields'
|
@@ -10,16 +10,16 @@
|
|
10
10
|
%p= t('.help')
|
11
11
|
|
12
12
|
- content_for :buttons do
|
13
|
-
= admin_button_tag :add_asset, new_admin_asset_url(@
|
13
|
+
= admin_button_tag :add_asset, new_admin_asset_url(@asset_collection), :class => 'new'
|
14
14
|
|
15
|
-
%p.no-items{ :style => "#{'display: none' unless @
|
16
|
-
= t('.no_items', :url => new_admin_asset_url(@
|
15
|
+
%p.no-items{ :style => "#{'display: none' unless @asset_collection.assets.empty? }" }
|
16
|
+
= t('.no_items', :url => new_admin_asset_url(@asset_collection))
|
17
17
|
|
18
18
|
%ul#assets.assets.sortable
|
19
|
-
= render :partial => 'asset', :collection => @
|
19
|
+
= render :partial => 'asset', :collection => @asset_collection.ordered_assets
|
20
20
|
%li.clear
|
21
21
|
|
22
|
-
= semantic_form_for @
|
22
|
+
= semantic_form_for @asset_collection, :url => admin_asset_collection_url(@asset_collection), :html => { :multipart => true } do |f|
|
23
23
|
= f.hidden_field :assets_order
|
24
24
|
|
25
25
|
= f.foldable_inputs :name => :options do
|
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
= render 'admin/custom_fields/index', :form => f, :collection_name => 'assets'
|
30
30
|
|
31
|
-
= render 'admin/shared/form_actions', :delete_button => link_to(content_tag(:
|
31
|
+
= render 'admin/shared/form_actions', :delete_button => link_to(content_tag(:em, escape_once(' ')) + t('.destroy'), admin_asset_collection_url(@asset_collection), :confirm => t('admin.messages.confirm'), :method => :delete, :class => 'button small remove'), :button_label => :update
|
32
32
|
|
33
33
|
= render 'admin/custom_fields/edit_field'
|
@@ -7,7 +7,7 @@
|
|
7
7
|
= f.input :source
|
8
8
|
|
9
9
|
- unless @asset.custom_fields.empty?
|
10
|
-
= render 'admin/custom_fields/custom_form', :form => f, :title => :other_fields, :parent => @
|
10
|
+
= render 'admin/custom_fields/custom_form', :form => f, :title => :other_fields, :parent => @asset_collection
|
11
11
|
|
12
12
|
- if @asset.image? && @asset.valid?
|
13
13
|
= f.foldable_inputs :name => "#{t('formtastic.titles.preview')} #{image_dimensions_and_size(@asset)}", :class => 'preview' do
|
@@ -4,12 +4,12 @@
|
|
4
4
|
= render 'admin/shared/menu/assets'
|
5
5
|
|
6
6
|
- content_for :buttons do
|
7
|
-
= admin_button_tag t('admin.asset_collections.edit.add_asset'), new_admin_asset_url(@
|
7
|
+
= admin_button_tag t('admin.asset_collections.edit.add_asset'), new_admin_asset_url(@asset_collection), :class => 'new'
|
8
8
|
|
9
9
|
%p= t('.help')
|
10
10
|
|
11
|
-
= semantic_form_for @asset, :url => admin_asset_url(@
|
11
|
+
= semantic_form_for @asset, :url => admin_asset_url(@asset_collection, @asset), :html => { :multipart => true, :class => 'save-with-shortcut' } do |form|
|
12
12
|
|
13
13
|
= render 'form', :f => form
|
14
14
|
|
15
|
-
= render 'admin/shared/form_actions', :back_url => edit_admin_asset_collection_url(@
|
15
|
+
= render 'admin/shared/form_actions', :back_url => edit_admin_asset_collection_url(@asset_collection), :button_label => :update
|
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
%p= t('.help')
|
7
7
|
|
8
|
-
= semantic_form_for @asset, :url => admin_assets_url(@
|
8
|
+
= semantic_form_for @asset, :url => admin_assets_url(@asset_collection), :html => { :multipart => true } do |form|
|
9
9
|
|
10
10
|
= render 'form', :f => form
|
11
11
|
|
12
|
-
= render 'admin/shared/form_actions', :back_url => edit_admin_asset_collection_url(@
|
12
|
+
= render 'admin/shared/form_actions', :back_url => edit_admin_asset_collection_url(@asset_collection), :button_label => :create
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
- content_for :buttons do
|
7
7
|
= admin_button_tag :show_items, admin_contents_url(@content_type.slug), :class => 'show'
|
8
|
-
= admin_button_tag :new_item, new_admin_content_url(@content_type.slug), :class => '
|
8
|
+
= admin_button_tag :new_item, new_admin_content_url(@content_type.slug), :class => 'new'
|
9
9
|
|
10
10
|
%p= t('.help')
|
11
11
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
%p= @content_type.description
|
11
11
|
|
12
|
-
= semantic_form_for @content, :url => admin_content_url(@content_type.slug, @content), :html => { :multipart => true } do |form|
|
12
|
+
= semantic_form_for @content, :as => :content, :url => admin_content_url(@content_type.slug, @content), :html => { :multipart => true, :class => 'save-with-shortcut' } do |form|
|
13
13
|
|
14
14
|
= render 'form', :f => form
|
15
15
|
|
@@ -24,4 +24,4 @@
|
|
24
24
|
= form_tag sort_admin_contents_path(@content_type.slug), :method => :put, :class => 'formtastic' do
|
25
25
|
= hidden_field_tag :order
|
26
26
|
|
27
|
-
= render 'admin/shared/form_actions', :delete_button => link_to(content_tag(:
|
27
|
+
= render 'admin/shared/form_actions', :delete_button => link_to(content_tag(:em, escape_once(' ')) + t('.destroy'), admin_content_type_url(@content_type), :confirm => t('admin.messages.confirm'), :method => :delete, :class => 'button small remove'), :button_label => :update
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
%p= @content_type.description
|
10
10
|
|
11
|
-
= semantic_form_for @content, :url => admin_contents_url(@content_type.slug), :html => { :multipart => true } do |form|
|
11
|
+
= semantic_form_for @content, :as => :content, :url => admin_contents_url(@content_type.slug), :html => { :multipart => true } do |form|
|
12
12
|
|
13
13
|
= render 'form', :f => form
|
14
14
|
|
@@ -1,14 +1,14 @@
|
|
1
|
-
- title link_to(@site.name.blank? ? @site.name_was : @site.name, '#', :rel => '
|
1
|
+
- title link_to(@site.name.blank? ? @site.name_was : @site.name, '#', :rel => 'current_site_name', :title => t('.ask_for_name'), :class => 'editable')
|
2
2
|
|
3
3
|
- content_for :submenu do
|
4
4
|
= render 'admin/shared/menu/settings'
|
5
5
|
|
6
6
|
- content_for :buttons do
|
7
|
-
= admin_button_tag t('.new_membership'), new_admin_membership_url, :class => '
|
7
|
+
= admin_button_tag t('.new_membership'), new_admin_membership_url, :class => 'new'
|
8
8
|
|
9
9
|
%p= t('.help')
|
10
10
|
|
11
|
-
= semantic_form_for @site, :url => admin_current_site_url do |f|
|
11
|
+
= semantic_form_for @site, :as => :current_site, :url => admin_current_site_url, :html => { :class => 'save-with-shortcut' } do |f|
|
12
12
|
|
13
13
|
= render 'form', :f => f
|
14
14
|
|
@@ -7,11 +7,11 @@
|
|
7
7
|
= render 'admin/shared/menu/settings'
|
8
8
|
|
9
9
|
- content_for :buttons do
|
10
|
-
= admin_button_tag :new, new_admin_layout_url, :class => '
|
10
|
+
= admin_button_tag :new, new_admin_layout_url, :class => 'new'
|
11
11
|
|
12
12
|
%p= t('.help')
|
13
13
|
|
14
|
-
= semantic_form_for @layout, :url => admin_layout_url(@layout) do |form|
|
14
|
+
= semantic_form_for @layout, :url => admin_layout_url(@layout), :html => { :class => 'save-with-shortcut' } do |form|
|
15
15
|
|
16
16
|
= render 'form', :f => form
|
17
17
|
|
@@ -1,14 +1,14 @@
|
|
1
|
-
- title link_to(@account.name.blank? ? @account.name_was : @account.name, '#', :rel => '
|
1
|
+
- title link_to(@account.name.blank? ? @account.name_was : @account.name, '#', :rel => 'my_account_name', :title => t('.ask_for_name'), :class => 'editable')
|
2
2
|
|
3
3
|
- content_for :submenu do
|
4
4
|
= render 'admin/shared/menu/settings'
|
5
5
|
|
6
6
|
- content_for :buttons do
|
7
|
-
= admin_button_tag t('.new_site'), new_admin_site_url, :class => '
|
7
|
+
= admin_button_tag t('.new_site'), new_admin_site_url, :class => 'new'
|
8
8
|
|
9
9
|
%p= t('.help')
|
10
10
|
|
11
|
-
= semantic_form_for @account, :url => admin_my_account_url do |f|
|
11
|
+
= semantic_form_for @account, :as => :my_account, :url => admin_my_account_url, :html => { :class => 'save-with-shortcut' } do |f|
|
12
12
|
|
13
13
|
= f.foldable_inputs :name => :information, :style => 'display: none' do
|
14
14
|
= f.input :name
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
= stylesheet_link_tag 'admin/layout', 'admin/jquery/ui', 'admin/plugins/toggle', 'admin/menu', 'admin/buttons', 'admin/formtastic', 'admin/formtastic_changes', 'admin/application', :media => 'screen', :cache => Rails.env.production? && !Locomotive.heroku?
|
12
12
|
|
13
|
-
= javascript_include_tag 'admin/jquery', 'admin/jquery.ui', 'admin/rails', 'admin/utils', 'admin/plugins/toggle', 'admin/plugins/growl', 'admin/plugins/cookie', 'admin/application', 'admin/locales/datepicker_fr', :cache => Rails.env.production? && !Locomotive.heroku?
|
13
|
+
= javascript_include_tag 'admin/jquery', 'admin/jquery.ui', 'admin/rails', 'admin/utils', 'admin/plugins/shortcut', 'admin/plugins/toggle', 'admin/plugins/growl', 'admin/plugins/cookie', 'admin/application', 'admin/locales/datepicker_fr', :cache => Rails.env.production? && !Locomotive.heroku?
|
14
14
|
|
15
15
|
%script{ :type => 'text/javascript' }
|
16
16
|
= find_and_preserve(growl_message)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
%ul
|
2
|
-
- @
|
3
|
-
%li{ :class => "#{'on' if @
|
2
|
+
- @asset_collections.each do |c|
|
3
|
+
%li{ :class => "#{'on' if @asset_collection.id == c.id}" }
|
4
4
|
= link_to content_tag(:span, truncate(c.name, :length => 20)), edit_admin_asset_collection_url(c)
|
5
5
|
|
6
6
|
.action
|
@@ -0,0 +1,18 @@
|
|
1
|
+
xml.instruct!
|
2
|
+
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
3
|
+
|
4
|
+
xml.url do
|
5
|
+
xml.loc "http://#{@host}"
|
6
|
+
xml.priority 1.0
|
7
|
+
end
|
8
|
+
|
9
|
+
@pages.each do |page|
|
10
|
+
if not page.index_or_not_found?
|
11
|
+
xml.url do
|
12
|
+
xml.loc page_main_url(page)
|
13
|
+
xml.priority 0.9
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
@@ -4,11 +4,11 @@
|
|
4
4
|
= render 'admin/shared/menu/settings'
|
5
5
|
|
6
6
|
- content_for :buttons do
|
7
|
-
= admin_button_tag t('admin.snippets.index.new'), new_admin_snippet_url, :class => '
|
7
|
+
= admin_button_tag t('admin.snippets.index.new'), new_admin_snippet_url, :class => 'new'
|
8
8
|
|
9
9
|
%p= t('.help')
|
10
10
|
|
11
|
-
= semantic_form_for @snippet, :url => admin_snippet_url(@snippet) do |form|
|
11
|
+
= semantic_form_for @snippet, :url => admin_snippet_url(@snippet), :html => { :class => 'save-with-shortcut' } do |form|
|
12
12
|
|
13
13
|
= render 'form', :f => form
|
14
14
|
|
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
= f.hidden_field :performing_plain_text
|
6
6
|
|
7
|
-
#file-selector{ :class => "selector #{'hidden' if @
|
7
|
+
#file-selector{ :class => "selector #{'hidden' if @theme_asset.performing_plain_text?}" }
|
8
8
|
= f.inputs :name => :information do
|
9
9
|
= f.input :source
|
10
10
|
|
11
|
-
- if @
|
11
|
+
- if @theme_asset.new_record? || !@theme_asset.image?
|
12
12
|
%span.alt
|
13
13
|
= t('admin.theme_assets.form.choose_plain_text')
|
14
14
|
|
15
|
-
- if allow_plain_text_editing?(@
|
16
|
-
#text-selector{ :class => "selector #{'hidden' if !@
|
15
|
+
- if allow_plain_text_editing?(@theme_asset)
|
16
|
+
#text-selector{ :class => "selector #{'hidden' if !@theme_asset.performing_plain_text?}", :style => "#{'display: none' if !@theme_asset.performing_plain_text?}" }
|
17
17
|
= f.inputs :name => :code, :class => 'inputs code' do
|
18
18
|
|
19
|
-
- if @
|
19
|
+
- if @theme_asset.new_record?
|
20
20
|
= f.input :slug
|
21
21
|
|
22
22
|
= f.custom_input :content_type do
|
23
23
|
= f.select :content_type, ["stylesheet", "javascript"]
|
24
24
|
|
25
25
|
= f.custom_input :plain_text, :css => 'full', :with_label => false do
|
26
|
-
%code{ :class => (@
|
26
|
+
%code{ :class => (@theme_asset.size && @theme_asset.size > 40000 ? 'nude' : (@theme_asset.content_type || 'stylesheet')) }
|
27
27
|
= f.text_area :plain_text
|
28
28
|
.more
|
29
29
|
= link_to t('.picker_link'), admin_theme_assets_path, :id => 'asset-picker-link'
|
@@ -31,9 +31,9 @@
|
|
31
31
|
%span.alt
|
32
32
|
= t('admin.theme_assets.form.choose_file')
|
33
33
|
|
34
|
-
- if @
|
35
|
-
= f.foldable_inputs :name => "#{t('formtastic.titles.preview')} #{image_dimensions_and_size(@
|
34
|
+
- if @theme_asset.image?
|
35
|
+
= f.foldable_inputs :name => "#{t('formtastic.titles.preview')} #{image_dimensions_and_size(@theme_asset)}", :class => 'preview' do
|
36
36
|
%li
|
37
37
|
.image
|
38
38
|
.inside
|
39
|
-
= image_tag(@
|
39
|
+
= image_tag(@theme_asset.source.url(:preview))
|
@@ -1,14 +1,14 @@
|
|
1
|
-
- title t('.title', :file => @
|
1
|
+
- title t('.title', :file => @theme_asset.source_filename)
|
2
2
|
|
3
3
|
- content_for :submenu do
|
4
4
|
= render 'admin/shared/menu/settings'
|
5
5
|
|
6
6
|
- content_for :buttons do
|
7
|
-
= admin_button_tag t('admin.theme_assets.index.new'), new_admin_theme_asset_url, :class => '
|
7
|
+
= admin_button_tag t('admin.theme_assets.index.new'), new_admin_theme_asset_url, :class => 'new'
|
8
8
|
|
9
|
-
%p= t('.help', :url => @
|
9
|
+
%p= t('.help', :url => @theme_asset.source.url)
|
10
10
|
|
11
|
-
= semantic_form_for @
|
11
|
+
= semantic_form_for @theme_asset, :url => admin_theme_asset_url(@theme_asset), :html => { :multipart => true, :class => 'save-with-shortcut' } do |form|
|
12
12
|
|
13
13
|
= render 'form', :f => form
|
14
14
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
%p= t('.help')
|
7
7
|
|
8
|
-
= semantic_form_for @
|
8
|
+
= semantic_form_for @theme_asset, :url => admin_theme_assets_url, :html => { :multipart => true } do |form|
|
9
9
|
|
10
10
|
= render 'form', :f => form
|
11
11
|
|
@@ -2,7 +2,28 @@ require File.dirname(__FILE__) + '/../../lib/locomotive.rb'
|
|
2
2
|
require File.dirname(__FILE__) + '/../../lib/core_ext.rb'
|
3
3
|
|
4
4
|
Locomotive.configure do |config|
|
5
|
+
# if not defined, locomotive will use example.com as main domain name. Remove prefix www from your domain name.
|
6
|
+
# Ex:
|
7
|
+
# config.default_domain = Rails.env.production? ? 'mydomain.com' : 'example.com'
|
5
8
|
config.default_domain = 'example.com'
|
9
|
+
|
10
|
+
# configure how many items we display in sub menu in the "Contents" section.
|
6
11
|
config.lastest_items_nb = 5
|
12
|
+
|
13
|
+
# tell if logs are enabled. Useful for debug purpose.
|
7
14
|
config.enable_logs = true
|
15
|
+
|
16
|
+
# tell if the application is hosted on Heroku.
|
17
|
+
# Locomotive uses heroku api to add / remove domains.
|
18
|
+
# there are 2 ways of passing heroku credentials to Locomotive
|
19
|
+
# - from ENV variables: HEROKU_LOGIN & HEROKU_PASSWORD
|
20
|
+
# - from this file
|
21
|
+
#
|
22
|
+
# Notes:
|
23
|
+
# - IMPORTANT: behaviours related to this option will only be applied in production
|
24
|
+
# - credentials coming from this file take precedence over ENV variables
|
25
|
+
#
|
26
|
+
# Ex:
|
27
|
+
# config.heroku = { :name => '<my heroku app name>', :login => 'john@doe.net', :password => 'easy' }
|
28
|
+
config.heroku = false
|
8
29
|
end
|
@@ -88,13 +88,6 @@ en:
|
|
88
88
|
show: show
|
89
89
|
help: "The page title can be updated by clicking it."
|
90
90
|
ask_for_title: "Please type the new page title"
|
91
|
-
messages:
|
92
|
-
successful_create: "Page was successfully created."
|
93
|
-
successful_update: "Page was successfully updated."
|
94
|
-
successful_destroy: "Page was successfully deleted."
|
95
|
-
successful_sort: "Pages were successfully sorted."
|
96
|
-
failed_create: "Page was not created."
|
97
|
-
failed_update: "Page was not updated."
|
98
91
|
form:
|
99
92
|
cache_strategy:
|
100
93
|
none: None
|
@@ -119,12 +112,6 @@ en:
|
|
119
112
|
new: new layout
|
120
113
|
layout:
|
121
114
|
updated_at: Updated at
|
122
|
-
messages:
|
123
|
-
successful_create: "Layout was successfully created."
|
124
|
-
successful_update: "Layout was successfully updated."
|
125
|
-
successful_destroy: "Layout was successfully deleted."
|
126
|
-
failed_create: "Layout was not created."
|
127
|
-
failed_update: "Layout was not updated."
|
128
115
|
|
129
116
|
snippets:
|
130
117
|
index:
|
@@ -140,45 +127,27 @@ en:
|
|
140
127
|
help: "Fill in the form below to update your snippet."
|
141
128
|
snippet:
|
142
129
|
updated_at: Updated at
|
143
|
-
messages:
|
144
|
-
successful_create: "Snippet was successfully created."
|
145
|
-
successful_update: "Snippet was successfully updated."
|
146
|
-
successful_destroy: "Snippet was successfully deleted."
|
147
|
-
failed_create: "Snippet was not created."
|
148
|
-
failed_update: "Snippet was not updated."
|
149
130
|
|
150
131
|
sites:
|
151
132
|
new:
|
152
133
|
title: New site
|
153
134
|
help: "Fill in the form below to create your new site."
|
154
|
-
messages:
|
155
|
-
successful_create: "Site was successfully created."
|
156
|
-
failed_create: "Site was not created."
|
157
135
|
|
158
136
|
current_sites:
|
159
137
|
edit:
|
160
138
|
new_membership: add account
|
161
139
|
help: "The site name can be updated by clicking it."
|
162
140
|
ask_for_name: "Please type the new site name"
|
163
|
-
messages:
|
164
|
-
successful_update: "My site was successfully updated."
|
165
|
-
failed_update: "My site was not updated."
|
166
141
|
|
167
142
|
memberships:
|
168
143
|
new:
|
169
144
|
title: New membership
|
170
145
|
help: "Please give the account email to add. If it does not exist, you will be redirected to the account creation form."
|
171
|
-
|
172
|
-
successful_create: "Membership was successfully created."
|
173
|
-
failed_create: "Membership was not created."
|
174
|
-
|
146
|
+
|
175
147
|
accounts:
|
176
148
|
new:
|
177
149
|
title: New account
|
178
150
|
help: "Fill in the form below to add a new account."
|
179
|
-
messages:
|
180
|
-
successful_create: "Account was successfully created."
|
181
|
-
failed_create: "Account was not created."
|
182
151
|
|
183
152
|
my_accounts:
|
184
153
|
edit:
|
@@ -187,9 +156,6 @@ en:
|
|
187
156
|
en: English
|
188
157
|
fr: French
|
189
158
|
ask_for_name: "Please type your new name"
|
190
|
-
messages:
|
191
|
-
successful_update: "My account was successfully updated."
|
192
|
-
failed_update: "My account was not updated."
|
193
159
|
|
194
160
|
theme_assets:
|
195
161
|
index:
|
@@ -212,12 +178,6 @@ en:
|
|
212
178
|
images:
|
213
179
|
title: Listing images
|
214
180
|
no_items: "There are no files for now."
|
215
|
-
messages:
|
216
|
-
successful_create: "File was successfully created."
|
217
|
-
successful_update: "File was successfully updated."
|
218
|
-
successful_destroy: "File was successfully deleted."
|
219
|
-
failed_create: "File was not created."
|
220
|
-
failed_update: "File was not updated."
|
221
181
|
|
222
182
|
asset_collections:
|
223
183
|
index:
|
@@ -234,12 +194,6 @@ en:
|
|
234
194
|
destroy: remove collection
|
235
195
|
no_items: "There are no assets for now. Just click <a href=\"{{url}}\">here</a> to create the first one."
|
236
196
|
ask_for_name: "Please type the new name"
|
237
|
-
messages:
|
238
|
-
successful_create: "Collection was successfully created."
|
239
|
-
successful_update: "Collection was successfully updated."
|
240
|
-
successful_destroy: "Collection was successfully deleted."
|
241
|
-
failed_create: "Collection was not created."
|
242
|
-
failed_update: "Collection was not updated."
|
243
197
|
|
244
198
|
assets:
|
245
199
|
new:
|
@@ -248,12 +202,6 @@ en:
|
|
248
202
|
edit:
|
249
203
|
title: Edit asset
|
250
204
|
help: "Fill in the form below to update your asset."
|
251
|
-
messages:
|
252
|
-
successful_create: "Asset was successfully created."
|
253
|
-
successful_update: "Asset was successfully updated."
|
254
|
-
successful_destroy: "Asset was successfully deleted."
|
255
|
-
failed_create: "Asset was not created."
|
256
|
-
failed_update: "Asset was not updated."
|
257
205
|
|
258
206
|
content_types:
|
259
207
|
index:
|
@@ -270,12 +218,6 @@ en:
|
|
270
218
|
order_by:
|
271
219
|
updated_at: 'By "updated at" date'
|
272
220
|
position_in_list: Manually
|
273
|
-
messages:
|
274
|
-
successful_create: "Model was successfully created."
|
275
|
-
successful_update: "Model was successfully updated."
|
276
|
-
successful_destroy: "Model was successfully deleted."
|
277
|
-
failed_create: "Model was not created."
|
278
|
-
failed_update: "Model was not updated."
|
279
221
|
|
280
222
|
contents:
|
281
223
|
index:
|
@@ -293,13 +235,7 @@ en:
|
|
293
235
|
title: '{{type}} — new item'
|
294
236
|
edit:
|
295
237
|
title: '{{type}} — editing item'
|
296
|
-
|
297
|
-
successful_create: "Content was successfully created."
|
298
|
-
successful_update: "Content was successfully updated."
|
299
|
-
successful_destroy: "Content was successfully deleted."
|
300
|
-
failed_create: "Content was not created."
|
301
|
-
failed_update: "Content was not updated."
|
302
|
-
|
238
|
+
|
303
239
|
formtastic:
|
304
240
|
titles:
|
305
241
|
information: General information
|