padrino-admin 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/lib/padrino-admin/bootstrap-less/alerts.less +8 -8
  2. data/lib/padrino-admin/bootstrap-less/badges.less +1 -1
  3. data/lib/padrino-admin/bootstrap-less/bootstrap.less +2 -0
  4. data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +3 -0
  5. data/lib/padrino-admin/bootstrap-less/button-groups.less +1 -1
  6. data/lib/padrino-admin/bootstrap-less/buttons.less +7 -7
  7. data/lib/padrino-admin/bootstrap-less/carousel.less +3 -0
  8. data/lib/padrino-admin/bootstrap-less/dropdowns.less +7 -8
  9. data/lib/padrino-admin/bootstrap-less/forms.less +13 -8
  10. data/lib/padrino-admin/bootstrap-less/grid.less +3 -3
  11. data/lib/padrino-admin/bootstrap-less/jumbotron.less +1 -1
  12. data/lib/padrino-admin/bootstrap-less/labels.less +8 -8
  13. data/lib/padrino-admin/bootstrap-less/list-group.less +96 -0
  14. data/lib/padrino-admin/bootstrap-less/mixins.less +35 -32
  15. data/lib/padrino-admin/bootstrap-less/navbar.less +39 -29
  16. data/lib/padrino-admin/bootstrap-less/navs.less +18 -29
  17. data/lib/padrino-admin/bootstrap-less/pager.less +4 -4
  18. data/lib/padrino-admin/bootstrap-less/pagination.less +3 -3
  19. data/lib/padrino-admin/bootstrap-less/panels.less +86 -0
  20. data/lib/padrino-admin/bootstrap-less/popovers.less +5 -5
  21. data/lib/padrino-admin/bootstrap-less/scaffolding.less +8 -6
  22. data/lib/padrino-admin/bootstrap-less/tables.less +25 -19
  23. data/lib/padrino-admin/bootstrap-less/tooltip.less +1 -1
  24. data/lib/padrino-admin/bootstrap-less/type.less +25 -24
  25. data/lib/padrino-admin/bootstrap-less/utilities.less +1 -1
  26. data/lib/padrino-admin/bootstrap-less/variables.less +114 -78
  27. data/lib/padrino-admin/bootstrap-less/wells.less +2 -2
  28. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-scrollspy.js +2 -2
  29. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap.min.js +1 -1
  30. data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +105 -61
  31. data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +1 -1
  32. data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +1 -1
  33. data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +1 -1
  34. data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +1 -1
  35. data/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt +1 -1
  36. data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +2 -2
  37. data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +1 -1
  38. data/lib/padrino-admin/locale/admin/zh_cn.yml +34 -34
  39. data/lib/padrino-admin/locale/orm/zh_cn.yml +20 -20
  40. metadata +26 -11
  41. checksums.yaml +0 -7
@@ -32,4 +32,4 @@ html lang="en" xmlns="http://www.w3.org/1999/xhtml"
32
32
 
33
33
  div class="login-footer modal-footer"
34
34
  = submit_tag(pat('login.sign_in'), :class => 'btn btn-primary pull-right')
35
- = javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap.min' : %w[bootstrap/bootstrap-affix bootstrap/bootstrap-alert bootstrap/bootstrap-button bootstrap/bootstrap-carousel bootstrap/bootstrap-collapse bootstrap/bootstrap-dropdown bootstrap/bootstrap-tooltip bootstrap/bootstrap-transition bootstrap/bootstrap-typeahead bootstrap/bootstrap-modal bootstrap/bootstrap-popover bootstrap/bootstrap-scrollspy bootstrap/bootstrap-tab]), :application
35
+ = javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/bootstrap-affix bootstrap/bootstrap-alert bootstrap/bootstrap-button bootstrap/bootstrap-carousel bootstrap/bootstrap-collapse bootstrap/bootstrap-dropdown bootstrap/bootstrap-tooltip bootstrap/bootstrap-transition bootstrap/bootstrap-typeahead bootstrap/bootstrap-modal bootstrap/bootstrap-popover bootstrap/bootstrap-scrollspy bootstrap/bootstrap-tab]), :application
@@ -2,55 +2,55 @@ zh_cn:
2
2
  padrino:
