beef-admin_area 0.1.3 → 0.1.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/admin_area.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{admin_area}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve England"]
9
- s.date = %q{2009-08-04}
9
+ s.date = %q{2009-08-26}
10
10
  s.email = %q{steve@wearebeef.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -47,8 +47,10 @@ Gem::Specification.new do |s|
47
47
  "generators/admin_area_files/templates/public/images/admin/accept_button.gif",
48
48
  "generators/admin_area_files/templates/public/images/admin/add.png",
49
49
  "generators/admin_area_files/templates/public/images/admin/application_cascade.png",
50
+ "generators/admin_area_files/templates/public/images/admin/arrow_down.gif",
50
51
  "generators/admin_area_files/templates/public/images/admin/arrow_left.gif",
51
52
  "generators/admin_area_files/templates/public/images/admin/arrow_right.gif",
53
+ "generators/admin_area_files/templates/public/images/admin/arrow_up.gif",
52
54
  "generators/admin_area_files/templates/public/images/admin/button_bg.gif",
53
55
  "generators/admin_area_files/templates/public/images/admin/cancel_button.gif",
54
56
  "generators/admin_area_files/templates/public/images/admin/cursor_arrow.gif",
@@ -74,8 +76,10 @@ Gem::Specification.new do |s|
74
76
  "generators/admin_area_files/templates/public/images/admin/picture_square.png",
75
77
  "generators/admin_area_files/templates/public/images/admin/picture_thumb.png",
76
78
  "generators/admin_area_files/templates/public/images/admin/pictures.png",
79
+ "generators/admin_area_files/templates/public/images/admin/sub_arrow_right.gif",
77
80
  "generators/admin_area_files/templates/public/images/admin/unapproved.png",
78
81
  "generators/admin_area_files/templates/public/images/admin/up_icon.gif",
82
+ "generators/admin_area_files/templates/public/images/admin/zoom.gif",
79
83
  "generators/admin_area_files/templates/public/images/lightwindow/Thumbs.db",
80
84
  "generators/admin_area_files/templates/public/images/lightwindow/ajax-loading.gif",
81
85
  "generators/admin_area_files/templates/public/images/lightwindow/arrow-down.gif",
@@ -55,6 +55,10 @@ RUBY
55
55
  "public/images/admin/pictures.png",
56
56
  "public/images/admin/unapproved.png",
57
57
  "public/images/admin/up_icon.gif",
58
+ "public/images/admin/arrow_down.gif",
59
+ "public/images/admin/arrow_up.gif",
60
+ "public/images/admin/sub_arrow_right.gif",
61
+ "public/images/admin/zoom.gif",
58
62
  "public/images/lightwindow/ajax-loading.gif",
59
63
  "public/images/lightwindow/arrow-down.gif",
60
64
  "public/images/lightwindow/arrow-up.gif",
@@ -1,5 +1,4 @@
1
1
  body {
2
- background-color: #fff;
3
2
  font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, Verdana, sans-serif;
4
3
  background: #fcfcf6 url(/images/admin/page_bg.gif) repeat-x;
5
4
  font-size: 10px;
@@ -20,9 +19,6 @@ form p,
20
19
  form.setting-form,
21
20
  label,
22
21
  legend,
23
- div#footer a,
24
- div#footer a:active,
25
- div#footer a:visited,
26
22
  div#footer p,
27
23
  table tr.actionbar td,
28
24
  table th {
@@ -157,10 +153,10 @@ div#main-column form {
157
153
 
158
154
 
159
155
  div#footer {
160
- margin: 0 0 0 30px;
161
- padding: 8px 5px;
156
+ padding: 10px 37px 20px 37px;
162
157
  clear: both;
163
- border-top: 1px solid #afafaf;
158
+ background: #33393c;
159
+ position: relative;
164
160
  }
165
161
 
166
162
  div#errorExplanation {
@@ -194,10 +190,9 @@ div#header h1 strong {
194
190
  }
195
191
 
196
192
  div#main-content h1, div.module h2, div#sub-content h2 {
197
- font: bold 1.6em Helvetica, Arial, Verdana, sans-serif;
193
+ font: bold 2.5em Helvetica, Arial, Verdana, sans-serif;
198
194
  padding: 10px 0 5px;
199
195
  border-bottom: 1px solid #afafaf;
200
- text-transform: capitalize;
201
196
 
202
197
  }
203
198
 
@@ -253,34 +248,32 @@ body#help ul {
253
248
  }
254
249
 
255
250
  ul#topnav {
