goldencobra 1.4.0 → 1.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +3 -2
- data/app/assets/images/goldencobra/Jcrop.gif +0 -0
- data/app/assets/javascripts/goldencobra/active_admin.js +145 -84
- data/app/assets/javascripts/goldencobra/jquery.Jcrop.min.js +22 -0
- data/app/assets/javascripts/goldencobra/jquery.color.js +661 -0
- data/app/assets/stylesheets/goldencobra/active_admin.css.scss +375 -252
- data/app/assets/stylesheets/goldencobra/{application.css → application.css.scss} +0 -0
- data/app/assets/stylesheets/goldencobra/ikusei_active_admin.scss +35 -26
- data/app/assets/stylesheets/goldencobra/jquery.Jcrop.min.css +29 -0
- data/app/controllers/goldencobra/api/v2/articles_controller.rb +221 -0
- data/app/controllers/goldencobra/api/v2/locales_controller.rb +31 -0
- data/app/controllers/goldencobra/api/v2/settings_controller.rb +31 -0
- data/app/controllers/goldencobra/articles_controller.rb +42 -16
- data/app/controllers/goldencobra/sessions_controller.rb +8 -1
- data/app/helpers/goldencobra/application_helper.rb +3 -1
- data/app/helpers/goldencobra/articles_helper.rb +14 -8
- data/app/middleware/goldencobra/handle_invalid_percent_encoding.rb +40 -0
- data/app/models/ability.rb +43 -48
- data/app/models/goldencobra/article.rb +292 -218
- data/app/models/goldencobra/article_author.rb +19 -0
- data/app/models/goldencobra/article_image.rb +2 -0
- data/app/models/goldencobra/articletype.rb +30 -28
- data/app/models/goldencobra/author.rb +5 -3
- data/app/models/goldencobra/domain.rb +2 -0
- data/app/models/goldencobra/import.rb +2 -2
- data/app/models/goldencobra/link_checker.rb +64 -0
- data/app/models/goldencobra/menue.rb +4 -2
- data/app/models/goldencobra/permission.rb +3 -1
- data/app/models/goldencobra/redirector.rb +131 -0
- data/app/models/goldencobra/setting.rb +29 -3
- data/app/models/goldencobra/upload.rb +60 -1
- data/app/models/goldencobra/url_builder.rb +58 -0
- data/app/models/goldencobra/vita.rb +4 -0
- data/app/models/goldencobra/widget.rb +10 -0
- data/app/models/user.rb +1 -1
- data/app/views/goldencobra/admin/articles/_article_type.html.erb +1 -1
- data/app/views/goldencobra/admin/articles/_articles_index.html.erb +3 -3
- data/app/views/goldencobra/admin/articles/_image_module_sidebar.html.erb +19 -7
- data/app/views/goldencobra/admin/articles/_layout_sidebar.html.erb +2 -2
- data/app/views/goldencobra/admin/articles/_link_checker.html.erb +4 -4
- data/app/views/goldencobra/admin/articles/_link_checker_index.html.erb +1 -1
- data/app/views/goldencobra/admin/articles/_select_article_type.html.erb +8 -8
- data/app/views/goldencobra/admin/articles/_sort_articles_index.html.erb +1 -1
- data/app/views/goldencobra/admin/articles/_widgets_sidebar.html.erb +2 -2
- data/app/views/goldencobra/admin/articles/toggle_expert_mode.js.erb +2 -2
- data/app/views/goldencobra/admin/settings/_index.html.erb +14 -0
- data/app/views/goldencobra/admin/settings/_key_value.html.erb +12 -0
- data/app/views/goldencobra/admin/settings/_settings_group.html.erb +14 -0
- data/app/views/goldencobra/admin/shared/_help.html.erb +12 -10
- data/app/views/goldencobra/admin/shared/_item.html.erb +4 -4
- data/app/views/goldencobra/admin/shared/_overview.html.erb +14 -4
- data/app/views/goldencobra/admin/shared/load_overviewtree.js.erb +6 -0
- data/app/views/goldencobra/admin/uploads/_jcrop.html.erb +23 -0
- data/app/views/goldencobra/articles/_edit_article_link.html.erb +1 -1
- data/app/views/goldencobra/articles/show.rss.builder +5 -0
- data/app/views/goldencobra/articles/sitemap.xml.builder +15 -1
- data/app/views/goldencobra/manage/_admin_article_management.html.erb +1 -1
- data/app/views/goldencobra/manage/_admin_article_management_content.html.erb +4 -4
- data/app/views/goldencobra/manage/render_admin_menue.html.erb +1 -0
- data/app/views/goldencobra/manage/render_admin_menue.js.erb +0 -1
- data/app/views/goldencobra/sessions/_login.html.erb +4 -4
- data/app/views/goldencobra/sessions/_register.html.erb +6 -6
- data/app/views/layouts/goldencobra/active_admin_resque.html.erb +1 -1
- data/app/worker/articles_cache_worker.rb +1 -1
- data/config/initializers/check_for_missing_articletypes.rb +40 -37
- data/config/initializers/devise.rb +3 -1
- data/config/initializers/http_validator.rb +9 -2
- data/config/initializers/liquid_tags.rb +2 -2
- data/config/locales/active_admin.de.yml +509 -3
- data/config/locales/active_admin.en.yml +580 -64
- data/config/locales/de.yml +478 -4
- data/config/locales/en.yml +406 -10
- data/config/pre-commit.rb +3 -0
- data/config/routes.rb +12 -1
- data/config/settings.yml +51 -50
- data/db/migrate/20130114154115_add_sorter_to_goldencobra_permissions.rb +4 -1
- data/db/migrate/20140204221345_add_operator_to_goldencobra_permissions.rb +5 -0
- data/db/migrate/20140411152728_add_creator_id_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20140505144517_add_taggingcounter.rb +15 -0
- data/db/migrate/20140603084537_add_domain_to_goldencobra_permissions.rb +7 -0
- data/db/migrate/20140615200342_resize_link_checkfield.rb +13 -0
- data/db/migrate/20140626135753_add_externalreferee_to_goldencobra_articles.rb +6 -0
- data/db/migrate/20140702103024_add_externaldate_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20140702105550_add_remoteurl_to_goldencobra_uploads.rb +5 -0
- data/db/migrate/20140702142818_add_image_gallery_type_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20140819101033_add_urlpath_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20141009104216_set_db_and_tables_to_utf8.rb +20 -0
- data/db/migrate/20141104115144_create_goldencobra_redirectors.rb +15 -0
- data/db/migrate/20141112124531_add_globalsorting_to_goldencobra_articles.rb +7 -0
- data/db/migrate/20141124170930_add_indiex_to_gc.rb +26 -0
- data/db/migrate/20150115111024_create_goldencobra_article_authors.rb +28 -0
- data/db/migrate/20150115134707_add_remove_author_stuff.rb +11 -0
- data/db/migrate/20150417153454_add_status_to_goldencobra_vita_steps.rb +5 -0
- data/db/seeds.rb +4 -153
- data/lib/generators/goldencobra/articletype/templates/edit_index.html.erb +1 -1
- data/lib/generators/goldencobra/articletype/templates/initializer.rb +4 -2
- data/lib/generators/goldencobra/install_generator.rb +3 -0
- data/lib/generators/goldencobra/server_generator.rb +67 -0
- data/lib/generators/goldencobra/templates/active_admin.rb.erb +3 -0
- data/lib/generators/goldencobra/templates/robots.txt +5 -0
- data/lib/generators/goldencobra/templates/views/articletypes/default/_edit_index.html.erb +9 -0
- data/lib/generators/goldencobra/templates/views/articletypes/default/_edit_show.html.erb +0 -0
- data/lib/generators/goldencobra/templates/views/articletypes/default/_index.html.erb +31 -18
- data/lib/generators/goldencobra/templates/views/articletypes/default/_show.html.erb +22 -15
- data/lib/goldencobra/engine.rb +19 -3
- data/lib/goldencobra/version.rb +1 -1
- data/lib/tasks/article_cache.rake +19 -0
- data/lib/tasks/i18n.rake +1 -1
- data/lib/tasks/import.rake +31 -3
- data/lib/tasks/link_checker.rake +4 -2
- metadata +217 -23
- data/config/locales/activerecord.de.yml +0 -227
- data/config/locales/activerecord.en.yml +0 -148
- data/config/locales/devise.de.yml +0 -54
- data/config/locales/devise.en.yml +0 -57
- data/config/locales/formtastic.de.yml +0 -10
- data/config/locales/formtastic.en.yml +0 -10
- data/config/locales/goldencobra.de.yml +0 -40
- data/config/locales/goldencobra.en.yml +0 -3
data/config/locales/en.yml
CHANGED
@@ -1,4 +1,409 @@
|
|
1
1
|
en:
|
2
|
+
articles:
|
3
|
+
read_on: 'read on'
|
4
|
+
selection: "Article"
|
5
|
+
formtastic:
|
6
|
+
yes: 'yes'
|
7
|
+
no: 'no'
|
8
|
+
create: 'Create %{model}'
|
9
|
+
update: 'Update %{model}'
|
10
|
+
submit: 'Save %{model}'
|
11
|
+
cancel: 'Cancel %{model}'
|
12
|
+
reset: 'Reset %{model}'
|
13
|
+
required: 'required'
|
14
|
+
errors:
|
15
|
+
messages:
|
16
|
+
expired: "has expired, please request a new one"
|
17
|
+
not_found: "not found"
|
18
|
+
already_confirmed: "was already confirmed, please try signing in"
|
19
|
+
not_locked: "was not locked"
|
20
|
+
not_saved:
|
21
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
22
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
23
|
+
devise:
|
24
|
+
failure:
|
25
|
+
already_authenticated: 'You are already signed in.'
|
26
|
+
unauthenticated: 'You need to sign in or sign up before continuing.'
|
27
|
+
unconfirmed: 'You have to confirm your account before continuing.'
|
28
|
+
locked: 'Your account is locked.'
|
29
|
+
invalid: 'Invalid email or password.'
|
30
|
+
invalid_token: 'Invalid authentication token.'
|
31
|
+
timeout: 'Your session expired, please sign in again to continue.'
|
32
|
+
inactive: 'Your account was not activated yet.'
|
33
|
+
sessions:
|
34
|
+
signed_in: 'Signed in successfully.'
|
35
|
+
signed_out: 'Signed out successfully.'
|
36
|
+
passwords:
|
37
|
+
send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
|
38
|
+
updated: 'Your password was changed successfully. You are now signed in.'
|
39
|
+
updated_not_active: 'Your password was changed successfully.'
|
40
|
+
send_paranoid_instructions: "If your e-mail exists on our database, you will receive a password recovery link on your e-mail"
|
41
|
+
confirmations:
|
42
|
+
send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
|
43
|
+
send_paranoid_instructions: 'If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
|
44
|
+
confirmed: 'Your account was successfully confirmed. You are now signed in.'
|
45
|
+
registrations:
|
46
|
+
signed_up: 'Welcome! You have signed up successfully.'
|
47
|
+
inactive_signed_up_but_REASON: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
|
48
|
+
updated: 'You updated your account successfully.'
|
49
|
+
destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
|
50
|
+
signed_up_but_REASON:
|
51
|
+
inactive: 'inactive'
|
52
|
+
unconfirmed: 'unconfirmed'
|
53
|
+
locked: 'locked'
|
54
|
+
unlocks:
|
55
|
+
send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
|
56
|
+
unlocked: 'Your account was successfully unlocked. You are now signed in.'
|
57
|
+
send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
|
58
|
+
omniauth_callbacks:
|
59
|
+
success: 'Successfully authorized from %{kind} account.'
|
60
|
+
failure: 'Could not authorize you from %{kind} because "%{reason}".'
|
61
|
+
mailer:
|
62
|
+
confirmation_instructions:
|
63
|
+
subject: 'Confirmation instructions'
|
64
|
+
reset_password_instructions:
|
65
|
+
subject: 'Reset password instructions'
|
66
|
+
unlock_instructions:
|
67
|
+
subject: 'Unlock Instructions'
|
68
|
+
activerecord:
|
69
|
+
models:
|
70
|
+
redirector:
|
71
|
+
one: "Redirection"
|
72
|
+
other: "Redirections"
|
73
|
+
analytic:
|
74
|
+
one: "Analytic"
|
75
|
+
other: "Analytics"
|
76
|
+
domain:
|
77
|
+
one: "Domain"
|
78
|
+
other: "Domains"
|
79
|
+
goldencobra/domain:
|
80
|
+
one: "Domain"
|
81
|
+
other: "Domains"
|
82
|
+
articletype:
|
83
|
+
one: "Article type"
|
84
|
+
other: "Article types"
|
85
|
+
link-checker:
|
86
|
+
one: "Link checker"
|
87
|
+
other: "Link checker"
|
88
|
+
comment:
|
89
|
+
one: "Comment"
|
90
|
+
other: "Comments"
|
91
|
+
goldencobra/comment:
|
92
|
+
one: "Comment"
|
93
|
+
other: "Comments"
|
94
|
+
author:
|
95
|
+
one: "Author"
|
96
|
+
other: "Authors"
|
97
|
+
goldencobra/author:
|
98
|
+
one: "Author"
|
99
|
+
other: "Authors"
|
100
|
+
import:
|
101
|
+
one: "Import"
|
102
|
+
other: "Imports"
|
103
|
+
article:
|
104
|
+
one: "Article"
|
105
|
+
other: "Articles"
|
106
|
+
goldencobra/article:
|
107
|
+
one: "Article"
|
108
|
+
other: "Articles"
|
109
|
+
setting:
|
110
|
+
one: "Website setting"
|
111
|
+
other: "Website settings"
|
112
|
+
goldencobra/setting:
|
113
|
+
one: "Website setting"
|
114
|
+
other: "Website settings"
|
115
|
+
menue:
|
116
|
+
one: "Menu"
|
117
|
+
other: "Menus"
|
118
|
+
goldencobra/menue:
|
119
|
+
one: "Menu"
|
120
|
+
other: "Menus"
|
121
|
+
metag:
|
122
|
+
one: "Meta tag"
|
123
|
+
other: "Meta tags"
|
124
|
+
goldencobra/metag:
|
125
|
+
one: "Meta tag"
|
126
|
+
other: "Meta tags"
|
127
|
+
widget:
|
128
|
+
one: "Widget"
|
129
|
+
other: "Widgets"
|
130
|
+
goldencobra/widget:
|
131
|
+
one: "Widget"
|
132
|
+
other: "Widgets"
|
133
|
+
upload:
|
134
|
+
one: "Medium"
|
135
|
+
other: "Media"
|
136
|
+
goldencobra/upload:
|
137
|
+
one: "Medium"
|
138
|
+
other: "Media"
|
139
|
+
user:
|
140
|
+
one: "User"
|
141
|
+
other: "Users"
|
142
|
+
permission:
|
143
|
+
one: "Permission"
|
144
|
+
other: "Permissions"
|
145
|
+
goldencobra/permission:
|
146
|
+
one: "Permission"
|
147
|
+
other: "Permissions"
|
148
|
+
role:
|
149
|
+
one: "Role"
|
150
|
+
other: "Roles"
|
151
|
+
goldencobra/role:
|
152
|
+
one: "Role"
|
153
|
+
other: "Roles"
|
154
|
+
attributes:
|
155
|
+
goldencobra/metatag:
|
156
|
+
name: "Name"
|
157
|
+
value: "Value"
|
158
|
+
goldencobra/comment:
|
159
|
+
content: "Content"
|
160
|
+
active: "active"
|
161
|
+
approved: "approved"
|
162
|
+
reported: "reported"
|
163
|
+
goldencobra/role:
|
164
|
+
description: "Description"
|
165
|
+
created_at: "created at"
|
166
|
+
updated_at: "updated at"
|
167
|
+
user:
|
168
|
+
firstname: "firstname"
|
169
|
+
lastname: "lastname"
|
170
|
+
password: "password"
|
171
|
+
password_confirmation: "password confirmation"
|
172
|
+
roles: "roles"
|
173
|
+
function: "function"
|
174
|
+
phone: "phone"
|
175
|
+
complete_name: "name"
|
176
|
+
email: "email"
|
177
|
+
created_at: "created at"
|
178
|
+
updated_at: "updated at"
|
179
|
+
goldencobra/article:
|
180
|
+
redirection_target_in_new_window: "Redirect in new Window"
|
181
|
+
redirect_link_title: "Name of external link"
|
182
|
+
dynamic_redirection: "Automatic redirection"
|
183
|
+
commentable: "Article is commentable"
|
184
|
+
enable_social_sharing: "display 'Social Sharing'-Actions"
|
185
|
+
parent_id: "Parent article"
|
186
|
+
article_type: "Article type"
|
187
|
+
title: "Title"
|
188
|
+
url: "Url"
|
189
|
+
sorter_limit: "Number of sorted articles"
|
190
|
+
sort_order: "Sort order"
|
191
|
+
reverse_sort: "Descending order?"
|
192
|
+
authors: "Authors"
|
193
|
+
url_name: "Name of url of article"
|
194
|
+
slug: "Url shortform"
|
195
|
+
content: "Main content"
|
196
|
+
teaser: "Teaser"
|
197
|
+
ancestry: "Ancestry"
|
198
|
+
startpage: "Startpage"
|
199
|
+
active: "Online"
|
200
|
+
active_since: "Active since"
|
201
|
+
subtitle: "Subtitle"
|
202
|
+
summary: "Summary"
|
203
|
+
context_info: "Sidebare content"
|
204
|
+
canonical_url: "Url for search engines"
|
205
|
+
robots_no_index: "do not list in search engines"
|
206
|
+
breadcrumb: "Breadcrumb title"
|
207
|
+
template_file: "Layout file"
|
208
|
+
enable_social_sharing: "show social media buttons"
|
209
|
+
cacheable: "Article cacheable"
|
210
|
+
external_url_redirect: "redirect to external url"
|
211
|
+
created_at: "created at"
|
212
|
+
updated_at: "updated at"
|
213
|
+
tag_list: "List of tags"
|
214
|
+
frontend_tag_list: "Filters"
|
215
|
+
goldencobra/upload:
|
216
|
+
image_remote_url: "Download URL"
|
217
|
+
source: "source"
|
218
|
+
created_at: "created at"
|
219
|
+
updated_at: "updated at"
|
220
|
+
image_file_name: "image file name"
|
221
|
+
image_content_type: "image content type"
|
222
|
+
image_file_size: "image file size"
|
223
|
+
rights: "rights"
|
224
|
+
description: "description"
|
225
|
+
image: "image"
|
226
|
+
goldencobra/widget:
|
227
|
+
title: "Title"
|
228
|
+
created_at: "created at"
|
229
|
+
active: "Online?"
|
230
|
+
offline_day: "Days which show alternative content"
|
231
|
+
offline_time_start: "Start time"
|
232
|
+
offline_time_start_hint: "Time as HH:MM(24h): e.g. 16:00"
|
233
|
+
offline_time_end: "End time"
|
234
|
+
offline_time_end_hint: "Time as HH:MM(24h): e.g. 17:35"
|
235
|
+
offline_time_active: "Use alternative offline content?"
|
236
|
+
offline_time_active_hint: "Tick if you want this widget to be offline at specific times."
|
237
|
+
alternative_content: "Content for offline widget"
|
238
|
+
alternative_content_hint: "This content will be shown, when widget is offline"
|
239
|
+
goldencobra:
|
240
|
+
article_field_placeholder:
|
241
|
+
author: "Choose authors"
|
242
|
+
article_field_hints:
|
243
|
+
global_sorting_id: "Global sorting number for relations on article index pages"
|
244
|
+
title: "Title/Headline of an article."
|
245
|
+
teaser: "Short description of this article. Also used in Goolge and Facebook"
|
246
|
+
summary: ""
|
247
|
+
active: "Is this article online visible?"
|
248
|
+
tag_list: "Tags are comma separated values to organise und group your articles"
|
249
|
+
frontend_tag_list: "These Values are offered as filter options on index-articles"
|
250
|
+
active_since: ""
|
251
|
+
context_info: "This text could appear in a sidebar"
|
252
|
+
metatags_name: ""
|
253
|
+
metatags_destroy: "reset to defaults"
|
254
|
+
breadcrumb: "short title for a breadcrumb navigation"
|
255
|
+
url_name: "max 64 chars"
|
256
|
+
parent_id: "Parrent article"
|
257
|
+
canonical_url: ""
|
258
|
+
enable_social_sharing: ""
|
259
|
+
robots_no_index: ""
|
260
|
+
cacheable: ""
|
261
|
+
commentable: ""
|
262
|
+
author: ""
|
263
|
+
article_types:
|
264
|
+
Chairman: "Vorstand"
|
265
|
+
Subsidiary: "Niederlassungen"
|
266
|
+
Consultant: "Berater"
|
267
|
+
Event: "Veranstaltungen"
|
268
|
+
Report: "Nachrichten"
|
269
|
+
Article: "Artikel"
|
270
|
+
Pressreferent: "Pressereferenten"
|
271
|
+
Personelreferent: "Personalreferenten"
|
272
|
+
Faq: "Häufige Fragen"
|
273
|
+
Pressrelease: "Pressemitteilung"
|
274
|
+
Default: "Standard"
|
275
|
+
Partner: "Partner"
|
276
|
+
consultant_index: "Berater Übersicht"
|
277
|
+
consultant_show: "Berater Einzelseite"
|
278
|
+
report_index: "Nachrichten Übersicht"
|
279
|
+
report_show: "Nachrichten Einzelseite"
|
280
|
+
subsidiary_index: "Niederlassung Übersicht"
|
281
|
+
subsidiary_show: "Niederlassung Einzelseite"
|
282
|
+
event_index: "Veranstaltungen Übersicht"
|
283
|
+
event_show: "Veranstaltungen Einzelseite"
|
284
|
+
default_index: "Default index"
|
285
|
+
default_show: "Default show"
|
286
|
+
pressreferent_index: "Pressereferenten Übersicht"
|
287
|
+
pressreferent_show: "Pressereferenten Einzelseite"
|
288
|
+
personelreferent_index: "Personalreferenten Übersicht"
|
289
|
+
personelreferent_show: "Personalreferenten Einzelseite"
|
290
|
+
chairman_index: "Vorstand Übersicht"
|
291
|
+
chairman_show: "Vorstand Einzelseite"
|
292
|
+
pressrelease_index: "Pressemitteilung Übersicht"
|
293
|
+
pressrelease_show: "Pressemitteilung Einzelseite"
|
294
|
+
faq_index: "FAQ Übersicht"
|
295
|
+
faq_show: "FAQ Einzelseite"
|
296
|
+
partner_index: "Partner Übersicht"
|
297
|
+
partner_show: "Partner Einzelseite"
|
298
|
+
flash_notice:
|
299
|
+
name_of_flashnotice: "Do you REALLY want make this Article as Startpage?"
|
300
|
+
action_Startpage: "Make this article Startpage"
|
301
|
+
startpage: "This Article is the Startpage!"
|
302
|
+
online: "Change the visibility of the article?"
|
303
|
+
delete_article: "Realy want to delete this Article?"
|
304
|
+
filter:
|
305
|
+
filter_titel: "title"
|
306
|
+
filter_subtitel: "subtitle"
|
307
|
+
filter_breadcrumb: "breadcrumb"
|
308
|
+
filter_url: "url"
|
309
|
+
filter_template: "template file"
|
310
|
+
filter_created: "creted at"
|
311
|
+
filter_updated: "updated at"
|
312
|
+
filter_parent: "parent"
|
313
|
+
filter_type: "article type"
|
314
|
+
menue:
|
315
|
+
preview_article: 'Preview'
|
316
|
+
menue: "Menue"
|
317
|
+
name: "name"
|
318
|
+
list: "list"
|
319
|
+
create: "create"
|
320
|
+
active_admin:
|
321
|
+
articles:
|
322
|
+
tag-select-placeholder: "Select tag"
|
323
|
+
now_offline: "This article is now offline"
|
324
|
+
now_online: "This article is now online"
|
325
|
+
resource:
|
326
|
+
upload: "Upload"
|
327
|
+
article: "Article"
|
328
|
+
menue:
|
329
|
+
settings: "Settings"
|
330
|
+
dashboard: "Dashboard"
|
331
|
+
dashboard_welcome:
|
332
|
+
welcome: "Welcome to Active Admin. This is the default dashboard page."
|
333
|
+
call_to_action: "To add dashboard sections, checkout 'app/admin/dashboards.rb'"
|
334
|
+
view: "View"
|
335
|
+
edit: "Edit"
|
336
|
+
delete: "Delete"
|
337
|
+
delete_confirmation: "Are you sure you want to delete this?"
|
338
|
+
new_model: "New %{model}"
|
339
|
+
create_model: "New %{model}"
|
340
|
+
edit_model: "Edit %{model}"
|
341
|
+
update_model: "Edit %{model}"
|
342
|
+
delete_model: "Delete %{model}"
|
343
|
+
details: "%{model} Details"
|
344
|
+
cancel: "Cancel"
|
345
|
+
empty: "Empty"
|
346
|
+
previous: "Previous"
|
347
|
+
next: "Next"
|
348
|
+
download: "Download:"
|
349
|
+
has_many_new: "Add New %{model}"
|
350
|
+
has_many_delete: "Delete"
|
351
|
+
filter: "Filter"
|
352
|
+
clear_filters: "Clear Filters"
|
353
|
+
search_field: "Search %{field}"
|
354
|
+
equal_to: "Equal To"
|
355
|
+
greater_than: "Greater Than"
|
356
|
+
less_than: "Less Than"
|
357
|
+
main_content: "Please implement %{model}#main_content to display content."
|
358
|
+
logout: "Logout"
|
359
|
+
sidebars:
|
360
|
+
submit_widget: "Save Widgets"
|
361
|
+
submit_layout: "allocate Layout"
|
362
|
+
widgets_options: "Widget Options"
|
363
|
+
overview: "Overview"
|
364
|
+
startpage_options: "Startpage Options"
|
365
|
+
layout: "Layout"
|
366
|
+
image_formates: "Image Formates"
|
367
|
+
image_module: "Image Module"
|
368
|
+
filters: "Filters"
|
369
|
+
per_page: "Items per page"
|
370
|
+
pagination:
|
371
|
+
empty: "No %{model} found"
|
372
|
+
one: "Displaying <b>1</b> %{model}"
|
373
|
+
one_page: "Displaying <b>all %{n}</b> %{model}"
|
374
|
+
multiple: "Displaying %{model} <b>%{from} - %{to}</b> of <b>%{total}</b> in total"
|
375
|
+
entry:
|
376
|
+
one: "entry"
|
377
|
+
other: "entries"
|
378
|
+
any: "Any"
|
379
|
+
blank_slate:
|
380
|
+
content: "There are no %{resource_name} yet."
|
381
|
+
link: "Create one"
|
382
|
+
batch_actions:
|
383
|
+
button_label: "Batch Actions"
|
384
|
+
delete_confirmation: "Are you sure you want to delete these %{plural_model}? You won't be able to undo this."
|
385
|
+
succesfully_destroyed:
|
386
|
+
one: "Successfully destroyed 1 %{model}"
|
387
|
+
other: "Successfully destroyed %{count} %{plural_model}"
|
388
|
+
selection_toggle_explanation: "(Toggle Selection)"
|
389
|
+
link: "Create one"
|
390
|
+
action_label: "%{title} Selected"
|
391
|
+
labels:
|
392
|
+
set_article_online: "Artikel online stellen"
|
393
|
+
set_article_offline: "Artikel offline stellen"
|
394
|
+
reset_cache: "reset cache"
|
395
|
+
send_default_conf_mails: "Send confirmation mails"
|
396
|
+
destroy: "Delete"
|
397
|
+
comments:
|
398
|
+
body: "Body"
|
399
|
+
author: "Author"
|
400
|
+
title: "Comment"
|
401
|
+
add: "Add Comment"
|
402
|
+
resource: "Resource"
|
403
|
+
no_comments_yet: "No comments yet."
|
404
|
+
title_content: "Comments (%{count})"
|
405
|
+
errors:
|
406
|
+
empty_text: "Comment wasn't saved, text was empty."
|
2
407
|
login:
|
3
408
|
messages:
|
4
409
|
errors:
|
@@ -12,10 +417,6 @@ en:
|
|
12
417
|
next: "»"
|
13
418
|
last: "›|"
|
14
419
|
truncate: "..."
|
15
|
-
active_admin:
|
16
|
-
resource:
|
17
|
-
upload: "Upload"
|
18
|
-
article: "Article"
|
19
420
|
title: "Title"
|
20
421
|
url: "URL"
|
21
422
|
created_at: "created at"
|
@@ -218,11 +619,6 @@ en:
|
|
218
619
|
long: ! '%B %d, %Y %H:%M'
|
219
620
|
short: ! '%d %b %H:%M'
|
220
621
|
pm: pm
|
221
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
222
622
|
activemodel:
|
223
623
|
errors:
|
224
|
-
<<: *errors
|
225
|
-
activerecord:
|
226
|
-
errors:
|
227
|
-
<<: *errors
|
228
|
-
|
624
|
+
<<: *errors
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
if RUBY_VERSION.include?("1.9.")
|
2
4
|
require 'sidekiq/web'
|
3
5
|
end
|
@@ -16,11 +18,20 @@ Goldencobra::Engine.routes.draw do
|
|
16
18
|
mount Sidekiq::Web => '/admin/background'
|
17
19
|
end
|
18
20
|
|
19
|
-
# post '/
|
21
|
+
# post '/api/v1/tokens' => 'goldencobra/api/v1/tokens_controller#create'
|
20
22
|
namespace "api" do
|
21
23
|
namespace "v1" do
|
22
24
|
resources :tokens, only: [:create]
|
23
25
|
end
|
26
|
+
|
27
|
+
namespace "v2" do
|
28
|
+
get '/articles' => 'articles#index'
|
29
|
+
get '/articles/search' => 'articles#search'
|
30
|
+
match '/articles/create' => 'articles#create'
|
31
|
+
match '/articles/update' => 'articles#update'
|
32
|
+
get '/locale_string' => 'locales#get_string'
|
33
|
+
get '/setting_string' => 'settings#get_string'
|
34
|
+
end
|
24
35
|
end
|
25
36
|
|
26
37
|
get 'sitemap', :to => 'articles#sitemap', :defaults => {:format => "xml"}
|