3
3
  admin:
4
4
  login:
5
- title: "注册"
5
+ title: "登录"
6
6
  email: "电子邮件"
7
7
  password: "密码"
8
- bypass: "旁路登录?"
9
- sign_in: "Sign In"
10
- error: "电子邮件或密码错误."
11
- save: "登录"
12
- save_and_continue: "保存并继续"
8
+ bypass: "直接进入管理后台?"
9
+ sign_in: "登录系统"
10
+ error: "电子邮件或者密码错误。"
11
+ save: "保存"
12
+ save_and_continue: "保存然后继续创建新条目"
13
13
  cancel: "取消"
14
- list: "名单"
14
+ list: "列表"
15
15
  edit: "编辑"
16
- new: ""
17
- show: ""
16
+ new: "新建"
17
+ show: "显示"
18
18
  delete: "删除"
19
- confirm: "你确定吗?"
20
- created_at: "建立于"
21
- all: "全部"
22
- profile: "编辑个人资料"
19
+ confirm: "确认么?"
20
+ created_at: "创建于"
21
+ all: "所有"
22
+ profile: "编辑您的个人资料"
23
23
  settings: "设置"
24
- logout: "退出管理"
24
+ logout: "注销管理"
25
25
  select_all: "全选"
26
- deselect_all: "全选"
26
+ deselect_all: "全不选"
27
27
  delete_selected: "删除所选"
28
- delete_selected_title: "你确定你要删除所有选定的项目吗?"
29
- example: "例如:一个简单的文本"
30
- new_title: "新的 %{model}"
28
+ delete_selected_title: "您确认删除所选项么?"
29
+ example: "例如:普通说明文字"
30
+ new_title: " %{model}"
31
31
  create_title: "编辑 %{model}"
32
32
  create_success: "%{model} 已成功创建。"
33
- create_error: "无法创建 %{model}"
33
+ create_error: "未能创建 %{model}"
34
34
  edit_title: "编辑 %{model}"
35
- edit_warning: "找不到ID%的 %{id} %{model}"
35
+ edit_warning: "未能找到ID %{id} %{model}"
36
36
  update_title: "编辑 %{model}"
37
- update_success: "ID %{id} 的 %{model} 已成功更新。"
38
- update_error: "无法更新%{model}"
39
- update_warning: "找不到 ID %{id} 的 %{model}"
40
- delete_title: "删除 %{model}?"
41
- delete_success: "ID %{id} 的 %{model} 被成功删除。"
42
- delete_error: "无法删除 %{model}!"
43
- delete_warning: "找不到 ID %{id} %{model}"
44
- destroy_many_error: "您必须选择至少1 %{model} 删除"
45
- destroy_many_success: "%{model} %{ids} 已成功删除。"
37
+ update_success: "ID %{id} 的 %{model} 已成功更新。"
38
+ update_error: "未能更新 %{model}"
39
+ update_warning: "未能找到ID %{id} 的 %{model}"
40
+ delete_title: "删除 %{model} ?"
41
+ delete_success: "ID %{id} 的 %{model} 已删除。"
42
+ delete_error: "未能删除 %{model} !"
43
+ delete_warning: "未发现ID %{id} %{model}"
44
+ destroy_many_error: "您要删除 %{model} ,至少要选择一个。"
45
+ destroy_many_success: "%{model} %{ids} 全部删除。"
46
46
  custom_errors:
47
47
  title: "错误"
48
48
  '403':
49
- title: "错误 403"
50
- description: "被禁止"
49
+ title: "403错误"
50
+ description: "禁止访问该资源"
51
51
  '404':
52
- title: "错误 404"
53
- description: "未找到"
52
+ title: "404错误"
53
+ description: "没有找到相关资源"
54
54
  '500':
