padrino-admin 0.10.6.e → 0.10.6
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.
- data/lib/padrino-admin/generators/templates/app/controllers/{sessions.rb → sessions.rb.tt} +2 -2
- data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +1 -1
- data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +1 -1
- metadata +9 -36
@@ -5,11 +5,11 @@ Admin.controllers :sessions do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
post :create do
|
8
|
-
if account =
|
8
|
+
if account = <%= options[:admin_model] %>.authenticate(params[:email], params[:password])
|
9
9
|
set_current_account(account)
|
10
10
|
redirect url(:base, :index)
|
11
11
|
elsif Padrino.env == :development && params[:bypass]
|
12
|
-
account =
|
12
|
+
account = <%= options[:admin_model] %>.first
|
13
13
|
set_current_account(account)
|
14
14
|
redirect url(:base, :index)
|
15
15
|
else
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<h1><%%= link_to "Padrino Admin", url(:base_index) %></h1>
|
12
12
|
<div id="user-navigation">
|
13
13
|
<ul class="wat-cf">
|
14
|
-
<li><%%= link_to pat(:profile), url(:
|
14
|
+
<li><%%= link_to pat(:profile), url(:<%= options[:admin_model].underscore.pluralize %>, :edit, :id => current_account.id) %></li>
|
15
15
|
<li><%%= button_to pat(:logout), url(:sessions, :destroy), :method => :delete, :class => :button_to %></li>
|
16
16
|
</ul>
|
17
17
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
%h1=link_to "Padrino Admin", url(:base_index)
|
11
11
|
#user-navigation
|
12
12
|
%ul.wat-cf
|
13
|
-
%li=link_to pat(:profile), url(:
|
13
|
+
%li=link_to pat(:profile), url(:<%= options[:admin_model].underscore.pluralize %>, :edit, :id => current_account.id)
|
14
14
|
%li=button_to pat(:logout), url(:sessions, :destroy), :method => :delete, :class => :button_to
|
15
15
|
#main-navigation
|
16
16
|
%ul.wat-cf
|
@@ -11,7 +11,7 @@ html lang="en" xmlns="http://www.w3.org/1999/xhtml"
|
|
11
11
|
h1==link_to "Padrino Admin", url(:base_index)
|
12
12
|
#user-navigation
|
13
13
|
ul.wat-cf
|
14
|
-
li==link_to pat(:profile), url(:
|
14
|
+
li==link_to pat(:profile), url(:<%= options[:admin_model].underscore.pluralize %>, :edit, :id => current_account.id)
|
15
15
|
li==button_to pat(:logout), url(:sessions, :destroy), :method => :delete, :class => :button_to
|
16
16
|
#main-navigation
|
17
17
|
ul.wat-cf
|
metadata
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 10
|
9
|
-
- 6
|
10
|
-
- e
|
11
|
-
version: 0.10.6.e
|
4
|
+
prerelease:
|
5
|
+
version: 0.10.6
|
12
6
|
platform: ruby
|
13
7
|
authors:
|
14
8
|
- Padrino Team
|
@@ -19,7 +13,7 @@ autorequire:
|
|
19
13
|
bindir: bin
|
20
14
|
cert_chain: []
|
21
15
|
|
22
|
-
date: 2012-
|
16
|
+
date: 2012-03-15 00:00:00 Z
|
23
17
|
dependencies:
|
24
18
|
- !ruby/object:Gem::Dependency
|
25
19
|
name: padrino-core
|
@@ -29,13 +23,7 @@ dependencies:
|
|
29
23
|
requirements:
|
30
24
|
- - "="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
segments:
|
34
|
-
- 0
|
35
|
-
- 10
|
36
|
-
- 6
|
37
|
-
- e
|
38
|
-
version: 0.10.6.e
|
26
|
+
version: 0.10.6
|
39
27
|
type: :runtime
|
40
28
|
version_requirements: *id001
|
41
29
|
- !ruby/object:Gem::Dependency
|
@@ -46,13 +34,7 @@ dependencies:
|
|
46
34
|
requirements:
|
47
35
|
- - "="
|
48
36
|
- !ruby/object:Gem::Version
|
49
|
-
|
50
|
-
segments:
|
51
|
-
- 0
|
52
|
-
- 10
|
53
|
-
- 6
|
54
|
-
- e
|
55
|
-
version: 0.10.6.e
|
37
|
+
version: 0.10.6
|
56
38
|
type: :runtime
|
57
39
|
version_requirements: *id002
|
58
40
|
description: Admin View for Padrino applications
|
@@ -86,7 +68,7 @@ files:
|
|
86
68
|
- lib/padrino-admin/generators/templates/account/sequel.rb.tt
|
87
69
|
- lib/padrino-admin/generators/templates/app.rb.tt
|
88
70
|
- lib/padrino-admin/generators/templates/app/controllers/base.rb
|
89
|
-
- lib/padrino-admin/generators/templates/app/controllers/sessions.rb
|
71
|
+
- lib/padrino-admin/generators/templates/app/controllers/sessions.rb.tt
|
90
72
|
- lib/padrino-admin/generators/templates/assets/stylesheets/base.css
|
91
73
|
- lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css
|
92
74
|
- lib/padrino-admin/generators/templates/assets/stylesheets/themes/bec-green/style.css
|
@@ -187,25 +169,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
169
|
requirements:
|
188
170
|
- - ">="
|
189
171
|
- !ruby/object:Gem::Version
|
190
|
-
hash: 3
|
191
|
-
segments:
|
192
|
-
- 0
|
193
172
|
version: "0"
|
194
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
174
|
none: false
|
196
175
|
requirements:
|
197
|
-
- - "
|
176
|
+
- - ">="
|
198
177
|
- !ruby/object:Gem::Version
|
199
|
-
|
200
|
-
segments:
|
201
|
-
- 1
|
202
|
-
- 3
|
203
|
-
- 1
|
204
|
-
version: 1.3.1
|
178
|
+
version: 1.3.6
|
205
179
|
requirements: []
|
206
180
|
|
207
181
|
rubyforge_project: padrino-admin
|
208
|
-
rubygems_version: 1.8.
|
182
|
+
rubygems_version: 1.8.19
|
209
183
|
signing_key:
|
210
184
|
specification_version: 3
|
211
185
|
summary: Admin Dashboard for Padrino
|
@@ -217,4 +191,3 @@ test_files:
|
|
217
191
|
- test/helper.rb
|
218
192
|
- test/test_admin_application.rb
|
219
193
|
- test/test_locale.rb
|
220
|
-
has_rdoc:
|