tkh_admin_panel 0.9.9 → 0.9.10
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/CHANGELOG.md +7 -0
- data/app/assets/stylesheets/admin/custom.css.scss +12 -0
- data/lib/generators/tkh_admin_panel/create_or_update_locales/templates/en.yml +37 -4
- data/lib/generators/tkh_admin_panel/create_or_update_locales/templates/fr.yml +35 -2
- data/lib/tkh_admin_panel.rb +1 -1
- data/lib/tkh_admin_panel/version.rb +1 -1
- data/tkh_admin_panel.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 166b9ae19084886b2c4bca3d5cf2087e447377b1
|
4
|
+
data.tar.gz: 61201597871efe82551b074e1cfa33a1e4c57743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae6a49650212f63759d0d1c1f594da5a776f8bc83d97393ce3e86f7826b7bd3e99dd6984741945f12c4fe58d0083d544901b323b816bfa249cd0699d49dfa80
|
7
|
+
data.tar.gz: 4724eed1e6f2a8f6a56dd996e77909ce5356892885e3b372a1193ecdbd820d3210772a3925e547d6a6066e43ff550d02577b229c527424cc249ef5a84f4ee161
|
data/CHANGELOG.md
CHANGED
@@ -107,6 +107,8 @@ margin: 0;
|
|
107
107
|
}
|
108
108
|
|
109
109
|
.pagination {
|
110
|
+
border-bottom: 1px solid $gray-lighter;
|
111
|
+
border-top: 1px solid $gray-lighter;
|
110
112
|
display: block;
|
111
113
|
padding: 0.2em;
|
112
114
|
text-align: center;
|
@@ -149,3 +151,13 @@ margin: 0;
|
|
149
151
|
margin-bottom: 5em;
|
150
152
|
text-align: center;
|
151
153
|
}
|
154
|
+
|
155
|
+
// boostrap 3 and simple_form don't play too well together yet
|
156
|
+
.alert-error {
|
157
|
+
@extend .alert-danger;
|
158
|
+
}
|
159
|
+
.help-inline {
|
160
|
+
@extend .label;
|
161
|
+
@extend .label-danger;
|
162
|
+
margin: 1em;
|
163
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
en:
|
2
2
|
admin_panel: 'Admin Panel'
|
3
3
|
admin_panel_for: "Admin Panel for "
|
4
|
-
|
4
|
+
|
5
5
|
activerecord:
|
6
6
|
models:
|
7
7
|
settings: 'site settings'
|
8
|
-
|
8
|
+
|
9
9
|
attributes:
|
10
10
|
setting:
|
11
11
|
site_name: 'site name'
|
@@ -17,7 +17,7 @@ en:
|
|
17
17
|
enable_comments_in_blog: 'enable comments in blog'
|
18
18
|
contact_email: 'contact email'
|
19
19
|
company_name: 'company name'
|
20
|
-
|
20
|
+
|
21
21
|
settings:
|
22
22
|
blog_enabled: 'blog enabled?'
|
23
23
|
hint:
|
@@ -26,7 +26,40 @@ en:
|
|
26
26
|
site_tagline: 'a small descriptive sentence'
|
27
27
|
disable_blog: 'should be checked if you do NOT want a blog'
|
28
28
|
blog_tagline: 'a small descriptive sentence'
|
29
|
-
|
29
|
+
|
30
30
|
update:
|
31
31
|
notice: 'Site Settings were successfully updated.'
|
32
32
|
warning: 'There was a problem saving your changes.'
|
33
|
+
|
34
|
+
will_paginate:
|
35
|
+
previous_label: "← Previous"
|
36
|
+
next_label: "Next →"
|
37
|
+
page_gap: "…"
|
38
|
+
|
39
|
+
page_entries_info:
|
40
|
+
single_page:
|
41
|
+
zero: "No %{model} found"
|
42
|
+
one: "Displaying 1 %{model}"
|
43
|
+
other: "Displaying all %{count} %{model}"
|
44
|
+
single_page_html:
|
45
|
+
zero: "No %{model} found"
|
46
|
+
one: "Displaying <b>1</b> %{model}"
|
47
|
+
other: "Displaying <b>all %{count}</b> %{model}"
|
48
|
+
|
49
|
+
multi_page: "Displaying %{model} %{from} - %{to} of %{count} in total"
|
50
|
+
multi_page_html: "Displaying %{model} <b>%{from} - %{to}</b> of <b>%{count}</b> in total"
|
51
|
+
|
52
|
+
# models:
|
53
|
+
# entry:
|
54
|
+
# zero: entries
|
55
|
+
# one: entry
|
56
|
+
# few: entries
|
57
|
+
# other: entries
|
58
|
+
|
59
|
+
# line_item:
|
60
|
+
# page_entries_info:
|
61
|
+
# single_page:
|
62
|
+
# zero: "Your shopping cart is empty"
|
63
|
+
# one: "Displaying one item in your cart"
|
64
|
+
# other: "Displaying all %{count} items"
|
65
|
+
# multi_page: "Displaying items %{from} - %{to} of %{count} in total"
|
@@ -1,11 +1,11 @@
|
|
1
1
|
fr:
|
2
2
|
admin_panel: "Panneau d'administration"
|
3
3
|
admin_panel_for: "Panneau d'administration pour "
|
4
|
-
|
4
|
+
|
5
5
|
activerecord:
|
6
6
|
models:
|
7
7
|
settings: 'options du site'
|
8
|
-
|
8
|
+
|
9
9
|
attributes:
|
10
10
|
setting:
|
11
11
|
site_name: 'nom du site'
|
@@ -30,3 +30,36 @@ fr:
|
|
30
30
|
update:
|
31
31
|
notice: 'Succes: les options du site ont été mises à jour.'
|
32
32
|
warning: "Il y'a eu un problem et vos modifications n'ont pas été sauvegardées."
|
33
|
+
|
34
|
+
will_paginate:
|
35
|
+
previous_label: "← avant"
|
36
|
+
next_label: "prochain →"
|
37
|
+
page_gap: "…"
|
38
|
+
|
39
|
+
page_entries_info:
|
40
|
+
single_page:
|
41
|
+
zero: "pas de %{model}"
|
42
|
+
one: "montrer 1 %{model}"
|
43
|
+
other: "montrer les %{count} %{model}"
|
44
|
+
single_page_html:
|
45
|
+
zero: "pas de %{model}"
|
46
|
+
one: "montrer <b>1</b> %{model}"
|
47
|
+
other: "montrer <b>les %{count}</b> %{model}"
|
48
|
+
|
49
|
+
multi_page: "montrer %{model} %{from} - %{to} of %{count} au total"
|
50
|
+
multi_page_html: "montrer %{model} <b>%{from} - %{to}</b> of <b>%{count}</b> au total"
|
51
|
+
|
52
|
+
# models:
|
53
|
+
# entry:
|
54
|
+
# zero: entries
|
55
|
+
# one: entry
|
56
|
+
# few: entries
|
57
|
+
# other: entries
|
58
|
+
|
59
|
+
# line_item:
|
60
|
+
# page_entries_info:
|
61
|
+
# single_page:
|
62
|
+
# zero: "Your shopping cart is empty"
|
63
|
+
# one: "Displaying one item in your cart"
|
64
|
+
# other: "Displaying all %{count} items"
|
65
|
+
# multi_page: "Displaying items %{from} - %{to} of %{count} in total"
|
data/lib/tkh_admin_panel.rb
CHANGED
@@ -2,7 +2,7 @@ require 'tkh_admin_panel/version'
|
|
2
2
|
require 'globalize'
|
3
3
|
require 'bootstrap-sass'
|
4
4
|
require 'twitter-typeahead-rails'
|
5
|
-
require '
|
5
|
+
require 'will_paginate'
|
6
6
|
require 'simple_form'
|
7
7
|
require 'tkh_admin_panel/tkh_admin_panel_action_controller_extension'
|
8
8
|
require 'tkh_authentication'
|
data/tkh_admin_panel.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.add_dependency "railties", "> 4.0"
|
19
19
|
gem.add_dependency "globalize"
|
20
20
|
gem.add_dependency "bootstrap-sass"
|
21
|
-
gem.add_dependency "
|
21
|
+
gem.add_dependency "will_paginate"
|
22
22
|
# twitter-typeahead-rails is for autocomplete fields in forms
|
23
23
|
# versions > 0.10 must have fewer bugs but is not backward compatible
|
24
24
|
# I'll upgrade when I figure out the new API
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_admin_panel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swami Atma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: will_paginate
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|