55
- title: "错误 500"
55
+ title: "500错误"
56
56
  description: "服务器错误"
@@ -2,25 +2,25 @@ zh_cn:
2
2
  activemodel: &activemodel
3
3
  errors:
4
4
  messages:
5
- inclusion: "没有包含在列表中"
6
- exclusion: "是被保留的关键字"
7
- invalid: "是无效的"
8
- confirmation: "不符合确认值"
9
- accepted: "必须是可被接受的"
10
- empty: "不能留空"
11
- blank: "不能是空白字元"
12
- too_long: "过长(最长是 %{count} 个字)"
13
- too_short: "过短(最短是%{count} 个字)"
14
- wrong_length: "字数错误(必须是%{count} 个字)"
15
- taken: "已经被使用"
5
+ inclusion: "未在列表中"
6
+ exclusion: "被保留"
7
+ invalid: "无效"
8
+ confirmation: "没有匹配配置信息"
9
+ accepted: "必须接受"
10
+ empty: "不能为空"
11
+ blank: "必须填写"
12
+ too_long: "过长(最大值为 %{count} 个字符,一个中文占用两个字符)"
13
+ too_short: "太短了(最小值为 %{count} 个字符,一个中文占用两个字符)"
14
+ wrong_length: "长度错误(应为 %{count} 个字符,一个中文占用两个字符)"
15
+ taken: "已被占用"
16
16
  not_a_number: "不是数字"
17
- greater_than: "必须大于 %{count}"
18
- greater_than_or_equal_to: "必须大于或等于%{count}"
19
- equal_to: "必须等于 %{count}"
20
- less_than: "必须小于 %{count}"
21
- less_than_or_equal_to: "必须小于或等于%{count}"
22
- odd: "必须是奇数"
23
- even: "必须是偶数"
24
- record_invalid: "校验失败: %{errors}"
25
- content_type: "档案格式不支援"
17
+ greater_than: "必须大于 %{count} 个字符,一个中文占用两个字符"
18
+ greater_than_or_equal_to: "必须大于等于 %{count} 个字符,一个中文占用两个字符"
19
+ equal_to: "必须等于 %{count} 个字符,一个中文占用两个字符"
20
+ less_than: "必须小于 %{count} 个字符,一个中文占用两个字符"
21
+ less_than_or_equal_to: "必须小于等于 %{count} 个字符,一个中文占用两个字符"
22
+ odd: "必须为奇数"
23
+ even: "必须为偶数"
24
+ record_invalid: "验证失败: %{errors}"
25
+ content_type: "文件格式不支持"
26
26
  activerecord: *activemodel
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Padrino Team
@@ -11,39 +12,44 @@ authors:
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2013-03-22 00:00:00.000000000 Z
15
+ date: 2013-04-07 00:00:00.000000000 Z
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
17
18
  name: padrino-core
18
19
  requirement: !ruby/object:Gem::Requirement
20
+ none: false
19
21
  requirements:
20
22
  - - '='
21
23
  - !ruby/object:Gem::Version
22
- version: 0.11.0
24
+ version: 0.11.1
23
25
  type: :runtime
24
26
  prerelease: false
25
27
  version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
26
29
  requirements:
27
30
  - - '='
28
31
  - !ruby/object:Gem::Version
29
- version: 0.11.0
32
+ version: 0.11.1
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: padrino-helpers
32
35
  requirement: !ruby/object:Gem::Requirement
36
+ none: false
33
37
  requirements:
34
38
  - - '='
35
39
  - !ruby/object:Gem::Version
36
- version: 0.11.0
40
+ version: 0.11.1
37
41
  type: :runtime
38
42
  prerelease: false
39
43
  version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
40
45
  requirements:
41
46
  - - '='
42
47
  - !ruby/object:Gem::Version
43
- version: 0.11.0
48
+ version: 0.11.1
44
49
  - !ruby/object:Gem::Dependency
45
50
  name: therubyracer
46
51
  requirement: !ruby/object:Gem::Requirement
