customize_admin 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require bootstrap_and_overrides
10
+ //= require twitter/bootstrap
11
+ //= require_tree .
@@ -8,7 +8,7 @@ module CustomizeAdmin
8
8
 
9
9
  protected
10
10
  def collection
11
- collection = search(params[:search]).order( sort_column + " " + sort_direction ).paginate(:per_page => 10, :page => params[:page])
11
+ collection = search(params[:search]).order( sort_column + " " + sort_direction ).paginate(:per_page => CustomizeAdmin.per_page, :page => params[:page])
12
12
  end
13
13
 
14
14
  def sort_column
@@ -1,3 +1,3 @@
1
1
  module CustomizeAdmin
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -2,4 +2,5 @@
2
2
  # Many of these configuration options can be set straight in your model.
3
3
  CustomizeAdmin.setup do |config|
4
4
  config.name_space = "<%= @name_space %>"
5
+ config.per_page = 50
5
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: customize_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-19 00:00:00.000000000 Z
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: CustomizeAdmin it is simple way to customize your admin view.
15
15
  email:
@@ -18,91 +18,90 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - app/helpers/customize_admin/base_helper.rb
22
- - app/helpers/customize_admin/application_helper.rb
23
- - app/views/customize_admin/base/_form.html.erb
24
- - app/views/customize_admin/base/edit.html.erb
21
+ - app/assets/javascripts/customize_admin/application.js~
22
+ - app/assets/javascripts/customize_admin/application.js
23
+ - app/assets/javascripts/customize_admin/bootstrap.js.coffee
24
+ - app/assets/javascripts/customize_admin/admin/application.js
25
+ - app/assets/javascripts/customize_admin/base.js
26
+ - app/assets/images/customize_admin/down_arrow.gif
27
+ - app/assets/images/customize_admin/up_arrow.gif
28
+ - app/assets/stylesheets/customize_admin/bootstrap_and_overrides.css.less
29
+ - app/assets/stylesheets/customize_admin/application.css
30
+ - app/assets/stylesheets/customize_admin/bootstrap.css.less
31
+ - app/views/customize_admin/application/_admin_menu.html.erb
25
32
  - app/views/customize_admin/base/new.html.erb
26
- - app/views/customize_admin/base/show.html.erb
27
- - app/views/customize_admin/base/_more_index_action.html.erb
28
- - app/views/customize_admin/base/_index_action.html.erb
29
33
  - app/views/customize_admin/base/_more_show_action.html.erb
34
+ - app/views/customize_admin/base/_index_action.html.erb
35
+ - app/views/customize_admin/base/_form.html.erb
36
+ - app/views/customize_admin/base/show.html.erb
37
+ - app/views/customize_admin/base/_all_form_inputs.html.erb
30
38
  - app/views/customize_admin/base/_more_form_inputs.html.erb
39
+ - app/views/customize_admin/base/edit.html.erb
31
40
  - app/views/customize_admin/base/index.html.erb
32
- - app/views/customize_admin/base/_all_form_inputs.html.erb
33
- - app/views/customize_admin/application/_admin_menu.html.erb
41
+ - app/views/customize_admin/base/_more_index_action.html.erb
34
42
  - app/views/layouts/customize_admin/application.html.erb
35
43
  - app/controllers/customize_admin/application_controller.rb
36
44
  - app/controllers/customize_admin/base_controller.rb
37
- - app/assets/javascripts/customize_admin/bootstrap.js.coffee
38
- - app/assets/javascripts/customize_admin/base.js
39
- - app/assets/javascripts/customize_admin/application.js
40
- - app/assets/javascripts/customize_admin/admin/application.js
41
- - app/assets/images/customize_admin/down_arrow.gif
42
- - app/assets/images/customize_admin/up_arrow.gif
43
- - app/assets/stylesheets/customize_admin/application.css
44
- - app/assets/stylesheets/customize_admin/application.css~
45
- - app/assets/stylesheets/customize_admin/bootstrap.css.less
46
- - app/assets/stylesheets/customize_admin/bootstrap_and_overrides.css.less
45
+ - app/helpers/customize_admin/base_helper.rb
46
+ - app/helpers/customize_admin/application_helper.rb
47
47
  - config/routes.rb
48
48
  - config/initializers/locale.rb
49
49
  - config/initializers/formtastic.rb