256
- background: #818181 url(/images/admin/nav_bg.gif);
251
+ background: #4a5154;
257
252
  list-style-type: none;
258
- padding: 0 0 0 30px;
253
+ padding-left: 37px;
254
+ border-top: solid 1px #596063;
259
255
  }
260
256
 
261
- ul#topnav li {
262
- display: inline;
263
-
264
-
265
- }
257
+ ul#topnav li { display: inline;}
266
258
 
267
259
  ul#topnav li a {
268
260
  display: block;
269
261
  float: left;
270
- height: 36px;
271
- padding: 0 8px;
272
- line-height: 26px;
273
- color: #f6f7e7;
274
- text-decoration: none;
262
+ padding: 10px 10px 17px 10px;
263
+ margin-left: -1px;
275
264
  font-size: 1.1em;
276
265
  font-weight: bold;
277
- white-space : nowrap;
278
- background: #818181 url(/images/admin/nav_bg.gif) repeat-x;
266
+ border-right: dotted 1px #596063;
267
+ border-left: dotted 1px #596063;
268
+ color:#fff;
279
269
  }
280
270
 
281
- ul#topnav li a:hover, ul#topnav li a.selected {
282
- color: #000;
283
- background: url(/images/admin/button_bg.gif);
271
+ ul#topnav li a:hover {background-color: #596063; text-decoration: none;}
272
+
273
+ ul#topnav li a.selected {
274
+ background: #edefe4;
275
+ border-left: solid 1px #edefe4;
276
+ border-right: solid 1px #edefe4;
284
277
  }
285
278
 
286
279
  p#main-choice {
@@ -367,10 +360,6 @@ table tr.actionbar td {
367
360
  td.title {
368
361
  padding-right: 30px;
369
362
  }
370
- td.date {
371
- width: 20%;
372
- }
373
-
374
363
  a.feature {
375
364
  background: url('../../images/admin/unapproved.png') no-repeat;
376
365
  }
@@ -378,13 +367,16 @@ a.featured {
378
367
  background: url('../../images/admin/accept_button.gif') no-repeat;
379
368
  }
380
369
 
381
- a.edit, a.delete, a.editor_cancel, a.feature, ul.buttons a {
370
+ .choices a, #subscribers .choices a, .level-1 span.indent, a.move-up, a.move-down, a.page_up, a.page_down, a.edit, a.add, a.show, a.delete, a.editor_cancel, a.feature, ul.buttons a {
382
371
  float: left;
383
372
  margin-right: 6px;
384
373
  height: 16px;
385
374
  width: 16px;
386
375
  }
387
376
 
377
+ .choices a {background: url('../../images/admin/add.png') no-repeat; padding: 2px 0 0 20px; width:100px;}
378
+ #subscribers .choices a {background: url('../../images/admin/arrow_down.gif') no-repeat; padding: 2px 0 0 20px; width:100px;}
379
+
388
380
  a.left {
389
381
  float: left;
390
382
  margin-left: 30px;
@@ -443,7 +435,7 @@ a.right {
443
435
  ul#status {
444
436
  margin: 9px 30px 0 auto;
445
437
  padding: 5px 0 0 7px;
446
- width: 405px;
438
+ width: 360px;
447
439
  height: 19px;
448
440
  background: url(/images/admin/info_bg.gif) repeat-x;
449
441
  white-space: nowrap;
@@ -472,9 +464,13 @@ div#footer p {
472
464
  font-size: 10px;
473
465
  }
474
466
 
467
+ div#footer a {
468
+ color: #fff;
469
+ text-decoration:none;
470
+ }
475
471
 
476
472
  div#footer a:hover {
477
- color: #444;
473
+ text-decoration:underline;
478
474
  }
479
475
 
