padrino-admin 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.5
@@ -1,370 +1,94 @@
1
- * {margin:0;padding:0}
2
- .clear { clear: both; height: 0; }
3
-
4
- .wat-cf:after {
5
- content: ".";
6
- display: block;
7
- height: 0;
8
- clear: both;
9
- visibility: hidden;
10
- }
11
-
12
- .wat-cf {display: inline-block;}
13
-
1
+ *{margin:0;padding:0}
2
+ .clear{clear:both;height:0;}
3
+ .wat-cf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
4
+ .wat-cf{display:inline-block;}
14
5
  /* Hides from IE-mac \*/
15
- * html .wat-cf {height: 1%;}
16
- .wat-cf {display: block;}
6
+ * html .wat-cf{height:1%;}
7
+ .wat-cf{display:block;}
17
8
  /* End hide from IE-mac */
18
-
19
- h1 { margin: 15px 0; font-size: 22px; font-weight: normal; }
20
- h2 { font-size: 22px; margin: 15px 0; font-weight: normal;}
21
- h3 { font-size: 18px; margin: 10px 0; font-weight: normal;}
22
- h4 { font-size: 16px; margin: 10px 0; font-weight: normal;}
23
- hr {height: 1px; border: 0; }
24
- p { margin: 15px 0;}
25
- a img { border: none; }
26
-
27
- body {
28
- font-size: 12px;
29
- font-family: sans-serif;
30
- }
31
-
32
- #container {
33
- min-width: 960px;
34
- }
35
-
36
- #header, #wrapper {
37
- padding: 0 20px;
38
- }
39
-
40
- #header {
41
- position: relative;
42
- padding-top: 1px;
43
- }
44
-
45
- #header h1 {
46
- margin: 0;
47
- padding: 10px 0;
48
- font-size: 26px;
49
- }
50
-
51
- #header h1 a:link, #header h1 a:active, #header h1 a:hover, #header h1 a:visited {
52
- text-decoration: none;
53
- }
54
-
55
- #main {
56
- width: 73%;
57
- float: left;
58
- }
59
-
60
- .actions-bar {
61
- padding: 10px 1px;
62
- }
63
-
64
- .actions-bar .actions {
65
- float: left;
66
- }
67
-
68
- .actions-bar .pagination {
69
- float: right;
70
- padding: 1px 0;
71
- }
72
-
73
- #sidebar {
74
- width: 25%;
75
- float: right;
76
- }
77
-
78
- #sidebar h3 {
79
- padding: 10px 15px;
80
- margin: 0;
81
- font-size: 13px;
82
- }
83
-
84
- #sidebar .block {
85
- margin-bottom: 20px;
86
- padding-bottom: 10px;
87
- }
88
-
89
- #sidebar .block .content {
90
- padding: 0 15px;
91
- }
92
-
93
- #sidebar ul.navigation li a:link, #sidebar ul.navigation li a:visited {
94
- display: block;
95
- padding: 10px 15px;
96
- }
97
-
98
- #sidebar .block .sidebar-block, #sidebar .notice {
99
- padding:10px;
100
- }
101
-
102
- .message.notice, .message.warning, .message.error {
103
- padding:10px;
104
- }
105
-
106
- #wrapper {
107
- padding-top: 20px;
108
- }
109
-
110
- #main .block {
111
- margin-bottom: 20px;
112
- padding-top: 1px;
113
- }
114
-
115
- #main .block .content .inner {
116
- padding: 0 15px 15px;
117
- }
118
-
119
- #main .block .content .inner .navform {
120
- text-align:right;
121
- }
122
-
123
- #main .main p.first {
124
- margin-top: 0;
125
- }
126
-
127
- #user-navigation {
128
- position: absolute;
129
- top: 0px;
130
- right: 20px;
131
- }
132
-
133
- #main-navigation {
134
- width: 100%;
135
- }
136
-
137
- #user-navigation ul, #main-navigation ul, .secondary-navigation ul, #sidebar ul.navigation {
138
- margin: 0;
139
- padding: 0;
140
- list-style-type: none;
141
- }
142
-
143
- #user-navigation ul li, #main-navigation ul li, .secondary-navigation ul li {
144
- float: left;
145
- }
146
-
147
- #main-navigation ul li {
148
- margin-right: 5px;
149
- }
150
-
151
- #user-navigation ul li {
152
- padding: 5px 10px;
153
- }
154
-
155
- #main-navigation ul li a:link, #main-navigation ul li a:visited, #main-navigation ul li a:hover, #main-navigation ul li a:active,
156
- .secondary-navigation ul li a:link, .secondary-navigation ul li a:visited, .secondary-navigation ul li a:hover, .secondary-navigation ul li a:active,
157
- #user-navigation ul li a:link, #user-navigation ul li a:visited, #user-navigation ul li a:hover, #user-navigation ul li a:active {
158
- text-decoration: none;
159
- }
160
-
161
- #main-navigation ul li a {
162
- font-size: 14px;
163
- line-height: 14px;
164
- display: block;
165
- padding: 8px 15px;
166
- }
167
-
168
- .secondary-navigation {
169
- font-size: 13px;
170
- border-bottom-width: 10px;
171
- border-bottom-style: solid;
172
- }
173
-
174
- .secondary-navigation ul li a {
175
- display: block;
176
- padding: 10px 15px;
177
- }
178
-
179
- #footer {
180
- padding-bottom: 20px;
181
- }
182
-
9
+ h1{margin:15px 0;font-size:22px;font-weight:normal;}
10
+ h2{font-size:22px;margin:15px 0;font-weight:normal;}
11
+ h3{font-size:18px;margin:10px 0;font-weight:normal;}
12
+ h4{font-size:16px;margin:10px 0;font-weight:normal;}
13
+ hr{height:1px;border:0;}
14
+ p{margin:15px 0;}
15
+ a img{border:none;}
16
+ body{font-size:12px;font-family:sans-serif;}
17
+ #container{min-width:960px;}
18
+ #header,#wrapper{padding:0 20px;}
19
+ #header{position:relative;padding-top:1px;}
20
+ #header h1{margin:0;padding:10px 0;font-size:26px;}
21
+ #header h1 a:link,#header h1 a:active,#header h1 a:hover,#header h1 a:visited{text-decoration:none;}
22
+ #main{width:73%;float:left;}
23
+ .actions-bar{padding:10px 1px;}
24
+ .actions-bar .actions{float:left;}
25
+ .actions-bar .pagination{float:right;padding:1px 0;}
26
+ #sidebar{width:25%;float:right;}
27
+ #sidebar h3{padding:10px 15px;margin:0;font-size:13px;}
28
+ #sidebar .block{margin-bottom:20px;padding-bottom:10px;}
29
+ #sidebar .block .content{padding:0 15px;}
30
+ #sidebar ul.navigation li a:link,#sidebar ul.navigation li a:visited{display:block;padding:10px 15px;}
31
+ #sidebar .block .sidebar-block,#sidebar .notice{padding:10px;}
32
+ .message.notice,.message.warning,.message.error{padding:10px;}
33
+ #wrapper{padding-top:20px;}
34
+ #main .block{margin-bottom:20px;padding-top:1px;}
35
+ #main .block .content .inner{padding:0 15px 15px;}
36
+ #main .block .content .inner .navform{text-align:right;}
37
+ #main .main p.first{margin-top:0;}
38
+ #user-navigation{position:absolute;top:0px;right:20px;}
39
+ #main-navigation{width:100%;}
40
+ #user-navigation ul,#main-navigation ul,.secondary-navigation ul,#sidebar ul.navigation{margin:0;padding:0;list-style-type:none;}
41
+ #user-navigation ul li,#main-navigation ul li,.secondary-navigation ul li{float:left;}
42
+ #main-navigation ul li{margin-right:5px;}
43
+ #user-navigation ul li{padding:5px 10px;}
44
+ #main-navigation ul li a:link,#main-navigation ul li a:visited,#main-navigation ul li a:hover,#main-navigation ul li a:active,
45
+ .secondary-navigation ul li a:link,.secondary-navigation ul li a:visited,.secondary-navigation ul li a:hover,.secondary-navigation ul li a:active,
46
+ #user-navigation ul li a:link,#user-navigation ul li a:visited,#user-navigation ul li a:hover,#user-navigation ul li a:active{text-decoration:none;}
47
+ #main-navigation ul li a{font-size:14px;line-height:14px;display:block;padding:8px 15px;}
48
+ .secondary-navigation{font-size:13px;border-bottom-width:10px;border-bottom-style:solid;}
49
+ .secondary-navigation ul li a{display:block;padding:10px 15px;}
50
+ #footer{padding-bottom:20px;}
183
51
  /* pagination */