50
- - lib/customize_admin/version.rb
51
- - lib/customize_admin/engine.rb
52
- - lib/templates/erb/scaffold/_form.html.erb
53
- - lib/generators/customize_admin/add_resource/templates/controller_template.rb
54
- - lib/generators/customize_admin/add_resource/USAGE
55
- - lib/generators/customize_admin/add_resource/add_resource_generator.rb~
56
- - lib/generators/customize_admin/add_resource/add_resource_generator.rb
57
- - lib/generators/customize_admin/scaffold/scaffold_generator.rb
58
- - lib/generators/customize_admin/scaffold/templates/controller_template.rb
59
- - lib/generators/customize_admin/scaffold/USAGE
60
- - lib/generators/customize_admin/install/templates/devise_admin.html.erb
50
+ - lib/generators/customize_admin/install/install_generator.rb
51
+ - lib/generators/customize_admin/install/USAGE
61
52
  - lib/generators/customize_admin/install/templates/dashboard_controller.rb
53
+ - lib/generators/customize_admin/install/templates/devise_admin.html.erb
62
54
  - lib/generators/customize_admin/install/templates/index.html.erb
63
55
  - lib/generators/customize_admin/install/templates/customize_admin.rb
64
- - lib/generators/customize_admin/install/USAGE
65
- - lib/generators/customize_admin/install/install_generator.rb
56
+ - lib/generators/customize_admin/scaffold/USAGE
57
+ - lib/generators/customize_admin/scaffold/templates/controller_template.rb
58
+ - lib/generators/customize_admin/scaffold/scaffold_generator.rb
59
+ - lib/generators/customize_admin/add_resource/add_resource_generator.rb~
60
+ - lib/generators/customize_admin/add_resource/add_resource_generator.rb
61
+ - lib/generators/customize_admin/add_resource/USAGE
62
+ - lib/generators/customize_admin/add_resource/templates/controller_template.rb
63
+ - lib/customize_admin/version.rb
64
+ - lib/customize_admin/engine.rb
65
+ - lib/templates/erb/scaffold/_form.html.erb
66
66
  - lib/tasks/customize_admin_tasks.rake
67
67
  - lib/customize_admin.rb
68
68
  - MIT-LICENSE
69
69
  - Rakefile
70
70
  - README.rdoc
71
71
  - test/customize_admin_test.rb
72
+ - test/functional/customize_admin/admin/application_controller_test.rb
73
+ - test/functional/customize_admin/admin/base_controller_test.rb
72
74
  - test/integration/navigation_test.rb
73
75
  - test/test_helper.rb
74
- - test/functional/customize_admin/admin/base_controller_test.rb
75
- - test/functional/customize_admin/admin/application_controller_test.rb
76
- - test/unit/helpers/customize_admin/admin/application_helper_test.rb
77
- - test/unit/helpers/customize_admin/admin/base_helper_test.rb
78
- - test/dummy/public/500.html
79
- - test/dummy/public/422.html
80
- - test/dummy/public/404.html
81
- - test/dummy/public/favicon.ico
76
+ - test/dummy/config/application.rb
82
77
  - test/dummy/config/routes.rb
83
- - test/dummy/config/database.yml
84
78
  - test/dummy/config/locales/en.yml
79
+ - test/dummy/config/environments/production.rb
80
+ - test/dummy/config/environments/test.rb
81
+ - test/dummy/config/environments/development.rb
85
82
  - test/dummy/config/environment.rb
83
+ - test/dummy/config/database.yml
84
+ - test/dummy/config/boot.rb
85
+ - test/dummy/config/initializers/backtrace_silencers.rb
86
86
  - test/dummy/config/initializers/secret_token.rb
87
87
  - test/dummy/config/initializers/inflections.rb
88
- - test/dummy/config/initializers/backtrace_silencers.rb
89
- - test/dummy/config/initializers/wrap_parameters.rb
90
88
  - test/dummy/config/initializers/mime_types.rb
91
89
  - test/dummy/config/initializers/session_store.rb
92
- - test/dummy/config/boot.rb
93
- - test/dummy/config/environments/production.rb
94
- - test/dummy/config/environments/test.rb
95
- - test/dummy/config/environments/development.rb
96
- - test/dummy/config/application.rb
97
- - test/dummy/app/helpers/application_helper.rb
98
- - test/dummy/app/views/layouts/application.html.erb
99
- - test/dummy/app/controllers/application_controller.rb
90
+ - test/dummy/config/initializers/wrap_parameters.rb
100
91
  - test/dummy/app/assets/javascripts/application.js
101
92
  - test/dummy/app/assets/stylesheets/application.css
93
+ - test/dummy/app/views/layouts/application.html.erb
94
+ - test/dummy/app/controllers/application_controller.rb
95
+ - test/dummy/app/helpers/application_helper.rb
102
96
  - test/dummy/config.ru
103
- - test/dummy/log/development.log
104
97
  - test/dummy/Rakefile
98
+ - test/dummy/public/favicon.ico
99
+ - test/dummy/public/422.html
100
+ - test/dummy/public/404.html
101
+ - test/dummy/public/500.html
105
102
  - test/dummy/script/rails