480
476
  label {
@@ -584,9 +580,43 @@ a.help {
584
580
  font-weight: bold;
585
581
  }
586
582
 
583
+ .level-0 .title {
584
+ font-size:14px;
585
+ }
586
+
587
+ .level-1 .title {
588
+ padding-left:20px;
589
+ }
590
+
591
+ .level-2 .title {
592
+ padding-left:70px;
593
+ }
594
+
595
+
596
+ .level-1 {
597
+ background: url(/images/admin/arrow_right.gif) no-repeat 2% 40%;
598
+ }
599
+
600
+ .level-2 {
601
+ background: url(/images/admin/sub_arrow_right.gif) no-repeat 5% 40%;
602
+ }
603
+
587
604
  a.edit {
588
605
  background: url(/images/admin/edit_button.gif) no-repeat;
589
606
  }
607
+
608
+ a.show {
609
+ background: url(/images/admin/zoom.gif) no-repeat;
610
+ }
611
+
612
+ a.page_up, a.move-up {
613
+ background: url(/images/admin/arrow_up.gif) no-repeat;
614
+ }
615
+
616
+ a.page_down, a.move-down {
617
+ background: url(/images/admin/arrow_down.gif) no-repeat;
618
+ }
619
+
590
620
  a.images {
591
621
  background: url(/images/admin/pictures.png) no-repeat;
592
622
  padding-left: 20px;
@@ -950,8 +980,15 @@ form p {
950
980
  /* eo:password strength */
951
981
 
952
982
  /* BIR */
983
+ .title span,
953
984
  a.editor_cancel,
954
985
  a.edit,
986
+ a.show,
987
+ a.page_up,
988
+ a.page_down,
989
+ a.move-up,
990
+ a.move-down,
991
+ a.add,
955
992
  a.delete,
956
993
  a.remove,
957
994
  a.left,
@@ -962,10 +999,11 @@ a.feature,
962
999
  dl#asset-browser dd li a.action,
963
1000
  input.editor_ok_button,
964
1001
  a.image-size {
965
- display: block;
1002
+ display:block;
966
1003
  letter-spacing : -1em;
967
1004
  text-indent: -1000em;
968
1005
  overflow: hidden;
1006
+ line-height:0;
969
1007
  }
970
1008
 
971
1009
  #page_preview {
data/lib/admin_area.rb CHANGED
@@ -25,7 +25,7 @@ module Beef
25
25
 
26
26
  module InstanceMethods
27
27
  def authorise(*roles)
28
- deny_access("You do not have the required access privelages to access page") unless current_user.authorised?(*roles)
28
+ deny_access("You do not have the required access privileges to access page") unless current_user.authorised?(*roles)
29
29
  end
30
30
 
31
31
  def authorised?(*roles, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-admin_area
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-04 00:00:00 -07:00
12
+ date: 2009-08-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -86,8 +86,10 @@ files:
86
86
  - generators/admin_area_files/templates/public/images/admin/accept_button.gif
87
87
  - generators/admin_area_files/templates/public/images/admin/add.png
88
88
  - generators/admin_area_files/templates/public/images/admin/application_cascade.png
89
+ - generators/admin_area_files/templates/public/images/admin/arrow_down.gif
89
90
  - generators/admin_area_files/templates/public/images/admin/arrow_left.gif
90
91
  - generators/admin_area_files/templates/public/images/admin/arrow_right.gif
92
+ - generators/admin_area_files/templates/public/images/admin/arrow_up.gif
91
93
  - generators/admin_area_files/templates/public/images/admin/button_bg.gif
92
94
  - generators/admin_area_files/templates/public/images/admin/cancel_button.gif
93
95
  - generators/admin_area_files/templates/public/images/admin/cursor_arrow.gif
@@ -113,8 +115,10 @@ files:
113
115
  - generators/admin_area_files/templates/public/images/admin/picture_square.png
114
116
  - generators/admin_area_files/templates/public/images/admin/picture_thumb.png
115
117
  - generators/admin_area_files/templates/public/images/admin/pictures.png
118
+ - generators/admin_area_files/templates/public/images/admin/sub_arrow_right.gif
116
119
  - generators/admin_area_files/templates/public/images/admin/unapproved.png
117
120
  - generators/admin_area_files/templates/public/images/admin/up_icon.gif
121
+ - generators/admin_area_files/templates/public/images/admin/zoom.gif
118
122
  - generators/admin_area_files/templates/public/images/lightwindow/Thumbs.db
119
123
  - generators/admin_area_files/templates/public/images/lightwindow/ajax-loading.gif
120
124
  - generators/admin_area_files/templates/public/images/lightwindow/arrow-down.gif
@@ -178,7 +182,6 @@ files:
178
182
  - test/test_helper.rb
179
183
  has_rdoc: false
180
184
  homepage: http://github.com/beef/admin
181
- licenses:
182
185
  post_install_message:
183
186
  rdoc_options:
184
187
  - --charset=UTF-8
@@ -199,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
202
  requirements: []
200
203
 
201
204
  rubyforge_project:
202
- rubygems_version: 1.3.5
205
+ rubygems_version: 1.2.0
203
206
  signing_key:
204
207
  specification_version: 3
205
208
  summary: Rails engine that provides a standard admin area with user managament