kuhsaft 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/kuhsaft/cms/application.js.coffee.erb +1 -1
- data/app/controllers/kuhsaft/cms/admin_controller.rb +2 -3
- data/app/controllers/kuhsaft/cms/bricks_controller.rb +1 -1
- data/app/controllers/kuhsaft/pages_controller.rb +2 -3
- data/app/controllers/kuhsaft/sitemaps_controller.rb +4 -5
- data/app/helpers/cms_helper.rb +12 -0
- data/app/models/kuhsaft/page.rb +2 -3
- data/app/models/kuhsaft/publish_state.rb +1 -1
- data/app/uploaders/kuhsaft/image_brick_image_uploader.rb +2 -3
- data/app/views/kuhsaft/cms/admin/_brick_type_dropdown.html.haml +2 -2
- data/config/locales/de.yml +4 -0
- data/config/locales/en.yml +0 -71
- data/config/locales/models/kuhsaft/accordion_brick/en.yml +4 -0
- data/config/locales/models/kuhsaft/accordion_item_brick/en.yml +7 -0
- data/config/locales/models/kuhsaft/anchor_brick/en.yml +7 -0
- data/config/locales/models/kuhsaft/asset_brick/en.yml +9 -0
- data/config/locales/models/kuhsaft/brick/de.yml +5 -0
- data/config/locales/models/kuhsaft/brick/en.yml +5 -0
- data/config/locales/models/kuhsaft/column_brick/de.yml +0 -2
- data/config/locales/models/kuhsaft/column_brick/en.yml +4 -0
- data/config/locales/models/kuhsaft/image_brick/en.yml +0 -5
- data/config/locales/models/kuhsaft/image_size/en.yml +13 -0
- data/config/locales/models/kuhsaft/link_brick/en.yml +10 -0
- data/config/locales/models/kuhsaft/page/en.yml +19 -0
- data/config/locales/models/kuhsaft/placeholder_brick/en.yml +8 -0
- data/config/locales/models/kuhsaft/slider_brick/en.yml +4 -0
- data/config/locales/models/kuhsaft/text_brick/en.yml +0 -5
- data/config/locales/models/kuhsaft/two_column_brick/en.yml +7 -0
- data/config/locales/models/kuhsaft/video_brick/en.yml +0 -6
- data/config/locales/views/kuhsaft/cms/admin/en.yml +12 -0
- data/config/locales/views/kuhsaft/cms/bricks/de.yml +4 -10
- data/config/locales/views/kuhsaft/cms/bricks/en.yml +18 -0
- data/config/locales/views/kuhsaft/cms/pages/en.yml +31 -0
- data/config/locales/views/kuhsaft/image_brick/de.yml +6 -0
- data/config/locales/views/kuhsaft/image_brick/en.yml +6 -0
- data/config/locales/views/kuhsaft/text_brick/en.yml +6 -0
- data/config/locales/views/kuhsaft/{cms/video_bricks → video_brick}/de.yml +0 -0
- data/config/locales/views/kuhsaft/video_brick/en.yml +7 -0
- data/lib/kuhsaft/brick_list.rb +3 -7
- data/lib/kuhsaft/page_tree.rb +2 -3
- data/lib/kuhsaft/touch_placeholders.rb +4 -5
- data/lib/kuhsaft/version.rb +1 -1
- data/spec/features/cms_pages_spec.rb +9 -9
- data/spec/lib/page_tree_spec.rb +1 -1
- data/spec/spec_helper.rb +6 -2
- metadata +23 -5
- data/config/locales/kuhsaft.de.yml +0 -66
- data/config/locales/kuhsaft.en.yml +0 -113
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 816a54fafbdf7a0080bebfe502d28bc3766c53ae
|
4
|
+
data.tar.gz: 46ea21de733eabc2fe7286479edcfc611e107f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2ad4266fcd26ee4a9ba650bdeb7697d50404dd582ae9745528d561590db7453473e4d993e8ebb9ae31d79cf4a7711bee239a6c0d5112593e3aedec10e89453d
|
7
|
+
data.tar.gz: 516cfdb3e8dcea474fb9d45ae44075ddfcf65b5d7e9becc002154cefe1d999ae4644ebac717d434f4294ce010323f7ddb00c96a0f337817e7134a6384b25f520
|
@@ -6,9 +6,8 @@ module Kuhsaft
|
|
6
6
|
before_action :set_content_locale
|
7
7
|
|
8
8
|
def set_content_locale
|
9
|
-
if params[:content_locale].
|
10
|
-
|
11
|
-
end
|
9
|
+
return if params[:content_locale].blank?
|
10
|
+
I18n.locale = params[:content_locale]
|
12
11
|
end
|
13
12
|
|
14
13
|
def url_options
|
@@ -5,9 +5,8 @@ module Kuhsaft
|
|
5
5
|
|
6
6
|
def index
|
7
7
|
@search = params[:search]
|
8
|
-
if @search.
|
9
|
-
|
10
|
-
end
|
8
|
+
return if @search.blank?
|
9
|
+
@pages = Kuhsaft::Page.unscoped.published.content_page.search(@search)
|
11
10
|
end
|
12
11
|
|
13
12
|
def show
|
@@ -2,11 +2,10 @@ module Kuhsaft
|
|
2
2
|
class SitemapsController < ::ApplicationController
|
3
3
|
def index
|
4
4
|
last_page = Kuhsaft::Page.published.last
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
5
|
+
return unless stale?(etag: last_page, last_modified: last_page.updated_at.utc)
|
6
|
+
respond_to do |format|
|
7
|
+
format.html
|
8
|
+
format.xml { @pages = Kuhsaft::Page.published }
|
10
9
|
end
|
11
10
|
end
|
12
11
|
end
|
data/app/helpers/cms_helper.rb
CHANGED
@@ -12,4 +12,16 @@ module CmsHelper
|
|
12
12
|
end
|
13
13
|
pages << { title: t('kuhsaft.cms.pages.new.new_page'), link: '#' }
|
14
14
|
end
|
15
|
+
|
16
|
+
def cms_brick_item(brick_list, type)
|
17
|
+
type_name = type.class_name.constantize.model_name.human
|
18
|
+
link_to type_name, kuhsaft.new_cms_brick_path(
|
19
|
+
brick: {
|
20
|
+
type: type.class_name,
|
21
|
+
brick_list_id: brick_list.id,
|
22
|
+
brick_list_type: brick_list.brick_list_type
|
23
|
+
}), remote: true
|
24
|
+
rescue NameError
|
25
|
+
I18n.t type.class_name.underscore, scope: [:activerecord, :models]
|
26
|
+
end
|
15
27
|
end
|
data/app/models/kuhsaft/page.rb
CHANGED
@@ -123,9 +123,8 @@ module Kuhsaft
|
|
123
123
|
end
|
124
124
|
|
125
125
|
def update_child_urls
|
126
|
-
|
127
|
-
|
128
|
-
end
|
126
|
+
return unless children.any?
|
127
|
+
children.each { |child| child.update_attributes(url: child.create_url) }
|
129
128
|
end
|
130
129
|
|
131
130
|
def nesting_name
|
@@ -28,9 +28,8 @@ module Kuhsaft
|
|
28
28
|
|
29
29
|
def process_brick_image_size
|
30
30
|
image_size = Kuhsaft::ImageSize.find_by_name(model.image_size)
|
31
|
-
|
32
|
-
|
33
|
-
end
|
31
|
+
return unless image_size.present?
|
32
|
+
resize_to_fill(image_size.width, image_size.height)
|
34
33
|
end
|
35
34
|
end
|
36
35
|
end
|
@@ -5,9 +5,9 @@
|
|
5
5
|
%span.caret
|
6
6
|
%ul.dropdown-menu.pull-right
|
7
7
|
- brick_list.brick_types.allowed.group_by(&:group).each do |group, types|
|
8
|
-
- types.each do |
|
8
|
+
- types.map { |type| cms_brick_item brick_list, type }.compact.each do |brick_type_item|
|
9
9
|
%li
|
10
|
-
=
|
10
|
+
= brick_type_item
|
11
11
|
.divider
|
12
12
|
- else
|
13
13
|
- brick_list.brick_types.allowed.each do |type|
|
data/config/locales/de.yml
CHANGED
@@ -100,6 +100,7 @@ de:
|
|
100
100
|
messages:
|
101
101
|
accepted: muss akzeptiert werden
|
102
102
|
blank: muss ausgefüllt werden
|
103
|
+
present: muss leer sein
|
103
104
|
confirmation: stimmt nicht mit der Bestätigung überein
|
104
105
|
empty: muss ausgefüllt werden
|
105
106
|
equal_to: muss genau %{count} sein
|
@@ -115,6 +116,9 @@ de:
|
|
115
116
|
not_an_integer: muss ganzzahlig sein
|
116
117
|
odd: muss ungerade sein
|
117
118
|
record_invalid: 'Gültigkeitsprüfung ist fehlgeschlagen: %{errors}'
|
119
|
+
restrict_dependent_destroy:
|
120
|
+
one: "Datensatz kann nicht gelöscht werden, da eine Abhängikeit besteht."
|
121
|
+
many: "Datensatz kann nicht gelöscht werden, da Abhängikeiten bestehen."
|
118
122
|
taken: ist bereits vergeben
|
119
123
|
too_long: ist zu lang (mehr als %{count} Zeichen)
|
120
124
|
too_short: ist zu kurz (weniger als %{count} Zeichen)
|
data/config/locales/en.yml
CHANGED
@@ -209,74 +209,3 @@ en:
|
|
209
209
|
activerecord:
|
210
210
|
errors:
|
211
211
|
<<: *errors
|
212
|
-
kuhsaft:
|
213
|
-
cms:
|
214
|
-
admin:
|
215
|
-
brick_type_dropdown:
|
216
|
-
add_element: Add element
|
217
|
-
add_specific_element: Add specific element
|
218
|
-
confirm_delete: Confirm delete
|
219
|
-
empty_state:
|
220
|
-
empty: Empty
|
221
|
-
main_navigation:
|
222
|
-
logout: Logout
|
223
|
-
assets:
|
224
|
-
edit:
|
225
|
-
edit: Edit
|
226
|
-
index:
|
227
|
-
create: Create
|
228
|
-
list:
|
229
|
-
confirm: Confirm
|
230
|
-
delete: Delete
|
231
|
-
new:
|
232
|
-
new: New
|
233
|
-
bricks:
|
234
|
-
brick_item:
|
235
|
-
confirm: Confirm
|
236
|
-
save: Save
|
237
|
-
saved: Saved
|
238
|
-
new:
|
239
|
-
create_new: Create new
|
240
|
-
no_content: No content
|
241
|
-
save: Save
|
242
|
-
pages:
|
243
|
-
edit:
|
244
|
-
edit_html: Edit html
|
245
|
-
form:
|
246
|
-
collapse_all: Collapse all
|
247
|
-
expand_all: Expand all
|
248
|
-
hint_description: Hint description
|
249
|
-
hint_keywords: Hint keywords
|
250
|
-
tab_content: Tab content
|
251
|
-
tab_metadata: Tab metadata
|
252
|
-
index:
|
253
|
-
add_page: Add page
|
254
|
-
new:
|
255
|
-
new: New
|
256
|
-
new_page: New page
|
257
|
-
pages: Pages
|
258
|
-
image_bricks:
|
259
|
-
image_brick:
|
260
|
-
edit:
|
261
|
-
image_preview: Image preview
|
262
|
-
search:
|
263
|
-
form:
|
264
|
-
placeholder: Placeholder
|
265
|
-
search: Search
|
266
|
-
results:
|
267
|
-
title: Title
|
268
|
-
text_bricks:
|
269
|
-
text_brick:
|
270
|
-
read_less: Read less
|
271
|
-
read_more: Read more
|
272
|
-
video_bricks:
|
273
|
-
video_brick:
|
274
|
-
edit:
|
275
|
-
any_source_error: Any source error
|
276
|
-
embed_src_optional: Embed src optional
|
277
|
-
layouts:
|
278
|
-
kuhsaft:
|
279
|
-
cms:
|
280
|
-
flash:
|
281
|
-
success: Success
|
282
|
-
title: Title
|
@@ -0,0 +1,19 @@
|
|
1
|
+
en:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
kuhsaft/page:
|
5
|
+
one: 'Page'
|
6
|
+
other: 'Pages'
|
7
|
+
attributes:
|
8
|
+
kuhsaft/page:
|
9
|
+
title: 'Title'
|
10
|
+
slug: 'URL Name'
|
11
|
+
page_title: 'Page title (in browser)'
|
12
|
+
keywords: 'Keywords'
|
13
|
+
description: 'Description'
|
14
|
+
redirect_url: 'Redirect URL'
|
15
|
+
url: 'URL'
|
16
|
+
published: 'Published'
|
17
|
+
page_type: 'Pagetype'
|
18
|
+
parent_id: 'Parent page'
|
19
|
+
parent: 'Parent page'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
en:
|
2
|
+
kuhsaft:
|
3
|
+
cms:
|
4
|
+
admin:
|
5
|
+
confirm_delete: 'Are you sure you want to delete %{name}?'
|
6
|
+
brick_type_dropdown:
|
7
|
+
add_element: 'Add element'
|
8
|
+
add_specific_element: 'Add %{name}'
|
9
|
+
empty_state:
|
10
|
+
empty: 'This element is empty yet...'
|
11
|
+
main_navigation:
|
12
|
+
logout: 'Log out'
|
@@ -7,18 +7,12 @@ de:
|
|
7
7
|
saved: 'Gespeichert! ✔'
|
8
8
|
confirm: 'Wirklich löschen?'
|
9
9
|
empty: 'Hier ist noch nichts.'
|
10
|
+
new:
|
11
|
+
create_new: '%{brick} erstellen'
|
12
|
+
save: Speichern
|
13
|
+
no_content: 'Dieser Brick hat keinen eigenen Inhalt. Nach dem Speichern können darin weitere Bricks erstellt werden.'
|
10
14
|
|
11
15
|
columns:
|
12
16
|
zero: Nicht ins Grid integrieren
|
13
17
|
one: "%{count} Spalte"
|
14
18
|
other: "%{count} Spalten"
|
15
|
-
|
16
|
-
image_bricks:
|
17
|
-
image_brick:
|
18
|
-
edit:
|
19
|
-
image_preview: 'Vorschau'
|
20
|
-
|
21
|
-
activerecord:
|
22
|
-
attributes:
|
23
|
-
kuhsaft/brick:
|
24
|
-
col_count: 'Breite im Grid'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
en:
|
2
|
+
kuhsaft:
|
3
|
+
cms:
|
4
|
+
bricks:
|
5
|
+
brick_item:
|
6
|
+
save: 'Save ...'
|
7
|
+
saved: 'Saved! ✔'
|
8
|
+
confirm: 'Are you sure?'
|
9
|
+
empty: 'This element is empty...'
|
10
|
+
new:
|
11
|
+
create_new: 'Create %{brick}'
|
12
|
+
save: Save
|
13
|
+
no_content: 'This Brick has no own content. You can create more bricks within after saving.'
|
14
|
+
|
15
|
+
columns:
|
16
|
+
zero: Do not add to grid
|
17
|
+
one: "%{count} column"
|
18
|
+
other: "%{count} columns"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
en:
|
2
|
+
kuhsaft:
|
3
|
+
cms:
|
4
|
+
pages:
|
5
|
+
index:
|
6
|
+
add_page: 'Add page'
|
7
|
+
form:
|
8
|
+
tab_metadata: 'Settings'
|
9
|
+
tab_content: 'Content'
|
10
|
+
hint_keywords: |
|
11
|
+
Please enter 2-6 key terms that apply to this page, as search keywords.
|
12
|
+
</br>
|
13
|
+
<strong>For example:</strong>
|
14
|
+
</br>
|
15
|
+
<em>
|
16
|
+
Keyword1, Keyword2, Keyword3
|
17
|
+
</em>
|
18
|
+
hint_description: |
|
19
|
+
Enter a page description about 140 characters.
|
20
|
+
</br>
|
21
|
+
The description is often displayed in the search results of search engines.
|
22
|
+
</br>
|
23
|
+
<strong>For example:</strong>
|
24
|
+
</br>
|
25
|
+
<em>
|
26
|
+
Description of the page content.
|
27
|
+
This description is unique and only available on this page. Other pages have their own descriptions.
|
28
|
+
</em>
|
29
|
+
expand_all: Expand all
|
30
|
+
collapse_all: Collapse all
|
31
|
+
none: none
|
File without changes
|
data/lib/kuhsaft/brick_list.rb
CHANGED
@@ -59,13 +59,9 @@ module Kuhsaft
|
|
59
59
|
# Implement how you see fit.
|
60
60
|
#
|
61
61
|
def collect_fulltext
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
text
|
66
|
-
end
|
67
|
-
else
|
68
|
-
''
|
62
|
+
return '' unless respond_to?(:bricks)
|
63
|
+
bricks.localized.reduce('') do |text, brick|
|
64
|
+
text << brick.collect_fulltext
|
69
65
|
end
|
70
66
|
end
|
71
67
|
|
data/lib/kuhsaft/page_tree.rb
CHANGED
@@ -6,9 +6,8 @@ module Kuhsaft
|
|
6
6
|
params.each do |page_position, page_content|
|
7
7
|
page = Page.find(page_content['id'])
|
8
8
|
page.update_attributes(parent_id: parent_id, position: page_position)
|
9
|
-
|
10
|
-
|
11
|
-
end
|
9
|
+
next if page_content['children'].nil?
|
10
|
+
update(page_content['children'], page.id)
|
12
11
|
end
|
13
12
|
end
|
14
13
|
end
|
@@ -11,11 +11,10 @@ module Kuhsaft
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def touch_placeholders
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
end
|
14
|
+
return unless self.class.placeholder_templates.present?
|
15
|
+
self.class.placeholder_templates.each do |template_name|
|
16
|
+
related_templates = Kuhsaft::PlaceholderBrick.where(template_name: template_name)
|
17
|
+
related_templates.each { |p| p.touch } if related_templates
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
data/lib/kuhsaft/version.rb
CHANGED
@@ -7,15 +7,15 @@ describe 'Cms/Pages' do
|
|
7
7
|
context '#new' do
|
8
8
|
before do
|
9
9
|
visit kuhsaft.new_cms_page_path
|
10
|
-
fill_in '
|
11
|
-
fill_in '
|
12
|
-
fill_in '
|
10
|
+
fill_in 'Title', with: 'The Title of the page'
|
11
|
+
fill_in 'Keywords', with: 'My keywords'
|
12
|
+
fill_in 'Description', with: 'My Description'
|
13
13
|
end
|
14
14
|
|
15
15
|
describe '#create' do
|
16
16
|
context 'when page is valid' do
|
17
17
|
it 'creates a new page' do
|
18
|
-
expect { click_on 'Create
|
18
|
+
expect { click_on 'Create Page' }.to change(Kuhsaft::Page, :count).by(1)
|
19
19
|
end
|
20
20
|
|
21
21
|
it 'is not possible to change the value in url' do
|
@@ -28,7 +28,7 @@ describe 'Cms/Pages' do
|
|
28
28
|
@page = FactoryGirl.create(:page, title: 'DummyPage', title_en: 'DummyEN', slug: 'dummy_page')
|
29
29
|
visit kuhsaft.edit_cms_page_path(@page)
|
30
30
|
fill_in 'page_title', with: ''
|
31
|
-
click_on 'Update
|
31
|
+
click_on 'Update Page'
|
32
32
|
within '.nav-pills' do
|
33
33
|
click_on 'EN'
|
34
34
|
end
|
@@ -42,22 +42,22 @@ describe 'Cms/Pages' do
|
|
42
42
|
before do
|
43
43
|
@page = FactoryGirl.create(:page, url: 'de/dumdidum')
|
44
44
|
visit kuhsaft.edit_cms_page_path(@page)
|
45
|
-
select 'redirect', from: '
|
45
|
+
select 'redirect', from: 'Pagetyp'
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'has a value in redirect_page' do
|
49
49
|
fill_in 'Redirect URL', with: 'target_page'
|
50
|
-
expect { click_on 'Update
|
50
|
+
expect { click_on 'Update Page' }.to change { @page.reload.redirect_url }.to('target_page')
|
51
51
|
end
|
52
52
|
|
53
53
|
it 'is invalid when no value is in redirect_page' do
|
54
|
-
click_on 'Update
|
54
|
+
click_on 'Update Page'
|
55
55
|
page.should have_css('.error', count: 1)
|
56
56
|
end
|
57
57
|
|
58
58
|
it 'does not change the value in url' do
|
59
59
|
fill_in 'Redirect URL', with: 'target_page'
|
60
|
-
expect { click_on 'Update
|
60
|
+
expect { click_on 'Update Page' }.to_not change { @page.reload.url }
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
data/spec/lib/page_tree_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -4,8 +4,12 @@ require_relative File.expand_path('../dummy/config/environment.rb', __FILE__)
|
|
4
4
|
require 'rspec/rails'
|
5
5
|
require 'rspec/autorun'
|
6
6
|
|
7
|
-
[
|
8
|
-
|
7
|
+
[
|
8
|
+
'factory_girl',
|
9
|
+
'capybara/rails',
|
10
|
+
'pry-debugger',
|
11
|
+
'database_cleaner'
|
12
|
+
].each { |lib| require lib }
|
9
13
|
|
10
14
|
FactoryGirl.find_definitions
|
11
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuhsaft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Immanuel Häussermann
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rspec
|
@@ -590,33 +590,51 @@ files:
|
|
590
590
|
- config/initializers/simple_form_bootstrap.rb
|
591
591
|
- config/locales/de.yml
|
592
592
|
- config/locales/en.yml
|
593
|
-
- config/locales/kuhsaft.de.yml
|
594
|
-
- config/locales/kuhsaft.en.yml
|
595
593
|
- config/locales/models/kuhsaft/accordion_brick/de.yml
|
594
|
+
- config/locales/models/kuhsaft/accordion_brick/en.yml
|
596
595
|
- config/locales/models/kuhsaft/accordion_item_brick/de.yml
|
596
|
+
- config/locales/models/kuhsaft/accordion_item_brick/en.yml
|
597
597
|
- config/locales/models/kuhsaft/anchor_brick/de.yml
|
598
|
+
- config/locales/models/kuhsaft/anchor_brick/en.yml
|
598
599
|
- config/locales/models/kuhsaft/asset_brick/de.yml
|
600
|
+
- config/locales/models/kuhsaft/asset_brick/en.yml
|
601
|
+
- config/locales/models/kuhsaft/brick/de.yml
|
602
|
+
- config/locales/models/kuhsaft/brick/en.yml
|
599
603
|
- config/locales/models/kuhsaft/column_brick/de.yml
|
604
|
+
- config/locales/models/kuhsaft/column_brick/en.yml
|
600
605
|
- config/locales/models/kuhsaft/image_brick/de.yml
|
601
606
|
- config/locales/models/kuhsaft/image_brick/en.yml
|
602
607
|
- config/locales/models/kuhsaft/image_size/de.yml
|
608
|
+
- config/locales/models/kuhsaft/image_size/en.yml
|
603
609
|
- config/locales/models/kuhsaft/link_brick/de.yml
|
610
|
+
- config/locales/models/kuhsaft/link_brick/en.yml
|
604
611
|
- config/locales/models/kuhsaft/page/de.yml
|
612
|
+
- config/locales/models/kuhsaft/page/en.yml
|
605
613
|
- config/locales/models/kuhsaft/placeholder_brick/de.yml
|
614
|
+
- config/locales/models/kuhsaft/placeholder_brick/en.yml
|
606
615
|
- config/locales/models/kuhsaft/slider_brick/de.yml
|
616
|
+
- config/locales/models/kuhsaft/slider_brick/en.yml
|
607
617
|
- config/locales/models/kuhsaft/text_brick/de.yml
|
608
618
|
- config/locales/models/kuhsaft/text_brick/en.yml
|
609
619
|
- config/locales/models/kuhsaft/two_column_brick/de.yml
|
620
|
+
- config/locales/models/kuhsaft/two_column_brick/en.yml
|
610
621
|
- config/locales/models/kuhsaft/video_brick/de.yml
|
611
622
|
- config/locales/models/kuhsaft/video_brick/en.yml
|
612
623
|
- config/locales/simple_form.en.yml
|
613
624
|
- config/locales/views/kuhsaft/cms/admin/de.yml
|
625
|
+
- config/locales/views/kuhsaft/cms/admin/en.yml
|
614
626
|
- config/locales/views/kuhsaft/cms/bricks/de.yml
|
627
|
+
- config/locales/views/kuhsaft/cms/bricks/en.yml
|
615
628
|
- config/locales/views/kuhsaft/cms/pages/de.yml
|
616
|
-
- config/locales/views/kuhsaft/cms/
|
629
|
+
- config/locales/views/kuhsaft/cms/pages/en.yml
|
630
|
+
- config/locales/views/kuhsaft/image_brick/de.yml
|
631
|
+
- config/locales/views/kuhsaft/image_brick/en.yml
|
617
632
|
- config/locales/views/kuhsaft/search/de.yml
|
618
633
|
- config/locales/views/kuhsaft/search/en.yml
|
619
634
|
- config/locales/views/kuhsaft/text_brick/de.yml
|
635
|
+
- config/locales/views/kuhsaft/text_brick/en.yml
|
636
|
+
- config/locales/views/kuhsaft/video_brick/de.yml
|
637
|
+
- config/locales/views/kuhsaft/video_brick/en.yml
|
620
638
|
- config/routes.rb
|
621
639
|
- db/migrate/01_create_kuhsaft_pages.rb
|
622
640
|
- db/migrate/02_create_kuhsaft_bricks.rb
|
@@ -1,66 +0,0 @@
|
|
1
|
-
de:
|
2
|
-
404: '404, Seite nicht gefunden'
|
3
|
-
layouts:
|
4
|
-
kuhsaft:
|
5
|
-
admin:
|
6
|
-
pages_nav: 'Seiten'
|
7
|
-
assets_nav: 'Assets'
|
8
|
-
cms:
|
9
|
-
flash:
|
10
|
-
success: 'Seite wurde erfolgreich aktualisiert'
|
11
|
-
kuhsaft:
|
12
|
-
page_part:
|
13
|
-
markdown: 'Formatierter Text'
|
14
|
-
cms:
|
15
|
-
bricks:
|
16
|
-
brick_item:
|
17
|
-
confirm: 'Sind Sie sicher?'
|
18
|
-
new:
|
19
|
-
create_new: '%{brick} erstellen'
|
20
|
-
save: Speichern
|
21
|
-
no_content: 'Dieser Brick hat keinen eigenen Inhalt. Nach dem Speichern können darin weitere Bricks erstellt werden.'
|
22
|
-
ckimages:
|
23
|
-
confirm: 'Sind Sie sicher?'
|
24
|
-
pages:
|
25
|
-
index:
|
26
|
-
create: 'Neue Seite erstellen'
|
27
|
-
new:
|
28
|
-
new: 'Neue Seite erstellen'
|
29
|
-
pages: 'Seiten'
|
30
|
-
edit:
|
31
|
-
edit_html: 'Seite editieren: <span>%{title}</span>'
|
32
|
-
pages: 'Seiten'
|
33
|
-
branch:
|
34
|
-
add: 'Seite hinzufügen'
|
35
|
-
create: 'Neue Seite erstellen'
|
36
|
-
delete: 'Seite entfernen'
|
37
|
-
confirm: 'Soll die Seite "%{page_title}" endgültig entfernt werden?'
|
38
|
-
not_translated: 'Noch nicht übersetzt'
|
39
|
-
form:
|
40
|
-
add_page_part: 'Element hinzufügen'
|
41
|
-
unpublished: 'Seite offline sichern'
|
42
|
-
published: 'Seite publizieren'
|
43
|
-
published_at: 'Publizieren am'
|
44
|
-
confirm: 'Soll dieser Teil der Seite entgültig entfernt werden?'
|
45
|
-
destroy_page_part: 'Löschen'
|
46
|
-
separate_by_comma: 'Tags durch Komma trennen'
|
47
|
-
current_translation_locale: 'Aktuelle Übersetzung: %{translation_locale}'
|
48
|
-
assets:
|
49
|
-
index:
|
50
|
-
create: 'Neues Asset hinzufügen'
|
51
|
-
list:
|
52
|
-
confirm: 'Soll das Asset "%{filename}" entgültig entfernt werden?'
|
53
|
-
delete: 'Asset löschen'
|
54
|
-
helpers:
|
55
|
-
select:
|
56
|
-
prompt: Bitte wählen
|
57
|
-
submit:
|
58
|
-
create: '%{model} erstellen'
|
59
|
-
submit: '%{model} speichern'
|
60
|
-
update: '%{model} aktualisieren'
|
61
|
-
simple_form:
|
62
|
-
labels:
|
63
|
-
title: 'Seiten Titel'
|
64
|
-
slug: 'URL Segment'
|
65
|
-
page_part_type: 'Element hinzufügen'
|
66
|
-
_destroy: 'Diese Element löschen'
|
@@ -1,113 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
404: '404, Page not found'
|
3
|
-
layouts:
|
4
|
-
kuhsaft:
|
5
|
-
admin:
|
6
|
-
pages_nav: 'Pages'
|
7
|
-
assets_nav: 'Assets'
|
8
|
-
cms:
|
9
|
-
flash:
|
10
|
-
success: 'Page was updated successfully'
|
11
|
-
kuhsaft:
|
12
|
-
page_part:
|
13
|
-
markdown: 'Formatted Text'
|
14
|
-
cms:
|
15
|
-
bricks:
|
16
|
-
brick_item:
|
17
|
-
confirm: 'Are you sure?'
|
18
|
-
new:
|
19
|
-
create_new: 'Create %{brick}'
|
20
|
-
save: Save
|
21
|
-
no_content: 'This Brick has no own content. You can create more bricks within after saving.'
|
22
|
-
pages:
|
23
|
-
index:
|
24
|
-
create: 'Create new page'
|
25
|
-
new:
|
26
|
-
new: 'Creating new page'
|
27
|
-
pages: 'Pages'
|
28
|
-
edit:
|
29
|
-
edit_html: 'Editing page: <span>%{title}</span>'
|
30
|
-
pages: 'Pages'
|
31
|
-
branch:
|
32
|
-
add: 'Add page'
|
33
|
-
create: 'Create new page'
|
34
|
-
delete: 'Remove page'
|
35
|
-
confirm: 'Are you sure you want to delete the page "%{page_title}"?'
|
36
|
-
not_translated: 'Not yet translated'
|
37
|
-
form:
|
38
|
-
add_page_part: 'Add element'
|
39
|
-
unpublished: "Save page offline"
|
40
|
-
published: "Publish page"
|
41
|
-
published_at: "Go online on"
|
42
|
-
confirm: 'Are you sure you want to delete this page part?'
|
43
|
-
destroy_page_part: 'Delete'
|
44
|
-
separate_by_comma: 'Separate tags by comma'
|
45
|
-
current_translation_locale: 'Current translation: %{translation_locale}'
|
46
|
-
assets:
|
47
|
-
index:
|
48
|
-
create: 'Create new asset'
|
49
|
-
list:
|
50
|
-
confirm: 'Are you sure you want to delete the asset "%{filename}"?'
|
51
|
-
delete: 'Delete asset'
|
52
|
-
admin:
|
53
|
-
brick_type_dropdown:
|
54
|
-
add_element: Add element
|
55
|
-
add_specific_element: Add specific element
|
56
|
-
confirm_delete: Confirm delete
|
57
|
-
empty_state:
|
58
|
-
empty: Empty
|
59
|
-
main_navigation:
|
60
|
-
logout: Logout
|
61
|
-
assets:
|
62
|
-
edit:
|
63
|
-
edit: Edit
|
64
|
-
index:
|
65
|
-
create: Create
|
66
|
-
list:
|
67
|
-
confirm: Confirm
|
68
|
-
delete: Delete
|
69
|
-
new:
|
70
|
-
new: New
|
71
|
-
bricks:
|
72
|
-
brick_item:
|
73
|
-
confirm: Confirm
|
74
|
-
save: Save
|
75
|
-
saved: Saved
|
76
|
-
new:
|
77
|
-
create_new: Create new
|
78
|
-
no_content: No content
|
79
|
-
save: Save
|
80
|
-
pages:
|
81
|
-
edit:
|
82
|
-
edit_html: Edit html
|
83
|
-
form:
|
84
|
-
collapse_all: Collapse all
|
85
|
-
expand_all: Expand all
|
86
|
-
hint_description: Hint description
|
87
|
-
hint_keywords: Hint keywords
|
88
|
-
tab_content: Tab content
|
89
|
-
tab_metadata: Tab metadata
|
90
|
-
index:
|
91
|
-
add_page: Add page
|
92
|
-
new:
|
93
|
-
new: New
|
94
|
-
new_page: New page
|
95
|
-
pages: Pages
|
96
|
-
search:
|
97
|
-
form:
|
98
|
-
placeholder: Placeholder
|
99
|
-
search: Search
|
100
|
-
results:
|
101
|
-
title: Title
|
102
|
-
layouts:
|
103
|
-
kuhsaft:
|
104
|
-
cms:
|
105
|
-
flash:
|
106
|
-
success: Success
|
107
|
-
title: Title
|
108
|
-
simple_form:
|
109
|
-
labels:
|
110
|
-
title: 'Page title'
|
111
|
-
slug: 'URL segment'
|
112
|
-
page_part_type: 'Add element'
|
113
|
-
_destroy: 'Delete this element'
|