184
-
185
- .pagination a, .pagination span {
186
- padding: 2px 5px;
187
- margin-right: 5px;
188
- display: block;
189
- float: left;
190
- border-style: solid;
191
- border-width: 1px;
192
- }
193
-
194
- .pagination span.current {
195
- font-weight: bold;
196
- }
197
-
198
- .pagination a {
199
- text-decoration: none;
200
- }
201
-
52
+ .pagination a,.pagination span{padding:2px 5px;margin-right:5px;display:block;float:left;border-style:solid;border-width:1px;}
53
+ .pagination span.current{font-weight:bold;}
54
+ .pagination a{text-decoration:none;}
202
55
  /* tables */
203
- .table {
204
- width: 100%;
205
- border-collapse: collapse;
206
- margin-bottom: 15px;
207
- }
208
-
209
- .table th {
210
- padding: 10px;
211
- font-weight: bold;
212
- text-align: left;
213
- }
214
-
215
- .table th.first {
216
- width: 30px;
217
- }
218
-
219
- /*.table th.last {
220
- width: 200px;
221
- }*/
222
-
223
- .table .checkbox {
224
- margin-left: 10px;
225
- }
226
-
227
- .table td {
228
- padding: 10px;
229
- }
230
-
231
- .table td.last {
232
- text-align: right;
233
- }
234
-
56
+ .table{width:100%;border-collapse:collapse;margin-bottom:15px;}
57
+ .table th{padding:10px;font-weight:bold;text-align:left;}
58
+ /*.table th.first{width:30px;}*/
59
+ /*.table th.last{width:200px;}*/
60
+ .table .checkbox{margin-left:10px;}
61
+ .table td{padding:10px;}
62
+ .table td.last{text-align:right;}
235
63
  /* forms */
