unknown_admin 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +57 -0
- data/Rakefile +38 -0
- data/app/controllers/admin/admin_controller.rb +60 -0
- data/app/controllers/admin/resources_controller.rb +44 -0
- data/app/controllers/admin/users_controller.rb +52 -0
- data/app/helpers/admin/resources_helper.rb +41 -0
- data/app/models/user.rb +4 -0
- data/app/views/admin/admin/index.html.erb +36 -0
- data/app/views/admin/resources/_breadcrumb.html.erb +6 -0
- data/app/views/admin/resources/_condition_fields.html.erb +10 -0
- data/app/views/admin/resources/_form.html.erb +4 -0
- data/app/views/admin/resources/_form_actions.html.erb +5 -0
- data/app/views/admin/resources/_form_fields.html.erb +4 -0
- data/app/views/admin/resources/_list.html.erb +13 -0
- data/app/views/admin/resources/_list_actions.html.erb +5 -0
- data/app/views/admin/resources/_list_header.html.erb +6 -0
- data/app/views/admin/resources/_list_item.html.erb +12 -0
- data/app/views/admin/resources/_list_item_actions.html.erb +11 -0
- data/app/views/admin/resources/_search_field.html.erb +31 -0
- data/app/views/admin/resources/edit.html.erb +19 -0
- data/app/views/admin/resources/index.html.erb +11 -0
- data/app/views/admin/resources/new.html.erb +19 -0
- data/app/views/admin/resources/show.html.erb +23 -0
- data/app/views/admin/users/_form.html.erb +102 -0
- data/app/views/admin/users/_form_new.html.erb +66 -0
- data/app/views/admin/users/token_fields.json.rabl +2 -0
- data/app/views/devise/confirmations/new.html.erb +12 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +16 -0
- data/app/views/devise/passwords/new.html.erb +12 -0
- data/app/views/devise/registrations/edit.html.erb +25 -0
- data/app/views/devise/registrations/new.html.erb +18 -0
- data/app/views/devise/sessions/new.html.erb +17 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +12 -0
- data/app/views/layouts/admin/application.html.erb +31 -0
- data/config/routes.rb +8 -0
- data/lib/generators/unknown_admin/controller/controller_generator.rb +68 -0
- data/lib/generators/unknown_admin/controller/templates/standard_controller.rb +12 -0
- data/lib/generators/unknown_admin/install/install_generator.rb +36 -0
- data/lib/generators/unknown_admin/install/templates/admin.css +17 -0
- data/lib/generators/unknown_admin/install/templates/admin.js +20 -0
- data/lib/generators/unknown_admin/install/templates/admin_controller.rb +63 -0
- data/lib/generators/unknown_admin/install/templates/application.html.erb +39 -0
- data/lib/generators/unknown_admin/install/templates/resources_controller.rb +44 -0
- data/lib/tasks/unknown_admin_tasks.rake +4 -0
- data/lib/unknown_admin.rb +17 -0
- data/lib/unknown_admin/version.rb +3 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/test_helper.rb +15 -0
- data/test/unknown_admin_test.rb +7 -0
- metadata +290 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,290 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: unknown_admin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Stefan Kahlert
|
13
|
+
- Dirk Dresch
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2013-02-24 00:00:00 +01:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rails
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 2
|
31
|
+
- 9
|
32
|
+
version: 3.2.9
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: inherited_resources
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 3
|
45
|
+
version: "1.3"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: has_scope
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
- 5
|
58
|
+
- 0
|
59
|
+
version: 0.5.0
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: twitter-bootstrap-rails
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 2
|
71
|
+
- 1
|
72
|
+
version: "2.1"
|
73
|
+
type: :runtime
|
74
|
+
version_requirements: *id004
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: bootstrap-datepicker-rails
|
77
|
+
prerelease: false
|
78
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
- 6
|
85
|
+
version: "0.6"
|
86
|
+
type: :runtime
|
87
|
+
version_requirements: *id005
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: bootstrap-will_paginate
|
90
|
+
prerelease: false
|
91
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
- 0
|
98
|
+
- 9
|
99
|
+
version: 0.0.9
|
100
|
+
type: :runtime
|
101
|
+
version_requirements: *id006
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: will_paginate
|
104
|
+
prerelease: false
|
105
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
segments:
|
110
|
+
- 3
|
111
|
+
- 0
|
112
|
+
version: "3.0"
|
113
|
+
type: :runtime
|
114
|
+
version_requirements: *id007
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: chosen-rails
|
117
|
+
prerelease: false
|
118
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ~>
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
segments:
|
123
|
+
- 0
|
124
|
+
- 9
|
125
|
+
version: "0.9"
|
126
|
+
type: :runtime
|
127
|
+
version_requirements: *id008
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: ransack
|
130
|
+
prerelease: false
|
131
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ~>
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
- 7
|
138
|
+
- 0
|
139
|
+
version: 0.7.0
|
140
|
+
type: :runtime
|
141
|
+
version_requirements: *id009
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: simple_form
|
144
|
+
prerelease: false
|
145
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
segments:
|
150
|
+
- 2
|
151
|
+
- 0
|
152
|
+
version: "2.0"
|
153
|
+
type: :runtime
|
154
|
+
version_requirements: *id010
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: strong_parameters
|
157
|
+
prerelease: false
|
158
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ~>
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
- 1
|
165
|
+
version: "0.1"
|
166
|
+
type: :runtime
|
167
|
+
version_requirements: *id011
|
168
|
+
description: Description of UnknownAdmin.
|
169
|
+
email:
|
170
|
+
- kahlert@unknown.de
|
171
|
+
- dresch@unknown.de
|
172
|
+
executables: []
|
173
|
+
|
174
|
+
extensions: []
|
175
|
+
|
176
|
+
extra_rdoc_files: []
|
177
|
+
|
178
|
+
files:
|
179
|
+
- app/controllers/admin/admin_controller.rb
|
180
|
+
- app/controllers/admin/resources_controller.rb
|
181
|
+
- app/controllers/admin/users_controller.rb
|
182
|
+
- app/helpers/admin/resources_helper.rb
|
183
|
+
- app/models/user.rb
|
184
|
+
- app/views/admin/admin/index.html.erb
|
185
|
+
- app/views/admin/resources/_breadcrumb.html.erb
|
186
|
+
- app/views/admin/resources/_condition_fields.html.erb
|
187
|
+
- app/views/admin/resources/_form.html.erb
|
188
|
+
- app/views/admin/resources/_form_actions.html.erb
|
189
|
+
- app/views/admin/resources/_form_fields.html.erb
|
190
|
+
- app/views/admin/resources/_list.html.erb
|
191
|
+
- app/views/admin/resources/_list_actions.html.erb
|
192
|
+
- app/views/admin/resources/_list_header.html.erb
|
193
|
+
- app/views/admin/resources/_list_item.html.erb
|
194
|
+
- app/views/admin/resources/_list_item_actions.html.erb
|
195
|
+
- app/views/admin/resources/_search_field.html.erb
|
196
|
+
- app/views/admin/resources/edit.html.erb
|
197
|
+
- app/views/admin/resources/index.html.erb
|
198
|
+
- app/views/admin/resources/new.html.erb
|
199
|
+
- app/views/admin/resources/show.html.erb
|
200
|
+
- app/views/admin/users/_form.html.erb
|
201
|
+
- app/views/admin/users/_form_new.html.erb
|
202
|
+
- app/views/admin/users/token_fields.json.rabl
|
203
|
+
- app/views/devise/confirmations/new.html.erb
|
204
|
+
- app/views/devise/mailer/confirmation_instructions.html.erb
|
205
|
+
- app/views/devise/mailer/reset_password_instructions.html.erb
|
206
|
+
- app/views/devise/mailer/unlock_instructions.html.erb
|
207
|
+
- app/views/devise/passwords/edit.html.erb
|
208
|
+
- app/views/devise/passwords/new.html.erb
|
209
|
+
- app/views/devise/registrations/edit.html.erb
|
210
|
+
- app/views/devise/registrations/new.html.erb
|
211
|
+
- app/views/devise/sessions/new.html.erb
|
212
|
+
- app/views/devise/shared/_links.erb
|
213
|
+
- app/views/devise/unlocks/new.html.erb
|
214
|
+
- app/views/layouts/admin/application.html.erb
|
215
|
+
- config/routes.rb
|
216
|
+
- lib/generators/unknown_admin/controller/controller_generator.rb
|
217
|
+
- lib/generators/unknown_admin/controller/templates/standard_controller.rb
|
218
|
+
- lib/generators/unknown_admin/install/install_generator.rb
|
219
|
+
- lib/generators/unknown_admin/install/templates/admin.css
|
220
|
+
- lib/generators/unknown_admin/install/templates/admin.js
|
221
|
+
- lib/generators/unknown_admin/install/templates/admin_controller.rb
|
222
|
+
- lib/generators/unknown_admin/install/templates/application.html.erb
|
223
|
+
- lib/generators/unknown_admin/install/templates/resources_controller.rb
|
224
|
+
- lib/tasks/unknown_admin_tasks.rake
|
225
|
+
- lib/unknown_admin/version.rb
|
226
|
+
- lib/unknown_admin.rb
|
227
|
+
- MIT-LICENSE
|
228
|
+
- Rakefile
|
229
|
+
- README.md
|
230
|
+
has_rdoc: true
|
231
|
+
homepage: http://www.unknown.de
|
232
|
+
licenses: []
|
233
|
+
|
234
|
+
post_install_message:
|
235
|
+
rdoc_options: []
|
236
|
+
|
237
|
+
require_paths:
|
238
|
+
- lib
|
239
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
segments:
|
244
|
+
- 0
|
245
|
+
version: "0"
|
246
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
segments:
|
251
|
+
- 0
|
252
|
+
version: "0"
|
253
|
+
requirements: []
|
254
|
+
|
255
|
+
rubyforge_project:
|
256
|
+
rubygems_version: 1.3.6
|
257
|
+
signing_key:
|
258
|
+
specification_version: 3
|
259
|
+
summary: Summary of UnknownAdmin.
|
260
|
+
test_files:
|
261
|
+
- test/dummy/app/assets/javascripts/application.js
|
262
|
+
- test/dummy/app/assets/stylesheets/application.css
|
263
|
+
- test/dummy/app/controllers/application_controller.rb
|
264
|
+
- test/dummy/app/helpers/application_helper.rb
|
265
|
+
- test/dummy/app/views/layouts/application.html.erb
|
266
|
+
- test/dummy/config/application.rb
|
267
|
+
- test/dummy/config/boot.rb
|
268
|
+
- test/dummy/config/database.yml
|
269
|
+
- test/dummy/config/environment.rb
|
270
|
+
- test/dummy/config/environments/development.rb
|
271
|
+
- test/dummy/config/environments/production.rb
|
272
|
+
- test/dummy/config/environments/test.rb
|
273
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
274
|
+
- test/dummy/config/initializers/inflections.rb
|
275
|
+
- test/dummy/config/initializers/mime_types.rb
|
276
|
+
- test/dummy/config/initializers/secret_token.rb
|
277
|
+
- test/dummy/config/initializers/session_store.rb
|
278
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
279
|
+
- test/dummy/config/locales/en.yml
|
280
|
+
- test/dummy/config/routes.rb
|
281
|
+
- test/dummy/config.ru
|
282
|
+
- test/dummy/public/404.html
|
283
|
+
- test/dummy/public/422.html
|
284
|
+
- test/dummy/public/500.html
|
285
|
+
- test/dummy/public/favicon.ico
|
286
|
+
- test/dummy/Rakefile
|
287
|
+
- test/dummy/README.rdoc
|
288
|
+
- test/dummy/script/rails
|
289
|
+
- test/test_helper.rb
|
290
|
+
- test/unknown_admin_test.rb
|