comfortable_mexican_sofa 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/comfortable_mexican_sofa/application.js.coffee +7 -2
- data/app/assets/stylesheets/comfortable_mexican_sofa/application.css.sass +1 -1
- data/app/views/comfy/admin/cms/files/_form.html.haml +1 -0
- data/app/views/comfy/admin/cms/layouts/_form.html.haml +1 -0
- data/app/views/comfy/admin/cms/pages/_form.html.haml +2 -1
- data/app/views/comfy/admin/cms/sites/_form.html.haml +2 -1
- data/app/views/comfy/admin/cms/snippets/_form.html.haml +2 -1
- data/comfortable_mexican_sofa.gemspec +2 -2
- data/config/locales/cs.yml +239 -0
- data/config/locales/da.yml +6 -0
- data/config/locales/de.yml +6 -0
- data/config/locales/en.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/config/locales/fr.yml +6 -0
- data/config/locales/it.yml +6 -0
- data/config/locales/ja.yml +6 -0
- data/config/locales/nb.yml +239 -0
- data/config/locales/nl.yml +10 -4
- data/config/locales/pl.yml +6 -0
- data/config/locales/pt-BR.yml +6 -0
- data/config/locales/ru.yml +6 -0
- data/config/locales/sv.yml +6 -0
- data/config/locales/zh-CN.yml +6 -0
- data/config/locales/zh-TW.yml +239 -0
- data/db/upgrade_migrations/08_upgrade_to_1_12_0.rb +0 -3
- data/lib/comfortable_mexican_sofa/configuration.rb +4 -1
- data/lib/comfortable_mexican_sofa/version.rb +1 -1
- data/test/gemfiles/Gemfile.rails.4.0 +1 -1
- data/test/gemfiles/Gemfile.rails.4.1 +1 -1
- data/test/gemfiles/Gemfile.rails.master +1 -1
- data/test/lib/fixtures_test.rb +2 -2
- data/test/test_helper.rb +7 -0
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7db18b6f8e81d014cdeaed9da1654a5d44a8e98e
|
4
|
+
data.tar.gz: cb5272767a11c342a92192f2befa1b6971c1541f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a37316a9dcb0dba85d6747c062f811b0f23b97bc3db2833ffbdcbd1b421f7e74b70b534f91d143a7efd94c8ca586da4bc8e8c6ecac8cd01b1be0ac98647030
|
7
|
+
data.tar.gz: ece6cf08ce291810b4e89d632379b096772d906d1628b2781c934588e4873a39b3b731011aa251c600674813690e1a0b666496178c9b9fe5164deeca81954a5d
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ ComfortableMexicanSofa is a powerful Rails 4 CMS Engine
|
|
9
9
|
* Build your application in Rails, not in CMS
|
10
10
|
* Powerful page templating capability using [Tags](https://github.com/comfy/comfortable-mexican-sofa/wiki/Tags)
|
11
11
|
* [Multiple Sites](https://github.com/comfy/comfortable-mexican-sofa/wiki/Sites) from a single installation
|
12
|
-
* Multi-Language Support (i18n) (da, de, en, es, fr, it, ja, nl, pl, pt-BR, ru, sv, zh-CN)
|
12
|
+
* Multi-Language Support (i18n) (cs, da, de, en, es, fr, it, ja, nb, nl, pl, pt-BR, ru, sv, zh-CN, zh-TW)
|
13
13
|
* [Fixtures](https://github.com/comfy/comfortable-mexican-sofa/wiki/Working-with-CMS-fixtures) for initial content population
|
14
14
|
* [Revision History](https://github.com/comfy/comfortable-mexican-sofa/wiki/Revisions)
|
15
15
|
* [Great extendable admin interface](https://github.com/comfy/comfortable-mexican-sofa/wiki/Reusing-sofa%27s-admin-area) built with [Bootstrap](http://twitter.github.com/bootstrap/), [CodeMirror](http://codemirror.net/) and [TinyMCE](http://www.tinymce.com/)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#= require jquery
|
2
2
|
#= require jquery_ujs
|
3
|
-
#= require jquery
|
3
|
+
#= require jquery-ui
|
4
4
|
#= require tinymce-jquery
|
5
5
|
#= require codemirror
|
6
6
|
#= require codemirror/modes/css
|
@@ -68,10 +68,15 @@ window.CMS.codemirror = ->
|
|
68
68
|
autoCloseTags: true
|
69
69
|
lineNumbers: true
|
70
70
|
CMS.code_mirror_instances.push(cm)
|
71
|
-
|
71
|
+
$(cm.display.wrapper).resizable resize: ->
|
72
|
+
cm.setSize($(@).width(), $(@).height())
|
73
|
+
cm.refresh()
|
74
|
+
|
72
75
|
$('a[data-toggle="tab"]').on 'shown', ->
|
73
76
|
for cm in CMS.code_mirror_instances
|
74
77
|
cm.refresh()
|
78
|
+
return
|
79
|
+
return
|
75
80
|
|
76
81
|
window.CMS.sortable_list = ->
|
77
82
|
$('.sortable').sortable
|
@@ -37,4 +37,5 @@
|
|
37
37
|
|
38
38
|
= form.form_group :class => 'form-actions' do
|
39
39
|
= form.submit t('.preview'), :name => 'preview', :id => nil, :class => 'btn btn-default'
|
40
|
-
= form.submit t(@page.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
40
|
+
= form.submit t(@page.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
41
|
+
= link_to t('.cancel'), comfy_admin_cms_site_pages_path, :class => 'btn btn-link'
|
@@ -11,4 +11,5 @@
|
|
11
11
|
= render 'comfy/admin/cms/partials/site_form_after', :object => form
|
12
12
|
|
13
13
|
= form.form_group :class => 'form-actions' do
|
14
|
-
= form.primary t(@site.new_record?? '.create' : '.update')
|
14
|
+
= form.primary t(@site.new_record?? '.create' : '.update')
|
15
|
+
= link_to t('.cancel'), comfy_admin_cms_sites_path, :class => 'btn btn-link'
|
@@ -12,4 +12,5 @@
|
|
12
12
|
= render :partial => 'comfy/admin/cms/partials/snippet_form_after', :object => form
|
13
13
|
|
14
14
|
= form.form_group :class => 'form-actions' do
|
15
|
-
= form.submit t(@snippet.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
15
|
+
= form.submit t(@snippet.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
|
16
|
+
= link_to t('.cancel'), comfy_admin_cms_site_snippets_path, :class => 'btn btn-link'
|
@@ -26,9 +26,9 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_dependency 'paperclip', '>= 4.0.0'
|
27
27
|
s.add_dependency 'kramdown', '>= 1.0.0'
|
28
28
|
s.add_dependency 'jquery-rails', '>= 3.0.0'
|
29
|
-
s.add_dependency 'jquery-ui-rails', '>=
|
29
|
+
s.add_dependency 'jquery-ui-rails', '>= 5.0.0'
|
30
30
|
s.add_dependency 'haml-rails', '>= 0.3.0'
|
31
|
-
s.add_dependency 'sass-rails', '>= 4.0.
|
31
|
+
s.add_dependency 'sass-rails', '>= 4.0.1'
|
32
32
|
s.add_dependency 'coffee-rails', '>= 3.1.0'
|
33
33
|
s.add_dependency 'codemirror-rails', '>= 3.0.0'
|
34
34
|
s.add_dependency 'kaminari', '>= 0.14.0'
|
@@ -0,0 +1,239 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
cs:
|
3
|
+
attributes:
|
4
|
+
label: Popis
|
5
|
+
slug: Slug
|
6
|
+
parent_id: Rodič
|
7
|
+
content: Obsah
|
8
|
+
identifier: Identifikátor
|
9
|
+
full_path: Full path
|
10
|
+
activerecord:
|
11
|
+
models:
|
12
|
+
comfy/cms/site: Web
|
13
|
+
comfy/cms/layout: Rozložení
|
14
|
+
comfy/cms/page: Stránka
|
15
|
+
comfy/cms/snippet: Úryvek
|
16
|
+
comfy/cms/file: Soubor
|
17
|
+
attributes:
|
18
|
+
comfy/cms/site:
|
19
|
+
identifier: Identifikátor
|
20
|
+
hostname: Doména
|
21
|
+
path: Cesta
|
22
|
+
locale: Jazyk
|
23
|
+
is_mirrored: Zrcadlený
|
24
|
+
comfy/cms/layout:
|
25
|
+
identifier: Identifikátor
|
26
|
+
label: Název rozložení
|
27
|
+
app_layout: Rozložení aplikace
|
28
|
+
parent_id: Rodičovské rozložení
|
29
|
+
css: Styl
|
30
|
+
js: Javascript
|
31
|
+
comfy/cms/page:
|
32
|
+
label: Popis
|
33
|
+
layout_id: Rozložení
|
34
|
+
slug: Slug
|
35
|
+
target_page_id: Přesměrovat na stránku
|
36
|
+
is_published: Publikovaný
|
37
|
+
comfy/cms/file:
|
38
|
+
file: Soubor
|
39
|
+
description: Popis
|
40
|
+
comfy/cms/snippet:
|
41
|
+
identifier: Identifikátor
|
42
|
+
|
43
|
+
comfy:
|
44
|
+
cms:
|
45
|
+
content:
|
46
|
+
site_not_found: Web nenalezen
|
47
|
+
layout_not_found: Rozložení nenalezeno
|
48
|
+
page_not_found: Stránka nenalezena
|
49
|
+
|
50
|
+
admin:
|
51
|
+
cms:
|
52
|
+
base:
|
53
|
+
site_not_found: Web nenalezen
|
54
|
+
fixtures_enabled: Je povolen pevně definovaný obsah CMS. Všechny zde provedené změny budou ztraceny.
|
55
|
+
|
56
|
+
sites: Weby
|
57
|
+
layouts: Rozložení
|
58
|
+
pages: Stránky
|
59
|
+
snippets: Úryvky
|
60
|
+
files: Soubory
|
61
|
+
|
62
|
+
sites:
|
63
|
+
created: Web vytvořen
|
64
|
+
creation_failure: Nepodařilo se vytvořit web
|
65
|
+
updated: Web upraven
|
66
|
+
update_failure: Nepodařilo se upravit web
|
67
|
+
deleted: Web odstraněn
|
68
|
+
not_found: Web nenalezen
|
69
|
+
|
70
|
+
index:
|
71
|
+
title: Weby
|
72
|
+
new_link: Vytvořit web
|
73
|
+
select: Vyberte web
|
74
|
+
edit: Upravit
|
75
|
+
delete: Smazat
|
76
|
+
are_you_sure: Určitě chcete odstranit tento web?
|
77
|
+
new:
|
78
|
+
title: Nový web
|
79
|
+
edit:
|
80
|
+
title: Úprava webu
|
81
|
+
form:
|
82
|
+
create: Vytvořit web
|
83
|
+
cancel: Zrušit
|
84
|
+
update: Upravit web
|
85
|
+
is_mirrored: Zrcadlený
|
86
|
+
|
87
|
+
layouts:
|
88
|
+
created: Rozložení vytvořeno
|
89
|
+
creation_failure: Nepodařilo se vytvořit rozložení
|
90
|
+
updated: Rozložení upraveno
|
91
|
+
update_failure: Nepodařilo se upravit rozložení
|
92
|
+
deleted: Rozložení odstraněno
|
93
|
+
not_found: Rozložení nenalezeno
|
94
|
+
|
95
|
+
index:
|
96
|
+
title: Rozložení
|
97
|
+
new_link: Vytvořit nové rozložení
|
98
|
+
index_branch:
|
99
|
+
add_child_layout: Přidat odvozené rozložení
|
100
|
+
edit: Upravit
|
101
|
+
delete: Smazat
|
102
|
+
are_you_sure: Určitě?
|
103
|
+
new:
|
104
|
+
title: Nové rozložení
|
105
|
+
edit:
|
106
|
+
title: Úprava rozložení
|
107
|
+
revision: &revision
|
108
|
+
zero: Žádné revize
|
109
|
+
one: '%{count} revize'
|
110
|
+
few: '%{count} revize'
|
111
|
+
many: '%{count} revizí'
|
112
|
+
other: '%{count} revizí'
|
113
|
+
form:
|
114
|
+
select_parent_layout: Zvolte rodičovské rozložení
|
115
|
+
select_app_layout: Zvolte rozložení aplikace
|
116
|
+
create: Vytvořit rozložení
|
117
|
+
cancel: Zrušit
|
118
|
+
update: Upravit rozložení
|
119
|
+
|
120
|
+
pages:
|
121
|
+
created: Stránka vytvořena
|
122
|
+
creation_failure: Nepodařilo se vytvořit stránku
|
123
|
+
updated: Stránka upravena
|
124
|
+
update_failure: Nepodařilo se upravit stránku
|
125
|
+
deleted: Stránka odstraněna
|
126
|
+
not_found: Stránka nenalezena
|
127
|
+
layout_not_found: "Nebyla nalezena žádná rozložení, vytvořte je prosím."
|
128
|
+
|
129
|
+
index:
|
130
|
+
title: Stránky
|
131
|
+
new_link: Vytvořit novou stránku
|
132
|
+
index_branch:
|
133
|
+
toggle: Přepnout
|
134
|
+
add_child_page: Přidat podstránku
|
135
|
+
edit: Upravit
|
136
|
+
delete: Smazat
|
137
|
+
are_you_sure: Určitě?
|
138
|
+
new:
|
139
|
+
title: Nová stránka
|
140
|
+
edit:
|
141
|
+
title: Úprava stránky
|
142
|
+
revision:
|
143
|
+
<<: *revision
|
144
|
+
form:
|
145
|
+
select_target_page: Bez přesměrování
|
146
|
+
preview: Náhled
|
147
|
+
create: Vytvořit stránku
|
148
|
+
cancel: Zrušit
|
149
|
+
update: Upravit stránku
|
150
|
+
is_published: Publikovaná
|
151
|
+
form_blocks:
|
152
|
+
no_tags: |-
|
153
|
+
Rozložení nedefinuje žádné obsahové značky.<br/>
|
154
|
+
Upravte jeho obsah tak, aby zahrnovalo obsahové značky. Například: <code>{{cms:page:content}}</code>
|
155
|
+
|
156
|
+
snippets:
|
157
|
+
created: Úryvek vytvořen
|
158
|
+
creation_failure: Nepodařilo se vytvořit úryvek
|
159
|
+
updated: Úryvek upraven
|
160
|
+
update_failure: Nepodařilo se upravit úryvek
|
161
|
+
deleted: Úryvek odstraněn
|
162
|
+
not_found: Úryvek nenalezen
|
163
|
+
|
164
|
+
index:
|
165
|
+
title: Úryvky
|
166
|
+
new_link: Vytvořit úryvek
|
167
|
+
edit: Upravit
|
168
|
+
delete: Smazat
|
169
|
+
are_you_sure: Určitě?
|
170
|
+
new:
|
171
|
+
title: Nový úryvek
|
172
|
+
edit:
|
173
|
+
title: Upravit úryvek
|
174
|
+
revision:
|
175
|
+
<<: *revision
|
176
|
+
form:
|
177
|
+
create: Vytvořit úryvek
|
178
|
+
cancel: Zrušit
|
179
|
+
update: Upravit úryvek
|
180
|
+
|
181
|
+
revisions:
|
182
|
+
reverted: Obsah byl obnoven
|
183
|
+
record_not_found: Záznam nenalezen
|
184
|
+
not_found: Revize nenalezena
|
185
|
+
|
186
|
+
show:
|
187
|
+
title: Revize pro
|
188
|
+
revision: Revize
|
189
|
+
full_path: Celá cesta
|
190
|
+
slug: Slug
|
191
|
+
update: Použít tuto revizi
|
192
|
+
content: Obsah
|
193
|
+
changes: Změny
|
194
|
+
previous: Předchozí
|
195
|
+
current: Aktuální
|
196
|
+
|
197
|
+
files:
|
198
|
+
created: Soubory nahrány
|
199
|
+
creation_failure: Nepodařilo se nahrát soubory
|
200
|
+
updated: Soubor upraven
|
201
|
+
update_failure: Nepodařilo se upravit soubor
|
202
|
+
deleted: Soubor odstraněn
|
203
|
+
not_found: Soubor nenalezen
|
204
|
+
|
205
|
+
index:
|
206
|
+
title: Soubory
|
207
|
+
new_link: Nahrát nový soubor
|
208
|
+
edit: Upravit
|
209
|
+
delete: Smazat
|
210
|
+
are_you_sure: Určitě?
|
211
|
+
button: Nahrát soubory
|
212
|
+
new:
|
213
|
+
title: Nový soubor
|
214
|
+
edit:
|
215
|
+
title: Upravit soubor
|
216
|
+
form:
|
217
|
+
current_file: Aktuální soubor
|
218
|
+
create: Nahrát soubor
|
219
|
+
cancel: Zrušit
|
220
|
+
update: Upravit soubor
|
221
|
+
page_form:
|
222
|
+
are_you_sure: Určitě?
|
223
|
+
file:
|
224
|
+
are_you_sure: Určitě?
|
225
|
+
|
226
|
+
categories:
|
227
|
+
index:
|
228
|
+
label: Kategorie
|
229
|
+
edit: Upravit
|
230
|
+
done: Hotovo
|
231
|
+
all: Všechny
|
232
|
+
add: Přidat
|
233
|
+
add_placeholder: Přidat kategorii
|
234
|
+
show:
|
235
|
+
are_you_sure: Určitě?
|
236
|
+
edit:
|
237
|
+
save: Uložit
|
238
|
+
form:
|
239
|
+
label: Kategorie
|
data/config/locales/da.yml
CHANGED
@@ -6,6 +6,7 @@ da:
|
|
6
6
|
parent_id: Overordnet
|
7
7
|
content: Indhold
|
8
8
|
identifier: Nøgleord
|
9
|
+
full_path: Full path
|
9
10
|
activerecord:
|
10
11
|
models:
|
11
12
|
comfy/cms/site: Websted
|
@@ -79,6 +80,7 @@ da:
|
|
79
80
|
title: Rediger websted
|
80
81
|
form:
|
81
82
|
create: Opret websted
|
83
|
+
cancel: Annuller
|
82
84
|
update: Opdater websted
|
83
85
|
is_mirrored: Kopieret websted
|
84
86
|
|
@@ -112,6 +114,7 @@ da:
|
|
112
114
|
select_parent_layout: Vælg overordnet layout
|
113
115
|
select_app_layout: Vælg applikationens layout
|
114
116
|
create: Opret layout
|
117
|
+
cancel: Annuller
|
115
118
|
update: Opdater layout
|
116
119
|
|
117
120
|
pages:
|
@@ -142,6 +145,7 @@ da:
|
|
142
145
|
select_target_page: Ingen viderestilling
|
143
146
|
preview: Preview
|
144
147
|
create: Opret side
|
148
|
+
cancel: Annuller
|
145
149
|
update: Opdater side
|
146
150
|
is_published: Udgivet
|
147
151
|
form_blocks:
|
@@ -171,6 +175,7 @@ da:
|
|
171
175
|
<<: *revision
|
172
176
|
form:
|
173
177
|
create: Opret snippet
|
178
|
+
cancel: Annuller
|
174
179
|
update: Opdater snippet
|
175
180
|
|
176
181
|
revisions:
|
@@ -211,6 +216,7 @@ da:
|
|
211
216
|
form:
|
212
217
|
current_file: Nuværende fil
|
213
218
|
create: Send fil
|
219
|
+
cancel: Annuller
|
214
220
|
update: Opdater fil
|
215
221
|
page_form:
|
216
222
|
are_you_sure: Er du sikker?
|
data/config/locales/de.yml
CHANGED
@@ -6,6 +6,7 @@ de:
|
|
6
6
|
parent_id: Vorfahre
|
7
7
|
content: Inhalt
|
8
8
|
identifier: Identifikator
|
9
|
+
full_path: Full path
|
9
10
|
activerecord:
|
10
11
|
models:
|
11
12
|
comfy/cms/site: Web
|
@@ -79,6 +80,7 @@ de:
|
|
79
80
|
title: Web bearbeiten
|
80
81
|
form:
|
81
82
|
create: Web erstellen
|
83
|
+
cancel: Abbrechen
|
82
84
|
update: Web speichern
|
83
85
|
is_mirrored: Gespiegelt
|
84
86
|
|
@@ -112,6 +114,7 @@ de:
|
|
112
114
|
select_parent_layout: Übergeordnetes Layout auswählen
|
113
115
|
select_app_layout: Grundlegendes Layout auswählen
|
114
116
|
create: Layout erstellen
|
117
|
+
cancel: Abbrechen
|
115
118
|
update: Layout speichern
|
116
119
|
|
117
120
|
pages:
|
@@ -142,6 +145,7 @@ de:
|
|
142
145
|
select_target_page: Keine Weiterleitung
|
143
146
|
preview: Vorschau
|
144
147
|
create: Seite erstellen
|
148
|
+
cancel: Abbrechen
|
145
149
|
update: Seite speichern
|
146
150
|
is_published: Veröffentlicht
|
147
151
|
form_blocks:
|
@@ -171,6 +175,7 @@ de:
|
|
171
175
|
<<: *revision
|
172
176
|
form:
|
173
177
|
create: Schnipsel erstellen
|
178
|
+
cancel: Abbrechen
|
174
179
|
update: Schnipsel speichern
|
175
180
|
|
176
181
|
revisions:
|
@@ -211,6 +216,7 @@ de:
|
|
211
216
|
form:
|
212
217
|
current_file: Aktuelle Datei
|
213
218
|
create: Datei aufspielen
|
219
|
+
cancel: Abbrechen
|
214
220
|
update: Datei speichern
|
215
221
|
page_form:
|
216
222
|
are_you_sure: Sind Sie sicher?
|
data/config/locales/en.yml
CHANGED
@@ -6,6 +6,7 @@ en:
|
|
6
6
|
parent_id: Parent
|
7
7
|
content: Content
|
8
8
|
identifier: Identifier
|
9
|
+
full_path: Full path
|
9
10
|
activerecord:
|
10
11
|
models:
|
11
12
|
comfy/cms/site: Site
|
@@ -79,6 +80,7 @@ en:
|
|
79
80
|
title: Editing Site
|
80
81
|
form:
|
81
82
|
create: Create Site
|
83
|
+
cancel: Cancel
|
82
84
|
update: Update Site
|
83
85
|
is_mirrored: Mirrored
|
84
86
|
|
@@ -112,6 +114,7 @@ en:
|
|
112
114
|
select_parent_layout: Select Parent Layout
|
113
115
|
select_app_layout: Select Application Layout
|
114
116
|
create: Create Layout
|
117
|
+
cancel: Cancel
|
115
118
|
update: Update Layout
|
116
119
|
|
117
120
|
pages:
|
@@ -142,6 +145,7 @@ en:
|
|
142
145
|
select_target_page: No Redirect
|
143
146
|
preview: Preview
|
144
147
|
create: Create Page
|
148
|
+
cancel: Cancel
|
145
149
|
update: Update Page
|
146
150
|
is_published: Published
|
147
151
|
form_blocks:
|
@@ -171,6 +175,7 @@ en:
|
|
171
175
|
<<: *revision
|
172
176
|
form:
|
173
177
|
create: Create Snippet
|
178
|
+
cancel: Cancel
|
174
179
|
update: Update Snippet
|
175
180
|
|
176
181
|
revisions:
|
@@ -211,6 +216,7 @@ en:
|
|
211
216
|
form:
|
212
217
|
current_file: Current File
|
213
218
|
create: Upload File
|
219
|
+
cancel: Cancel
|
214
220
|
update: Update File
|
215
221
|
page_form:
|
216
222
|
are_you_sure: Are you sure?
|