236
-
237
- input.checkbox {
238
- margin: 0;
239
- padding: 0;
240
- }
241
-
242
- .form .group {
243
- margin-bottom: 15px;
244
- }
245
-
246
- .form div.left {
247
- width: 20%;
248
- float: left;
249
- }
250
-
251
- .form div.right {
252
- width: 75%;
253
- float: right;
254
- }
255
-
256
- .form .columns .column {
257
- width: 48%;
258
- }
259
-
260
- .form .columns .left {
261
- float: left;
262
- }
263
-
264
- .form .columns .right {
265
- float: right;
266
- }
267
-
268
- .form label, .form input.text_field, .form textarea.text_area {
269
- font-size: 1.2em;
270
- padding: 1px 0;
271
- margin: 0;
272
- }
273
-
274
- .form label.right {
275
- text-align: right;
276
- }
277
-
278
- .form input.checkbox, .form input.radio {
279
- margin-right: 5px;
280
- }
281
-
282
- .form label.checkbox, .form label.radio {
283
- line-height: 1.5em;
284
- }
285
-
286
- .form label {
287
- padding-bottom: 2px;
288
- font-weight: bold;
289
- }
290
-
291
- .form .error {
292
- color: red;
293
- }
294
-
295
- .form a {
296
- color:red;
297
- font-size:14px;
298
- }
299
-
300
- .form input.text_field, .form textarea.text_area {
301
- width: 100%;
302
- border-width: 1px;
303
- border-style: solid;
304
- }
305
-
306
- .button_to {
307
- display:inline;
308
- }
309
-
310
- .button_to input{
311
- background:none;
312
- border:none;
313
- display:inline;
314
- font-size:12px;
315
- color:#A72D2E;
316
- cursor:pointer;
317
- }
318
-
64
+ input.checkbox{margin:0;padding:0;}
65
+ .form .group{margin-bottom:15px;}
66
+ .form div.left{width:20%;float:left;}
67
+ .form div.right{width:75%;float:right;}
68
+ .form .columns .column{width:48%;}
69
+ .form .columns .left{float:left;}
70
+ .form .columns .right{float:right;}
71
+ .form label,.form input.text_field,.form textarea.text_area{font-size:1.0em;padding:2px 0;margin:0;color:#36393D;}
72
+ .form label.right{text-align:right;}
73
+ .form input.checkbox,.form input.radio{margin-right:5px;}
74
+ .form label.checkbox,.form label.radio{line-height:1.5em;}
75
+ .form label{padding-bottom:2px;font-weight:bold;}
76
+ .form .error{color:red;}
77
+ .form a{color:red;font-size:14px;}
78
+ .form input.text_field,.form textarea.text_area{width:100%;border-width:1px;border-style:solid;}
79
+ .button_to{display:inline;}
80
+ .button_to input{background:none;border:none;display:inline;font-size:12px;color:#A72D2E;cursor:pointer;}
319
81
  /* lists */
320
-
321
- ul.list {
322
- margin: 0;
323
- padding: 0;
324
- list-style-type: none;
325
- }
326
-
327
- ul.list li {
328
- clear: left;
329
- padding-bottom: 5px;
330
- }
331
-
332
- ul.list li .left {
333
- float: left;
334
- }
335
-
336
- ul.list li .left .avatar {
337
- width: 50px;
338
- height: 50px;
339
- }
340
-
341
- ul.list li .item {
342
- margin-left: 80px;
343
- }
344
-
345
- ul.list li .item .avatar {
346
- float: left;
347
- margin: 0 5px 5px 0;
348
- width: 30px;
349
- height: 30px;
350
- }
351
-
82
+ ul.list{margin:0;padding:0;list-style-type:none;}
83
+ ul.list li{clear:left;padding-bottom:5px;}
84
+ ul.list li .left{float:left;}
85
+ ul.list li .left .avatar{width:50px;height:50px;}
86
+ ul.list li .item{margin-left:80px;}
87
+ ul.list li .item .avatar{float:left;margin:0 5px 5px 0;width:30px;height:30px;}
352
88
  /* box */
353
-
354
- #box {
355
- width: 500px;
356
- margin: 50px auto;
357
- }
358
-
359
- #box .block {
360
- margin-bottom: 20px;
361
- }
362
-
363
- #box .block h2 {
364
- padding: 10px 15px;
365
- margin: 0;
366
- }
367
-
368
- #box .block .content {
369
- padding: 10px 20px;
370
- }
89
+ #box{width:500px;margin:50px auto;}
90
+ #box .block{margin-bottom:20px;}
91
+ #box .block h2{padding:10px 15px;margin:0;}
92
+ #box .block .content{padding:10px 20px;}
93
+ /* custom */
94
+ .code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <title><%= options[:name] %></title>
6
- <%%= stylesheet_link_tag :base, :override, "themes/<%= options[:theme] %>/style" %>
6
+ <%%= stylesheet_link_tag :base, "themes/<%= options[:theme] %>/style" %>
7
7
  </head>
