foundationstone 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foundationstone/application.js.coffee +11 -0
- data/app/assets/stylesheets/foundationstone/application.css.sass +8 -0
- data/app/helpers/foundationstone/application_helper.rb +1 -1
- data/app/helpers/foundationstone/manage_helper.rb +54 -0
- data/app/views/foundationstone/_error.html.haml +8 -0
- data/app/views/layouts/_layout.html.haml +4 -2
- data/config/initializers/carrierwave_backgrounder.rb +1 -1
- data/config/initializers/formtastic_bootstrap.rb +1 -0
- data/config/initializers/i18n-tasks.yml +40 -0
- data/config/initializers/simple_form_bootstrap.rb +107 -0
- data/config/locales/foundationstone.cs.yml +13 -0
- data/config/locales/foundationstone.en.yml +13 -0
- data/config/locales/kaminari.cs.yml +10 -0
- data/config/locales/kaminari.en.yml +10 -0
- data/config/locales/rails_admin.cs.yml +139 -0
- data/config/locales/rails_admin.en.yml +131 -0
- data/config/locales/routes.cs.yml +5 -0
- data/config/locales/routes.en.yml +5 -0
- data/lib/foundationstone/engine.rb +1 -0
- data/lib/foundationstone/version.rb +1 -1
- data/test/dummy/log/test.log +109 -0
- metadata +31 -4
- data/app/assets/javascripts/foundationstone/application.js +0 -13
- data/app/assets/stylesheets/foundationstone/application.css +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb2e382c8a369000557e50d3966b4bb26586a31e
|
4
|
+
data.tar.gz: 8669ec3d73572047d140cf92ca0893ea41f3fe1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd4d6aae17567ec5342847fe56ab3b11b4000046b638b59c35574457c142ba78182d24b9167c298e62f0b72fcc737d19ee259bcbc22caa43125509cddd33fbd
|
7
|
+
data.tar.gz: ed1a79d7219d80c33fb76de9e12509b45a61eef3cb1c8477fef61bcbb1c18ba2dbe212e41f04c7cc9e0107b9460bd298ad6e2739589a7be7f5fc9dd8f0dc7d9e
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
# listed below.
|
3
|
+
#
|
4
|
+
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
#
|
7
|
+
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
# compiled file.
|
9
|
+
#
|
10
|
+
# Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
# about supported directives.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.css, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
5
|
+
// or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// You're free to add application-wide styles to this file and they'll appear at the top of the
|
8
|
+
// compiled file, but it's generally better to create a new file per style scope.
|
@@ -88,7 +88,7 @@ module Foundationstone
|
|
88
88
|
result = ''
|
89
89
|
object.translations.each_with_index do |translation, i|
|
90
90
|
result += content_tag :li, class: ('active' if i == 0) do
|
91
|
-
content_tag :a, href: "#
|
91
|
+
content_tag :a, href: "#tab-#{i}", data: { toggle: 'tab' } do
|
92
92
|
(!translation.to_s or translation.to_s.empty?) ? t('foundationstone.new_translation') : translation.to_s
|
93
93
|
end
|
94
94
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module Foundationstone
|
2
|
+
module ManageHelper
|
3
|
+
def manage_create_button klass, options = {}
|
4
|
+
link_to gt('pencil', t('foundationstone.helper.manage.create', model: klass.model_name.human.downcase)), new_polymorphic_path(klass), style: ('display:none' unless manage?), class: "manage btn btn-info btn-text btn-create", 'data-no-turbolink' => true if can? :create, klass
|
5
|
+
end
|
6
|
+
|
7
|
+
def manage_icons object, options = {}
|
8
|
+
if object.kind_of?(Array)
|
9
|
+
klass = object.last.class
|
10
|
+
path = object.map(&:class)
|
11
|
+
else
|
12
|
+
klass, path = object.class, object.class
|
13
|
+
end
|
14
|
+
if (can? :create, klass) || (can? :edit, klass) || (can? :delete, klass)
|
15
|
+
except = options.fetch(:except, [])
|
16
|
+
content_tag :div, class: "manage btn-group-vertical btn-manage #{options[:class]}", style: ('display:none' unless manage?) do
|
17
|
+
res = ''
|
18
|
+
res += link_to glyphicon('pencil'), new_polymorphic_path(path),
|
19
|
+
'data-no-turbolink' => true, class: "btn btn-default" unless except.include?(:new)
|
20
|
+
res += link_to glyphicon('edit'), edit_polymorphic_path(object),
|
21
|
+
'data-no-turbolink' => true, class: "btn btn-default" if can? :edit, klass and !except.include?(:edit)
|
22
|
+
res += link_to glyphicon('remove'), object, data: { confirm: t('foundationstone.helper.manage.confirm') }, method: :delete, remote: (true if options[:remote]),
|
23
|
+
class: "btn btn-danger" if can? :delete, klass and !except.include?(:delete)
|
24
|
+
res += link_to glyphicon('list'), polymorphic_path(path),
|
25
|
+
class: "btn btn-info " if can? :show, klass and !except.include?(:list)
|
26
|
+
res.html_safe
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def manage_buttons object, options = {}
|
32
|
+
if object.kind_of?(Array)
|
33
|
+
klass = object.last.class
|
34
|
+
path = object.map(&:class)
|
35
|
+
else
|
36
|
+
klass, path = object.class, object.class
|
37
|
+
end
|
38
|
+
if (can? :create, klass) ||(can? :edit, klass) || (can? :delete, klass)
|
39
|
+
content_tag :div, class: "manage btn-group btn-manage #{options[:class]}", style: ('display:none' unless manage?) do
|
40
|
+
res = ''
|
41
|
+
res += link_to gt('pencil', t('foundationstone.helper.manage.create', model: klass.model_name.human.downcase)), new_polymorphic_path(path),
|
42
|
+
'data-no-turbolink' => true, class: "btn btn-default btn-text" unless options[:new]
|
43
|
+
res += link_to gt('edit', t('foundationstone.helper.manage.edit', model: klass.model_name.human.downcase)), edit_polymorphic_path(object),
|
44
|
+
'data-no-turbolink' => true, class: "btn btn-default btn-text" if can? :edit, klass and !options[:edit]
|
45
|
+
res += link_to gt('remove', t('foundationstone.helper.manage.destroy', model: klass.model_name.human.downcase)), object, data: { confirm: t('foundationstone.helper.manage.confirm') }, method: :delete, remote: (true if options[:remote]),
|
46
|
+
class: "btn btn-danger btn-text" if can? :delete, klass and !options[:delete]
|
47
|
+
res += link_to gt('list-alt', t('foundationstone.helper.manage.view', model: klass.model_name.human.downcase)), polymorphic_path(path),
|
48
|
+
class: "btn btn-info btn-text" if (can? :edit, klass) and !options[:list]
|
49
|
+
res.html_safe
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -10,9 +10,11 @@
|
|
10
10
|
#main
|
11
11
|
.wrapper
|
12
12
|
#main-content
|
13
|
-
|
13
|
+
- if content_for? :port
|
14
|
+
#port= yield :port
|
14
15
|
#content= yield
|
15
|
-
|
16
|
+
- if content_for? :starboard
|
17
|
+
#starboard= yield :starboard
|
16
18
|
- if content_for? :stern
|
17
19
|
#stern
|
18
20
|
.wrapper
|
@@ -1,7 +1,7 @@
|
|
1
1
|
CarrierWave::Backgrounder.configure do |c|
|
2
2
|
# c.backend :delayed_job, queue: :carrierwave
|
3
3
|
# c.backend :resque, queue: :carrierwave
|
4
|
-
c.backend :sidekiq, queue: :carrierwave
|
4
|
+
c.backend :sidekiq, queue: :carrierwave if defined?(Sidekiq)
|
5
5
|
# c.backend :girl_friday, queue: :carrierwave
|
6
6
|
# c.backend :qu, queue: :carrierwave
|
7
7
|
# c.backend :qc
|
@@ -0,0 +1 @@
|
|
1
|
+
Formtastic::Helpers::FormHelper.builder = FormtasticBootstrap::FormBuilder if defined?(Formtastic) and defined?(FormtasticBootstrap)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# config/i18n-tasks.yml
|
2
|
+
base_locale: en
|
3
|
+
locales: [en, cs] # This includes base_locale by default
|
4
|
+
|
5
|
+
# i18n data storage
|
6
|
+
data:
|
7
|
+
# file_system is the default adapter, you can provide a custom class name here:
|
8
|
+
adapter: file_system
|
9
|
+
# a list of file globs to read from per-locale
|
10
|
+
read:
|
11
|
+
# default:
|
12
|
+
- 'config/locales/%{locale}.yml'
|
13
|
+
# to also read from namespaced files, e.g. simple_form.en.yml:
|
14
|
+
- 'config/locales/*.%{locale}.yml'
|
15
|
+
# a list of {key pattern => file} routes, matched top to bottom
|
16
|
+
write:
|
17
|
+
# store sorcery and simple_form keys in the respective files:
|
18
|
+
# - ['{sorcery,simple_form}.*', 'config/locales/\1.%{locale}.yml']
|
19
|
+
# write every key namespace to its own file:
|
20
|
+
- ['{:}.*', 'config/locales/\1.%{locale}.yml']
|
21
|
+
|
22
|
+
# directories containing relative keys
|
23
|
+
relative_roots:
|
24
|
+
# default:
|
25
|
+
- app/views
|
26
|
+
# add a custom one:
|
27
|
+
- app/cells
|
28
|
+
|
29
|
+
# Exclude controller, watch this
|
30
|
+
# https://github.com/glebm/i18n-tasks/issues/46
|
31
|
+
# i18n usage search in source
|
32
|
+
search:
|
33
|
+
# explicitly exclude files (default: blank = exclude no files)
|
34
|
+
exclude:
|
35
|
+
- '*_controller.rb'
|
36
|
+
|
37
|
+
# do not report these keys as unused
|
38
|
+
ignore_unused:
|
39
|
+
- routes.*
|
40
|
+
- breadcrumbs.*
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
config.error_notification_class = 'alert alert-error'
|
4
|
+
config.button_class = 'btn btn-default'
|
5
|
+
config.boolean_label_class = nil
|
6
|
+
|
7
|
+
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
8
|
+
b.use :html5
|
9
|
+
b.use :placeholder
|
10
|
+
b.use :label, class: 'control-label'
|
11
|
+
|
12
|
+
b.wrapper tag: 'div' do |ba|
|
13
|
+
ba.use :input, class: 'form-control'
|
14
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
15
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
config.wrappers :vertical_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
20
|
+
b.use :html5
|
21
|
+
b.use :placeholder
|
22
|
+
b.use :label, class: 'control-label'
|
23
|
+
|
24
|
+
b.wrapper tag: 'div' do |ba|
|
25
|
+
ba.use :input
|
26
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
27
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
config.wrappers :vertical_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
32
|
+
b.use :html5
|
33
|
+
b.use :placeholder
|
34
|
+
|
35
|
+
b.wrapper tag: 'div', class: 'checkbox' do |ba|
|
36
|
+
ba.use :label_input
|
37
|
+
end
|
38
|
+
|
39
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
40
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
41
|
+
end
|
42
|
+
|
43
|
+
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
44
|
+
b.use :html5
|
45
|
+
b.use :placeholder
|
46
|
+
b.use :label_input
|
47
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
48
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
49
|
+
end
|
50
|
+
|
51
|
+
config.wrappers :horizontal_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
52
|
+
b.use :html5
|
53
|
+
b.use :placeholder
|
54
|
+
b.use :label, class: 'col-sm-3 control-label'
|
55
|
+
|
56
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
57
|
+
ba.use :input, class: 'form-control'
|
58
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
59
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
config.wrappers :horizontal_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
64
|
+
b.use :html5
|
65
|
+
b.use :placeholder
|
66
|
+
b.use :label, class: 'col-sm-3 control-label'
|
67
|
+
|
68
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
69
|
+
ba.use :input
|
70
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
71
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
76
|
+
b.use :html5
|
77
|
+
b.use :placeholder
|
78
|
+
|
79
|
+
b.wrapper tag: 'div', class: 'col-sm-offset-3 col-sm-9' do |wr|
|
80
|
+
wr.wrapper tag: 'div', class: 'checkbox' do |ba|
|
81
|
+
ba.use :label_input, class: 'col-sm-9'
|
82
|
+
end
|
83
|
+
|
84
|
+
wr.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
85
|
+
wr.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
90
|
+
b.use :html5
|
91
|
+
b.use :placeholder
|
92
|
+
|
93
|
+
b.use :label, class: 'col-sm-3 control-label'
|
94
|
+
|
95
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
96
|
+
ba.use :input
|
97
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
98
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Wrappers for forms and inputs using the Bootstrap toolkit.
|
103
|
+
# Check the Bootstrap docs (http://getbootstrap.com)
|
104
|
+
# to learn about the different styles for forms and inputs,
|
105
|
+
# buttons and other elements.
|
106
|
+
config.default_wrapper = :vertical_form
|
107
|
+
end if defined? SimpleForm
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
cs:
|
3
|
+
foundationstone:
|
4
|
+
error:
|
5
|
+
prohibited: Nepodařilo se nám informace uložit, zkuste to prosím znova
|
6
|
+
helper:
|
7
|
+
manage:
|
8
|
+
confirm: Jste si jistý?
|
9
|
+
create: Vytvořit (%{model})
|
10
|
+
destroy: Smazat
|
11
|
+
edit: Upravit
|
12
|
+
view: Zobrazit vše
|
13
|
+
new_translation: Nový překlad
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Sample localization file for Czech. Add more files in this directory for other locales.
|
2
|
+
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
|
+
cs:
|
4
|
+
views:
|
5
|
+
pagination:
|
6
|
+
previous: Předchozí
|
7
|
+
next: Další
|
8
|
+
last: Poslední
|
9
|
+
first: První
|
10
|
+
truncate: ...
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Sample localization file for English. Add more files in this directory for other locales.
|
2
|
+
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
|
+
en:
|
4
|
+
views:
|
5
|
+
pagination:
|
6
|
+
previous: Previous
|
7
|
+
next: Next
|
8
|
+
last: Last
|
9
|
+
first: First
|
10
|
+
truncate: ...
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# Additional translations at https://github.com/sferik/rails_admin/wiki/Translations
|
2
|
+
cs:
|
3
|
+
admin:
|
4
|
+
home:
|
5
|
+
name: "Domů"
|
6
|
+
pagination:
|
7
|
+
previous: "« Zpět"
|
8
|
+
next: "Další »"
|
9
|
+
truncate: "…"
|
10
|
+
misc:
|
11
|
+
filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done!
|
12
|
+
search: "Hledat"
|
13
|
+
filter: "Filtr"
|
14
|
+
refresh: "Aktualizovat"
|
15
|
+
show_all: "Zobrazit vše"
|
16
|
+
add_filter: "Přidat filtr"
|
17
|
+
bulk_menu_title: "Vybrané položky"
|
18
|
+
remove: "Odstranit"
|
19
|
+
add_new: "Přidat"
|
20
|
+
chosen: "Zvolený %{name}"
|
21
|
+
chose_all: "Vybrat vše"
|
22
|
+
clear_all: "Odznačit vše"
|
23
|
+
up: "Nahoru"
|
24
|
+
down: "Dolů"
|
25
|
+
navigation: "Navigace"
|
26
|
+
navigation_static_label: "Odkazy"
|
27
|
+
test: Test
|
28
|
+
test_static_label: "test"
|
29
|
+
log_out: "Odhlásit"
|
30
|
+
ago: ""
|
31
|
+
flash:
|
32
|
+
successful: "Úspěšně %{action}"
|
33
|
+
error: "Není %{action}"
|
34
|
+
noaction: "Neproběhly žádné změny"
|
35
|
+
model_not_found: "Model '%{model}' nebyl nalezen"
|
36
|
+
object_not_found: "Nenalezeno (%{model} s id '%{id}')"
|
37
|
+
table_headers:
|
38
|
+
model_name: "Název"
|
39
|
+
last_used: "Poslední použití před"
|
40
|
+
records: "Záznamy"
|
41
|
+
username: "Uživatel"
|
42
|
+
changes: "Změny"
|
43
|
+
created_at: "Datum/Čas"
|
44
|
+
item: "Položka"
|
45
|
+
message: "Zpráva"
|
46
|
+
actions:
|
47
|
+
nestable:
|
48
|
+
title: "Organizace"
|
49
|
+
menu: "Seřadit"
|
50
|
+
breadcrumb: "Organizace"
|
51
|
+
success: "Úspěšně uloženo"
|
52
|
+
error: "Chyba, nepodařilo se uložit"
|
53
|
+
dashboard:
|
54
|
+
title: "Administrace stránky"
|
55
|
+
menu: "Dashboard"
|
56
|
+
breadcrumb: "Dashboard"
|
57
|
+
index:
|
58
|
+
title: "%{model_label_plural}"
|
59
|
+
menu: "Seznam" #list
|
60
|
+
breadcrumb: "%{model_label_plural}"
|
61
|
+
show:
|
62
|
+
title: "Detaily pro %{model_label} '%{object_label}'"
|
63
|
+
menu: "Zobraz"
|
64
|
+
breadcrumb: "%{object_label}"
|
65
|
+
show_in_app:
|
66
|
+
menu: "Zobraz v aplikaci"
|
67
|
+
new:
|
68
|
+
title: "Přidat | %{model_label}"
|
69
|
+
menu: "Přidat"
|
70
|
+
breadcrumb: "Přidat"
|
71
|
+
link: "Přidat"
|
72
|
+
done: "vytvořeno"
|
73
|
+
edit:
|
74
|
+
title: "Upravit '%{object_label}'"
|
75
|
+
menu: "Editovat"
|
76
|
+
breadcrumb: "Editovat"
|
77
|
+
link: "Upravit"
|
78
|
+
done: "upraveno"
|
79
|
+
delete:
|
80
|
+
title: "Odstranit | %{model_label} '%{object_label}'"
|
81
|
+
menu: "Odstranit"
|
82
|
+
breadcrumb: "Odstranit"
|
83
|
+
link: "'%{object_label}'"
|
84
|
+
done: "odstraněno"
|
85
|
+
bulk_delete:
|
86
|
+
title: "Odstranit %{model_label_plural}"
|
87
|
+
menu: "Odstranit více"
|
88
|
+
breadcrumb: "Odstranit více"
|
89
|
+
bulk_link: "Odstranit vybrané %{model_label_plural}"
|
90
|
+
export:
|
91
|
+
title: "Export %{model_label_plural}"
|
92
|
+
menu: "Export"
|
93
|
+
breadcrumb: "Export"
|
94
|
+
link: "Exportovat nalezené %{model_label_plural}"
|
95
|
+
bulk_link: "Exportovat vybrané %{model_label_plural}"
|
96
|
+
done: "Exportováno"
|
97
|
+
history_index:
|
98
|
+
title: "Historie pro %{model_label_plural}"
|
99
|
+
menu: "Historie"
|
100
|
+
breadcrumb: "Historie"
|
101
|
+
history_show:
|
102
|
+
title: "Historie pro %{model_label} '%{object_label}'"
|
103
|
+
menu: "Historie"
|
104
|
+
breadcrumb: "Historie"
|
105
|
+
form:
|
106
|
+
cancel: "Zrušit"
|
107
|
+
basic_info: "Základní info"
|
108
|
+
required: "Požadované"
|
109
|
+
optional: "Nepovinné"
|
110
|
+
one_char: "Znak"
|
111
|
+
char_length_up_to: "Délka až"
|
112
|
+
char_length_of: "Délka"
|
113
|
+
save: "Uložit"
|
114
|
+
save_and_add_another: "Uložit a přidat další"
|
115
|
+
save_and_edit: "Uložit a editovat"
|
116
|
+
all_of_the_following_related_items_will_be_deleted: "? Následující položky budou odstraněny nebo upraveny:"
|
117
|
+
are_you_sure_you_want_to_delete_the_object: "Jste si jistý, že chcete odstranit %{model_name}"
|
118
|
+
confirmation: "Ano, jsem"
|
119
|
+
bulk_delete: "Následující objekty budou odstraněny nebo upraveny, tyto změny se mohou projevit na jejich přidružených objektech:"
|
120
|
+
new_model: "%{name} (Nový)"
|
121
|
+
export:
|
122
|
+
confirmation: "Exportovat do %{name}"
|
123
|
+
select: "Vyberte položky pro export"
|
124
|
+
fields_from: "Položky z %{name}"
|
125
|
+
fields_from_associated: "Položky z přidružených %{name}"
|
126
|
+
display: "Zobrazit %{name}: %{type}"
|
127
|
+
options_for: "Volby pro %{name}"
|
128
|
+
empty_value_for_associated_objects: "<prázdný>"
|
129
|
+
click_to_reverse_selection: 'Vybrat reverzně'
|
130
|
+
csv:
|
131
|
+
header_for_root_methods: "%{name}" # 'model' Je dostupný
|
132
|
+
header_for_association_methods: "%{name} [%{association}]"
|
133
|
+
encoding_to: "Kódování"
|
134
|
+
encoding_to_help: "Vyberte kódování výstupního souboru. Zanechte prázdné, jestli chcete použít základní: (%{name})"
|
135
|
+
skip_header: "Bez hlavičky"
|
136
|
+
skip_header_help: "Nevygeneruje hlavičku (pole s popisky)"
|
137
|
+
default_col_sep: ","
|
138
|
+
col_sep: "Oddělovač sloupců"
|
139
|
+
col_sep_help: "Zanechte prázdné, pokud chcete použít základní ('%{value}')" # value is default_col_sep
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# Additional translations at https://github.com/sferik/rails_admin/wiki/Translations
|
2
|
+
en:
|
3
|
+
admin:
|
4
|
+
home:
|
5
|
+
name: "Home"
|
6
|
+
pagination:
|
7
|
+
previous: "« Prev"
|
8
|
+
next: "Next »"
|
9
|
+
truncate: "…"
|
10
|
+
misc:
|
11
|
+
filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done!
|
12
|
+
search: "Search"
|
13
|
+
filter: "Filter"
|
14
|
+
refresh: "Refresh"
|
15
|
+
show_all: "Show all"
|
16
|
+
add_filter: "Add filter"
|
17
|
+
bulk_menu_title: "Selected items"
|
18
|
+
remove: "Remove"
|
19
|
+
add_new: "Add new"
|
20
|
+
chosen: "Chosen %{name}"
|
21
|
+
chose_all: "Choose all"
|
22
|
+
clear_all: "Clear all"
|
23
|
+
up: "Up"
|
24
|
+
down: "Down"
|
25
|
+
navigation: "Navigation"
|
26
|
+
navigation_static_label: "Links"
|
27
|
+
log_out: "Log out"
|
28
|
+
ago: "ago"
|
29
|
+
flash:
|
30
|
+
successful: "%{name} successfully %{action}"
|
31
|
+
error: "%{name} failed to be %{action}"
|
32
|
+
noaction: "No actions were taken"
|
33
|
+
model_not_found: "Model '%{model}' could not be found"
|
34
|
+
object_not_found: "%{model} with id '%{id}' could not be found"
|
35
|
+
table_headers:
|
36
|
+
model_name: "Model name"
|
37
|
+
last_used: "Last used"
|
38
|
+
records: "Records"
|
39
|
+
username: "User"
|
40
|
+
changes: "Changes"
|
41
|
+
created_at: "Date/Time"
|
42
|
+
item: "Item"
|
43
|
+
message: "Message"
|
44
|
+
actions:
|
45
|
+
dashboard:
|
46
|
+
title: "Site administration"
|
47
|
+
menu: "Dashboard"
|
48
|
+
breadcrumb: "Dashboard"
|
49
|
+
index:
|
50
|
+
title: "List of %{model_label_plural}"
|
51
|
+
menu: "List"
|
52
|
+
breadcrumb: "%{model_label_plural}"
|
53
|
+
show:
|
54
|
+
title: "Details for %{model_label} '%{object_label}'"
|
55
|
+
menu: "Show"
|
56
|
+
breadcrumb: "%{object_label}"
|
57
|
+
show_in_app:
|
58
|
+
menu: "Show in app"
|
59
|
+
new:
|
60
|
+
title: "New %{model_label}"
|
61
|
+
menu: "Add new"
|
62
|
+
breadcrumb: "New"
|
63
|
+
link: "Add a new %{model_label}"
|
64
|
+
done: "created"
|
65
|
+
edit:
|
66
|
+
title: "Edit %{model_label} '%{object_label}'"
|
67
|
+
menu: "Edit"
|
68
|
+
breadcrumb: "Edit"
|
69
|
+
link: "Edit this %{model_label}"
|
70
|
+
done: "updated"
|
71
|
+
delete:
|
72
|
+
title: "Delete %{model_label} '%{object_label}'"
|
73
|
+
menu: "Delete"
|
74
|
+
breadcrumb: "Delete"
|
75
|
+
link: "Delete '%{object_label}'"
|
76
|
+
done: "deleted"
|
77
|
+
bulk_delete:
|
78
|
+
title: "Delete %{model_label_plural}"
|
79
|
+
menu: "Multiple delete"
|
80
|
+
breadcrumb: "Multiple delete"
|
81
|
+
bulk_link: "Delete selected %{model_label_plural}"
|
82
|
+
export:
|
83
|
+
title: "Export %{model_label_plural}"
|
84
|
+
menu: "Export"
|
85
|
+
breadcrumb: "Export"
|
86
|
+
link: "Export found %{model_label_plural}"
|
87
|
+
bulk_link: "Export selected %{model_label_plural}"
|
88
|
+
done: "exported"
|
89
|
+
history_index:
|
90
|
+
title: "History for %{model_label_plural}"
|
91
|
+
menu: "History"
|
92
|
+
breadcrumb: "History"
|
93
|
+
history_show:
|
94
|
+
title: "History for %{model_label} '%{object_label}'"
|
95
|
+
menu: "History"
|
96
|
+
breadcrumb: "History"
|
97
|
+
form:
|
98
|
+
cancel: "Cancel"
|
99
|
+
basic_info: "Basic info"
|
100
|
+
required: "Required"
|
101
|
+
optional: "Optional"
|
102
|
+
one_char: "character"
|
103
|
+
char_length_up_to: "length up to"
|
104
|
+
char_length_of: "length of"
|
105
|
+
save: "Save"
|
106
|
+
save_and_add_another: "Save and add another"
|
107
|
+
save_and_edit: "Save and edit"
|
108
|
+
all_of_the_following_related_items_will_be_deleted: "? The following related items may be deleted or orphaned:"
|
109
|
+
are_you_sure_you_want_to_delete_the_object: "Are you sure you want to delete this %{model_name}"
|
110
|
+
confirmation: "Yes, I'm sure"
|
111
|
+
bulk_delete: "The following objects will be deleted, which may delete or orphan some of their related dependencies:"
|
112
|
+
new_model: "%{name} (new)"
|
113
|
+
export:
|
114
|
+
confirmation: "Export to %{name}"
|
115
|
+
select: "Select fields to export"
|
116
|
+
fields_from: "Fields from %{name}"
|
117
|
+
fields_from_associated: "Fields from associated %{name}"
|
118
|
+
display: "Display %{name}: %{type}"
|
119
|
+
options_for: "Options for %{name}"
|
120
|
+
empty_value_for_associated_objects: "<empty>"
|
121
|
+
click_to_reverse_selection: 'Click to reverse selection'
|
122
|
+
csv:
|
123
|
+
header_for_root_methods: "%{name}" # 'model' is available
|
124
|
+
header_for_association_methods: "%{name} [%{association}]"
|
125
|
+
encoding_to: "Encode to"
|
126
|
+
encoding_to_help: "Choose output encoding. Leave empty to let current input encoding untouched: (%{name})"
|
127
|
+
skip_header: "No header"
|
128
|
+
skip_header_help: "Do not output a header (no fields description)"
|
129
|
+
default_col_sep: ","
|
130
|
+
col_sep: "Column separator"
|
131
|
+
col_sep_help: "Leave blank for default ('%{value}')" # value is default_col_sep
|
data/test/dummy/log/test.log
CHANGED
@@ -3990,3 +3990,112 @@ Processing by WelcomeController#index as HTML
|
|
3990
3990
|
Rendered /Users/jirikolarik/Documents/Ruby/engines/foundationstone/app/views/layouts/_layout.html.haml (6.7ms)
|
3991
3991
|
Completed 200 OK in 2358ms (Views: 2357.3ms | ActiveRecord: 0.0ms)
|
3992
3992
|
[1m[35m (0.1ms)[0m rollback transaction
|
3993
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3994
|
+
------------------------------------------------------------------
|
3995
|
+
Foundationstone::ApplicationHelper: test_0001_should generate icon
|
3996
|
+
------------------------------------------------------------------
|
3997
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3998
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3999
|
+
-----------------------------------------------------------------------
|
4000
|
+
Foundationstone::ApplicationHelper: test_0002_should generate glyphicon
|
4001
|
+
-----------------------------------------------------------------------
|
4002
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4004
|
+
--------------------------------------------------------------------------
|
4005
|
+
Foundationstone::ApplicationHelper: test_0003_should generate icon in span
|
4006
|
+
--------------------------------------------------------------------------
|
4007
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4008
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4009
|
+
---------------------------------------------------------------------------
|
4010
|
+
Foundationstone::ApplicationHelper: test_0004_should work with shorter name
|
4011
|
+
---------------------------------------------------------------------------
|
4012
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4014
|
+
------------------------------------------------------------------------------
|
4015
|
+
Foundationstone::ApplicationHelper: test_0005_should generate icon before text
|
4016
|
+
------------------------------------------------------------------------------
|
4017
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4018
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4019
|
+
---------------------------------------------------------------------------
|
4020
|
+
Foundationstone::ApplicationHelper: test_0006_should work with shorter name
|
4021
|
+
---------------------------------------------------------------------------
|
4022
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4023
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4024
|
+
---------------------------------------------------------------------------
|
4025
|
+
Foundationstone::ApplicationHelper: test_0007_should work with shorter name
|
4026
|
+
---------------------------------------------------------------------------
|
4027
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4028
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4029
|
+
--------------------------------------------------------------------------------
|
4030
|
+
Foundationstone::ApplicationHelper: test_0008_should extract text from html tags
|
4031
|
+
--------------------------------------------------------------------------------
|
4032
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4033
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4034
|
+
--------------------------------------------------------------------------------
|
4035
|
+
Foundationstone::ApplicationHelper: test_0009_should generate true of false icon
|
4036
|
+
--------------------------------------------------------------------------------
|
4037
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4038
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4039
|
+
--------------------------------------------------------------------------
|
4040
|
+
Foundationstone::ApplicationHelper: test_0010_should generate current date
|
4041
|
+
--------------------------------------------------------------------------
|
4042
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4043
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4044
|
+
-----------------------------------------------------------------------------
|
4045
|
+
Foundationstone::ApplicationHelper: test_0011_should generate bootstrap flash
|
4046
|
+
-----------------------------------------------------------------------------
|
4047
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4048
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4049
|
+
---------------------------------------------------------------------
|
4050
|
+
Foundationstone::ApplicationHelper: test_0012_shouldn't show anything
|
4051
|
+
---------------------------------------------------------------------
|
4052
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4053
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4054
|
+
-------------------------------------------------------------------------------
|
4055
|
+
Foundationstone::ApplicationHelper: test_0013_should show google analytics code
|
4056
|
+
-------------------------------------------------------------------------------
|
4057
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4058
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4059
|
+
---------------------------------------------------------------------
|
4060
|
+
Foundationstone::ApplicationHelper: test_0014_should return divisible
|
4061
|
+
---------------------------------------------------------------------
|
4062
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4063
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4064
|
+
---------------------------------------------------------------------
|
4065
|
+
Foundationstone::ApplicationHelper: test_0015_should return divisible
|
4066
|
+
---------------------------------------------------------------------
|
4067
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4068
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4069
|
+
-------------------------------
|
4070
|
+
FoundationstoneTest: test_truth
|
4071
|
+
-------------------------------
|
4072
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4073
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4074
|
+
-------------------------------------------------------
|
4075
|
+
Rails Admin Feature: test_0001_must access to dashboard
|
4076
|
+
-------------------------------------------------------
|
4077
|
+
Started GET "/foundationstone/admin/" for 127.0.0.1 at 2014-03-28 18:39:09 +0100
|
4078
|
+
Processing by RailsAdmin::MainController#dashboard as HTML
|
4079
|
+
Rendered /Users/jirikolarik/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.1/app/views/layouts/rails_admin/_secondary_navigation.html.haml (3.8ms)
|
4080
|
+
Completed 200 OK in 97ms (Views: 85.6ms | ActiveRecord: 0.0ms)
|
4081
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4082
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4083
|
+
-----------------------------------------------------------------
|
4084
|
+
Rails Admin Feature: test_0002_must access to localized dashboard
|
4085
|
+
-----------------------------------------------------------------
|
4086
|
+
Started GET "/foundationstone/cs/admin/" for 127.0.0.1 at 2014-03-28 18:39:09 +0100
|
4087
|
+
Processing by RailsAdmin::MainController#dashboard as HTML
|
4088
|
+
Parameters: {"locale"=>"cs"}
|
4089
|
+
Rendered /Users/jirikolarik/.rvm/gems/ruby-2.1.1/gems/rails_admin-0.6.1/app/views/layouts/rails_admin/_secondary_navigation.html.haml (3.8ms)
|
4090
|
+
Completed 200 OK in 35ms (Views: 33.7ms | ActiveRecord: 0.0ms)
|
4091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4092
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4093
|
+
--------------------------------------------
|
4094
|
+
WelcomeControllerTest: test_should_get_index
|
4095
|
+
--------------------------------------------
|
4096
|
+
Processing by WelcomeController#index as HTML
|
4097
|
+
Rendered /Users/jirikolarik/Documents/Ruby/engines/foundationstone/app/views/layouts/_header.html.haml (1.0ms)
|
4098
|
+
Rendered /Users/jirikolarik/Documents/Ruby/engines/foundationstone/app/views/layouts/_footer.html.haml (0.8ms)
|
4099
|
+
Rendered /Users/jirikolarik/Documents/Ruby/engines/foundationstone/app/views/layouts/_layout.html.haml (7.9ms)
|
4100
|
+
Completed 200 OK in 85ms (Views: 84.8ms | ActiveRecord: 0.0ms)
|
4101
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foundationstone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jiri Kolarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.1.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: i18n-tasks
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: tuberack
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,11 +165,13 @@ files:
|
|
151
165
|
- app/assets/images/foundationstone/icons/flags/48/en.png
|
152
166
|
- app/assets/images/logo.png
|
153
167
|
- app/assets/javascripts/ckeditor/config.js
|
154
|
-
- app/assets/javascripts/foundationstone/application.js
|
155
|
-
- app/assets/stylesheets/foundationstone/application.css
|
168
|
+
- app/assets/javascripts/foundationstone/application.js.coffee
|
169
|
+
- app/assets/stylesheets/foundationstone/application.css.sass
|
156
170
|
- app/assets/stylesheets/foundationstone/dummy.css.sass
|
157
171
|
- app/controllers/foundationstone/application_controller.rb
|
158
172
|
- app/helpers/foundationstone/application_helper.rb
|
173
|
+
- app/helpers/foundationstone/manage_helper.rb
|
174
|
+
- app/views/foundationstone/_error.html.haml
|
159
175
|
- app/views/layouts/_footer.html.haml
|
160
176
|
- app/views/layouts/_header.html.haml
|
161
177
|
- app/views/layouts/_layout.html.haml
|
@@ -165,10 +181,21 @@ files:
|
|
165
181
|
- config/initializers/ckeditor.rb
|
166
182
|
- config/initializers/disqus.rb
|
167
183
|
- config/initializers/errbit.rb
|
184
|
+
- config/initializers/formtastic_bootstrap.rb
|
185
|
+
- config/initializers/i18n-tasks.yml
|
168
186
|
- config/initializers/kaminari.rb
|
169
187
|
- config/initializers/rails_admin.rb
|
170
188
|
- config/initializers/sidekiq.rb
|
171
189
|
- config/initializers/simple_form.rb
|
190
|
+
- config/initializers/simple_form_bootstrap.rb
|
191
|
+
- config/locales/foundationstone.cs.yml
|
192
|
+
- config/locales/foundationstone.en.yml
|
193
|
+
- config/locales/kaminari.cs.yml
|
194
|
+
- config/locales/kaminari.en.yml
|
195
|
+
- config/locales/rails_admin.cs.yml
|
196
|
+
- config/locales/rails_admin.en.yml
|
197
|
+
- config/locales/routes.cs.yml
|
198
|
+
- config/locales/routes.en.yml
|
172
199
|
- config/routes.rb
|
173
200
|
- lib/foundationstone.rb
|
174
201
|
- lib/foundationstone/config.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|