52
+ none: false
47
53
  requirements:
48
54
  - - ~>
49
55
  - !ruby/object:Gem::Version
@@ -51,6 +57,7 @@ dependencies:
51
57
  type: :development
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
54
61
  requirements:
55
62
  - - ~>
56
63
  - !ruby/object:Gem::Version
@@ -58,6 +65,7 @@ dependencies:
58
65
  - !ruby/object:Gem::Dependency
59
66
  name: less
60
67
  requirement: !ruby/object:Gem::Requirement
68
+ none: false
61
69
  requirements:
62
70
  - - ~>
63
71
  - !ruby/object:Gem::Version
@@ -65,6 +73,7 @@ dependencies:
65
73
  type: :development
66
74
  prerelease: false
67
75
  version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
68
77
  requirements:
69
78
  - - ~>
70
79
  - !ruby/object:Gem::Version
@@ -103,6 +112,7 @@ files:
103
112
  - lib/padrino-admin/bootstrap-less/grid.less
104
113
  - lib/padrino-admin/bootstrap-less/jumbotron.less
105
114
  - lib/padrino-admin/bootstrap-less/labels.less
115
+ - lib/padrino-admin/bootstrap-less/list-group.less
106
116
  - lib/padrino-admin/bootstrap-less/media.less
107
117
  - lib/padrino-admin/bootstrap-less/mixins.less
108
118
  - lib/padrino-admin/bootstrap-less/modals.less
@@ -112,6 +122,7 @@ files:
112
122
  - lib/padrino-admin/bootstrap-less/padrino-admin.less
113
123
  - lib/padrino-admin/bootstrap-less/pager.less
114
124
  - lib/padrino-admin/bootstrap-less/pagination.less
125
+ - lib/padrino-admin/bootstrap-less/panels.less
115
126
  - lib/padrino-admin/bootstrap-less/popovers.less
116
127
  - lib/padrino-admin/bootstrap-less/print.less
117
128
  - lib/padrino-admin/bootstrap-less/progress-bars.less
@@ -254,27 +265,31 @@ files:
254
265
  - test/test_locale.rb
255
266
  homepage: http://www.padrinorb.com
256
267
  licenses: []
257
- metadata: {}
258
268
  post_install_message:
259
269
  rdoc_options:
260
270
  - --charset=UTF-8
261
271
  require_paths:
262
272
  - lib
263
273
  required_ruby_version: !ruby/object:Gem::Requirement
274
+ none: false
264
275
  requirements:
265
- - - '>='
276
+ - - ! '>='
266
277
  - !ruby/object:Gem::Version
267
278
  version: '0'
279
+ segments:
280
+ - 0
281
+ hash: -2878817817186852969
268
282
  required_rubygems_version: !ruby/object:Gem::Requirement
283
+ none: false
269
284
  requirements:
270
- - - '>='
285
+ - - ! '>='
271
286
  - !ruby/object:Gem::Version
272
287
  version: 1.3.6
273
288
  requirements: []
274
289
  rubyforge_project: padrino-admin
275
- rubygems_version: 2.0.3
290
+ rubygems_version: 1.8.25
276
291
  signing_key:
277
- specification_version: 4
292
+ specification_version: 3
278
293
  summary: Admin Dashboard for Padrino
279
294
  test_files:
280
295
  - test/fixtures/data_mapper.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 99fdaf933e9592ed00be6c4a5ca46e18adb57a89
4
- data.tar.gz: e0ef38549f1b52a2df95f709b63c85ab5eb02139
5
- SHA512:
6
- metadata.gz: 53407d617810c9c02e2f7882f0e906cd3b5a0c94309f0b74e9814562e22f42bc258dff28932ca3cc1ff7f9c88896621c3295da30aa43d6ed40ce0b337135e7ef
7
- data.tar.gz: 28f25d8233edc3f87c1a8dd377fe77a57f801abde3b15fd77e755faa3ef3a908bae8983448690e119740cda12ddf08085e177e7ae4a72389d08d1c8bfb821212