8
8
  <body>
9
9
  <div id="container">
@@ -18,7 +18,7 @@
18
18
  <%% @<%= @orm.name_plural %>.each do |<%= @orm.name_singular %>| %>
19
19
  <tr>
20
20
  <%- @orm.columns.each_with_index do |column, i| -%>
21
- <td<%= " class=\"first\"" if i==0 %>><%%= link_to <%= @orm.name_singular %>.<%= column.name %>, url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id) %></td>
21
+ <td<%= " class=\"first\"" if i==0 %>><%%= <%= @orm.name_singular %>.<%= column.name %> %></td>
22
22
  <%- end -%>
23
23
  <td class="last">
24
24
  <%%= button_to pat(:edit), url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id), :method => :get, :class => :button_to %> |
@@ -3,7 +3,7 @@
3
3
  %head
4
4
  %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
5
5
  %title <%= options[:name] %>
6
- =stylesheet_link_tag :base, :override, "themes/<%= options[:theme] %>/style"
6
+ =stylesheet_link_tag :base, "themes/<%= options[:theme] %>/style"
7
7
  %body
8
8
  #container
9
9
  #header
@@ -17,7 +17,7 @@
17
17
  -@<%= @orm.name_plural %>.each do |<%= @orm.name_singular %>|
18
18
  %tr
19
19
  <%- @orm.columns.each_with_index do |column, i| -%>
20
- %td<%= ".first" if i==0 %>=link_to <%= @orm.name_singular %>.<%= column.name %>, url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id)
20
+ %td<%= ".first" if i==0 %>=<%= @orm.name_singular %>.<%= column.name %>
21
21
  <%- end -%>
22
22
  %td.last
23
23
  =button_to pat(:edit), url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id), :method => :get, :class => :button_to
@@ -27,7 +27,7 @@ module Padrino
27
27
  # mat(:account, :email)
28
28
  #
29
29
  def model_attribute_translate(model, attribute)