103
+ - test/unit/helpers/customize_admin/admin/application_helper_test.rb
104
+ - test/unit/helpers/customize_admin/admin/base_helper_test.rb
106
105
  homepage: https://github.com/JCieslar/customize_admin
107
106
  licenses: []
108
107
  post_install_message:
@@ -123,44 +122,42 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
122
  version: '0'
124
123
  requirements: []
125
124
  rubyforge_project:
126
- rubygems_version: 1.8.15
125
+ rubygems_version: 1.8.24
127
126
  signing_key:
128
127
  specification_version: 3
129
128
  summary: CustomizeAdmin it is simple way to customize your admin view.
130
129
  test_files:
131
130
  - test/customize_admin_test.rb
131
+ - test/functional/customize_admin/admin/application_controller_test.rb
132
+ - test/functional/customize_admin/admin/base_controller_test.rb
132
133
  - test/integration/navigation_test.rb
133
134
  - test/test_helper.rb
134
- - test/functional/customize_admin/admin/base_controller_test.rb
135
- - test/functional/customize_admin/admin/application_controller_test.rb
136
- - test/unit/helpers/customize_admin/admin/application_helper_test.rb
137
- - test/unit/helpers/customize_admin/admin/base_helper_test.rb
138
- - test/dummy/public/500.html
139
- - test/dummy/public/422.html
140
- - test/dummy/public/404.html
141
- - test/dummy/public/favicon.ico
135
+ - test/dummy/config/application.rb
142
136
  - test/dummy/config/routes.rb
143
- - test/dummy/config/database.yml
144
137
  - test/dummy/config/locales/en.yml
138
+ - test/dummy/config/environments/production.rb
139
+ - test/dummy/config/environments/test.rb
140
+ - test/dummy/config/environments/development.rb
145
141
  - test/dummy/config/environment.rb
142
+ - test/dummy/config/database.yml
143
+ - test/dummy/config/boot.rb
144
+ - test/dummy/config/initializers/backtrace_silencers.rb
146
145
  - test/dummy/config/initializers/secret_token.rb
147
146
  - test/dummy/config/initializers/inflections.rb
148
- - test/dummy/config/initializers/backtrace_silencers.rb
149
- - test/dummy/config/initializers/wrap_parameters.rb
150
147
  - test/dummy/config/initializers/mime_types.rb
151
148
  - test/dummy/config/initializers/session_store.rb
152
- - test/dummy/config/boot.rb
153
- - test/dummy/config/environments/production.rb
154
- - test/dummy/config/environments/test.rb
155
- - test/dummy/config/environments/development.rb
156
- - test/dummy/config/application.rb
157
- - test/dummy/app/helpers/application_helper.rb
158
- - test/dummy/app/views/layouts/application.html.erb
159
- - test/dummy/app/controllers/application_controller.rb
149
+ - test/dummy/config/initializers/wrap_parameters.rb
160
150
  - test/dummy/app/assets/javascripts/application.js
161
151
  - test/dummy/app/assets/stylesheets/application.css
152
+ - test/dummy/app/views/layouts/application.html.erb
153
+ - test/dummy/app/controllers/application_controller.rb
154
+ - test/dummy/app/helpers/application_helper.rb
162
155
  - test/dummy/config.ru
163
- - test/dummy/log/development.log
164
156
  - test/dummy/Rakefile
157
+ - test/dummy/public/favicon.ico
158
+ - test/dummy/public/422.html
159
+ - test/dummy/public/404.html
160
+ - test/dummy/public/500.html
165
161
  - test/dummy/script/rails