30
- t("models.#{model}.#{attribute}", :default => attribute.to_s.humanize)
30
+ t("models.#{model}.attributes.#{attribute}", :default => attribute.to_s.humanize)
31
31
  end
32
32
  alias :mat :model_attribute_translate
33
33
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-admin}
8
- s.version = "0.9.4"
8
+ s.version = "0.9.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
12
- s.date = %q{2010-03-03}
12
+ s.date = %q{2010-03-11}
13
13
  s.description = %q{Admin View for Padrino applications}
14
14
  s.email = %q{padrinorb@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -94,18 +94,18 @@ Gem::Specification.new do |s|
94
94
  s.specification_version = 3
95
95
 
96
96
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
97
- s.add_runtime_dependency(%q<padrino-core>, ["= 0.9.4"])
98
- s.add_runtime_dependency(%q<padrino-gen>, ["= 0.9.4"])
99
- s.add_runtime_dependency(%q<padrino-helpers>, ["= 0.9.4"])
97
+ s.add_runtime_dependency(%q<padrino-core>, ["= 0.9.5"])
98
+ s.add_runtime_dependency(%q<padrino-gen>, ["= 0.9.5"])
99
+ s.add_runtime_dependency(%q<padrino-helpers>, ["= 0.9.5"])
100
100
  s.add_development_dependency(%q<haml>, [">= 2.2.1"])
101
101
  s.add_development_dependency(%q<shoulda>, [">= 0"])
102
102
  s.add_development_dependency(%q<mocha>, [">= 0.9.7"])
103
103
  s.add_development_dependency(%q<rack-test>, [">= 0.5.0"])
104
104
  s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
105
105
  else
106
- s.add_dependency(%q<padrino-core>, ["= 0.9.4"])
107
- s.add_dependency(%q<padrino-gen>, ["= 0.9.4"])
108
- s.add_dependency(%q<padrino-helpers>, ["= 0.9.4"])
106
+ s.add_dependency(%q<padrino-core>, ["= 0.9.5"])
107
+ s.add_dependency(%q<padrino-gen>, ["= 0.9.5"])
108
+ s.add_dependency(%q<padrino-helpers>, ["= 0.9.5"])
109
109
  s.add_dependency(%q<haml>, [">= 2.2.1"])
110
110
  s.add_dependency(%q<shoulda>, [">= 0"])
111
111
  s.add_dependency(%q<mocha>, [">= 0.9.7"])
@@ -113,9 +113,9 @@ Gem::Specification.new do |s|
113
113
  s.add_dependency(%q<webrat>, [">= 0.5.1"])
114
114
  end
115
115
  else
116
- s.add_dependency(%q<padrino-core>, ["= 0.9.4"])
117
- s.add_dependency(%q<padrino-gen>, ["= 0.9.4"])
118
- s.add_dependency(%q<padrino-helpers>, ["= 0.9.4"])
116
+ s.add_dependency(%q<padrino-core>, ["= 0.9.5"])
117
+ s.add_dependency(%q<padrino-gen>, ["= 0.9.5"])
118
+ s.add_dependency(%q<padrino-helpers>, ["= 0.9.5"])
119
119
  s.add_dependency(%q<haml>, [">= 2.2.1"])
120
120
  s.add_dependency(%q<shoulda>, [">= 0"])
121
121
  s.add_dependency(%q<mocha>, [">= 0.9.7"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 4
9
- version: 0.9.4
8
+ - 5
9
+ version: 0.9.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Padrino Team
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-03-03 00:00:00 +01:00
20
+ date: 2010-03-11 00:00:00 +01:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -30,8 +30,8 @@ dependencies:
30
30
  segments:
31
31
  - 0
32
32
  - 9
33
- - 4
34
- version: 0.9.4
33
+ - 5
34
+ version: 0.9.5
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -44,8 +44,8 @@ dependencies:
44
44
  segments:
45
45
  - 0
46
46
  - 9
47
- - 4
48
- version: 0.9.4
47
+ - 5
48
+ version: 0.9.5
49
49
  type: :runtime
50
50
  version_requirements: *id002
51
51
  - !ruby/object:Gem::Dependency
@@ -58,8 +58,8 @@ dependencies:
58
58
  segments:
59
59
  - 0
60
60
  - 9
61
- - 4
62
- version: 0.9.4
61
+ - 5
62
+ version: 0.9.5
63
63
  type: :runtime
64
64
  version_requirements: *id003
65
65
  - !ruby/object:Gem::Dependency