166
- has_rdoc:
162
+ - test/unit/helpers/customize_admin/admin/application_helper_test.rb
163
+ - test/unit/helpers/customize_admin/admin/base_helper_test.rb
@@ -1,183 +0,0 @@
1
- /*
2
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
- * and any sub-directories. You're free to add application-w
4
- ide styles to this file and they'll appear at
5
- * the top of the compiled file, but it's generally better to create a new file per style scope.
6
- *= require_self
7
- */
8
- .page{
9
- margin-top: 50px;
10
- }
11
- .content{
12
- width: 940px;
13
- margin-left: auto;
14
- margin-right: auto;
15
- }
16
-
17
- .link_white, a{
18
- color: #ffffff;
19
- }
20
- .link_white, a:hover, a:active, a:focus{
21
- color: #ffffff;
22
- }
23
- form .input {
24
- margin-left: 10px;
25
- }
26
-
27
- .form{
28
-
29
- margin-left: -150px;
30
-
31
- }
32
- .select_box{
33
- height: 600px;
34
- }
35
- .right{
36
- margin-left:auto;
37
- width: 100px;
38
- margin-right:auto;
39
- }
40
- #search{
41
- width: 400px;
42
- }
43
- .search{
44
- margin-left:auto;
45
- margin-right:auto;
46
- }
47
-
48
- th .current {
49
- padding-right: 12px;
50
- background-repeat: no-repeat;
51
- background-position: right center;
52
- }
53
-
54
- th .asc {
55
- background-image: url(/images/up_arrow.gif);
56
- }
57
-
58
- th .desc {
59
- background-image: url(/images/down_arrow.gif);
60
- }
61
-
62
-
63
-
64
- .digg_pagination {
65
- background: white;
66
- cursor: default;
67
-
68
-
69
- /* self-clearing method: */ }
70
- .digg_pagination a, .digg_pagination span, .digg_pagination em {
71
- line-height:34px;
72
-
73
- display: block;
74
- float: left;
75
- margin-right: 1px; }
76
- .digg_pagination .disabled {
77
- line-height:34px;
78
- color: #999999;
79
- border: 1px solid #dddddd; }
80
- .digg_pagination .current {
81
- line-height:34px;
82
- padding: 0 14px;
83
- text-decoration: none;
84
- font-style: normal;
85
- font-weight: bold;
86
- background: #2e6ab1;
87
- color: white;
88
- border: 1px solid #2e6ab1; }
89
- .digg_pagination a {
90
- line-height:34px;
91
-
92
- color: #105cb6;
93
- border: 1px solid #9aafe5; }
94
- .digg_pagination a:hover, .digg_pagination a:focus {
95
- line-height:34px;
96
- color: #000033;
97
- border-color: #000033; }
98
- .digg_pagination .page_info {
99
- line-height:34px;
100
- background: #2e6ab1;
101
- color: white;
102
- padding: 0.4em 0.6em;
103
- width: 22em;
104
- margin-bottom: 0.3em;
105
- text-align: center; }
106
- .digg_pagination .page_info b {
107
- line-height:34px;
108
- color: #000033;
109
- background: #6aa6ed;
110
- padding: 0.1em 0.25em; }
111
- .digg_pagination:after {
112
- line-height:34px;
113
- content: ".";
114
- display: block;
115
- height: 0;
116
- clear: both;
117
- visibility: hidden; }
118
- * html .digg_pagination {
119
- line-height:34px;
120
- height: 1%; }
121
- *:first-child + html .digg_pagination {
122
- line-height:34px;
123
- overflow: hidden; }
124
-
125
- .apple_pagination {
126
- background: #f1f1f1;
127
- border: 1px solid #e5e5e5;
128
- text-align: center;
129
- padding: 1em;
130
- cursor: default; }
131
- .apple_pagination a, .apple_pagination span {
132
- padding: 0.2em 0.3em; }
133
- .apple_pagination .disabled {
134
- color: #aaaaaa; }
135
- .apple_pagination .current {
136
- font-style: normal;
137
- font-weight: bold;
138
- background-color: #bebebe;
139
- display: inline-block;
140
- width: 1.4em;
141
- height: 1.4em;
142
- line-height: 1.5;
143
- -moz-border-radius: 1em;
144
- -webkit-border-radius: 1em;
145
- border-radius: 1em;
146
- text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; }
147
- .apple_pagination a {
148
- text-decoration: none;
149
- color: black; }
150
- .apple_pagination a:hover, .apple_pagination a:focus {
151
- text-decoration: underline; }
152
-
153
- .flickr_pagination {
154
- text-align: center;
155
- padding: 0.3em;
156
- cursor: default; }
157
- .flickr_pagination a, .flickr_pagination span, .flickr_pagination em {
158
- padding: 0.2em 0.5em; }
159
- .flickr_pagination .disabled {
160
- color: #aaaaaa; }
161
- .flickr_pagination .current {
162
- font-style: normal;
163
- font-weight: bold;
164
- color: #ff0084; }
165
- .flickr_pagination a {
166
- border: 1px solid #dddddd;
167
- color: #0063dc;
168
- text-decoration: none; }
169
- .flickr_pagination a:hover, .flickr_pagination a:focus {
170
- border-color: #003366;
171
- background: #0063dc;
172
- color: white; }
173
- .flickr_pagination .page_info {
174
- color: #aaaaaa;
175
- padding-top: 0.8em; }
176
- .flickr_pagination .previous_page, .flickr_pagination .next_page {
177
- border-width: 2px; }
178
- .flickr_pagination .previous_page {
179
- margin-right: 1em; }
180
- .flickr_pagination .next_page {
181
- margin-left: 1em; }
182
-
183
-
File without changes