wheels 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/blogs_controller.rb +17 -0
  3. data/app/controllers/galleries_controller.rb +60 -0
  4. data/app/controllers/images_controller.rb +30 -0
  5. data/app/controllers/profiles_controller.rb +16 -0
  6. data/app/controllers/users_controller.rb +4 -0
  7. data/app/models/ability.rb +23 -0
  8. data/app/models/blog.rb +8 -0
  9. data/app/models/gallery.rb +5 -0
  10. data/app/models/image.rb +8 -0
  11. data/app/models/profile.rb +11 -0
  12. data/app/models/role.rb +8 -0
  13. data/app/models/user.rb +43 -0
  14. data/app/views/blogs/_form.html.haml +28 -0
  15. data/app/views/blogs/edit.html.haml +8 -0
  16. data/app/views/blogs/index.html.haml +19 -0
  17. data/app/views/blogs/index.xml.builder +27 -0
  18. data/app/views/blogs/new.html.haml +6 -0
  19. data/app/views/blogs/show.html.haml +10 -0
  20. data/app/views/galleries/_form.html.haml +29 -0
  21. data/app/views/galleries/_show.html.haml +21 -0
  22. data/app/views/galleries/edit.html.haml +7 -0
  23. data/app/views/galleries/index.html.haml +15 -0
  24. data/app/views/galleries/new.html.haml +5 -0
  25. data/app/views/galleries/show.html.haml +4 -0
  26. data/app/views/images/_form.html.haml +10 -0
  27. data/app/views/images/create.js.haml +3 -0
  28. data/app/views/images/destroy.js.haml +3 -0
  29. data/app/views/images/edit.html.haml +7 -0
  30. data/app/views/images/edit.js.haml +3 -0
  31. data/app/views/images/index.html.haml +17 -0
  32. data/app/views/images/index.js.haml +3 -0
  33. data/app/views/images/new.html.haml +5 -0
  34. data/app/views/images/new.js.haml +3 -0
  35. data/app/views/images/show.html.haml +5 -0
  36. data/app/views/images/show.js.haml +3 -0
  37. data/app/views/images/update.js.haml +3 -0
  38. data/app/views/layouts/image_dialog.html.haml +18 -0
  39. data/app/views/profiles/_form.html.haml +26 -0
  40. data/app/views/profiles/edit.html.haml +7 -0
  41. data/app/views/profiles/index.html.haml +25 -0
  42. data/app/views/profiles/new.html.haml +5 -0
  43. data/app/views/profiles/show.html.haml +21 -0
  44. data/app/views/users/index.html.haml +19 -0
  45. data/config/amazon_s3.yml +15 -0
  46. data/db/migrate/add_fields_to_users.rb +28 -0
  47. data/db/migrate/create_blogs.rb +16 -0
  48. data/db/migrate/create_galleries.rb +15 -0
  49. data/db/migrate/create_images.rb +17 -0
  50. data/db/migrate/create_profiles.rb +24 -0
  51. data/db/migrate/create_roles.rb +16 -0
  52. data/lib/generators/wheels/recipes/wheels.rb +0 -1
  53. data/lib/generators/wheels/wheels_generator.rb +1 -1
  54. data/lib/wheels.rb +1 -0
  55. data/public/404.html +26 -0
  56. data/public/422.html +26 -0
  57. data/public/500.html +26 -0
  58. data/public/favicon.ico +0 -0
  59. data/public/images/dreamy/Thumbs.db +0 -0
  60. data/public/images/dreamy/bg-ad-top.png +0 -0
  61. data/public/images/dreamy/bg-body.png +0 -0
  62. data/public/images/dreamy/bg-feed.gif +0 -0
  63. data/public/images/dreamy/bg-footer.jpg +0 -0
  64. data/public/images/dreamy/bg-header.jpg +0 -0
  65. data/public/images/dreamy/bg-menu-hover.png +0 -0
  66. data/public/images/dreamy/bg-menu.png +0 -0
  67. data/public/images/dreamy/bg-sidebar-bottom.gif +0 -0
  68. data/public/images/dreamy/button-feed.png +0 -0
  69. data/public/images/dreamy/icon-comment.png +0 -0
  70. data/public/images/growl/error.png +0 -0
  71. data/public/images/growl/growl_bottom.png +0 -0
  72. data/public/images/growl/growl_repeat.png +0 -0
  73. data/public/images/growl/growl_top.png +0 -0
  74. data/public/images/growl/info.png +0 -0
  75. data/public/images/menu/item-pointer-mover.gif +0 -0
  76. data/public/images/menu/item-pointer.gif +0 -0
  77. data/public/images/menu/lava.gif +0 -0
  78. data/public/images/menu/lava.png +0 -0
  79. data/public/images/menu/main-bg.png +0 -0
  80. data/public/images/menu/main-delimiter.png +0 -0
  81. data/public/javascripts/jquery.growl.js +143 -0
  82. data/public/javascripts/loadbehind.js +0 -0
  83. data/public/javascripts/menu.js +247 -0
  84. data/public/stylesheets/.gitkeep +0 -0
  85. data/public/stylesheets/dreamy.css +181 -0
  86. data/public/stylesheets/menu.css +101 -0
  87. data/public/stylesheets/sass/dreamy.sass +195 -0
  88. data/public/stylesheets/sass/menu.sass +105 -0
  89. data/public/stylesheets/scaffold.css +56 -0
  90. data/public/stylesheets/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
  91. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  92. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  93. data/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  94. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  95. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  96. data/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  97. data/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  98. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  99. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  100. data/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  101. data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  102. data/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  103. data/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  104. data/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  105. data/public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css +359 -0
  106. data/wheels.gemspec +102 -1
  107. metadata +104 -3
@@ -0,0 +1,195 @@
1
+ /*
2
+ *Theme Name: Ginger Ninja! v2
3
+ *Description: The new Ginger Ninja! theme.
4
+ *Version: 1.0
5
+ *Author: Donny Burnside
6
+ *Author URI: http://www.ginger-ninja.net/
7
+
8
+ /* Generic Styling
9
+
10
+ body
11
+ background: url(/images/dreamy/bg-body.png) repeat-x top center #e8f7f9
12
+ font-family: "Trebuchet MS" Arial, Helvetica, sans-serif
13
+ font-size: 62.5%
14
+ /* Sets default font size to 10px
15
+ color: #222222
16
+
17
+ *
18
+ margin: 0
19
+ padding: 0
20
+
21
+ img
22
+ border: 0
23
+
24
+ p
25
+ margin-bottom: 1.75em
26
+
27
+ a
28
+ text-decoration: none
29
+ color: #B4C835
30
+ &:hover
31
+ text-decoration: none
32
+ color: #6CC7DC
33
+
34
+ /* Structure
35
+
36
+ #wrapper
37
+ margin: 0 auto
38
+ width: 700px
39
+ background: #ffffff
40
+ font-size: 1.20em
41
+
42
+ #header
43
+ height: 140px
44
+ background: url(/images/dreamy/bg-header.jpg) no-repeat
45
+
46
+ #menu
47
+ height: 35px
48
+ line-height: 35px
49
+ background: url(/images/dreamy/bg-menu.png) repeat-x
50
+ padding: 0 10px
51
+
52
+ #sidebar
53
+ float: right
54
+ width: 180px
55
+ background: #efefef
56
+ margin-right: 10px
57
+
58
+ #content
59
+ float: left
60
+ width: 500px
61
+ min-height: 400px
62
+
63
+ #footer
64
+ clear: both
65
+ height: 100px
66
+ background: url(/images/dreamy/bg-footer.jpg) no-repeat
67
+
68
+ /* Entries
69
+
70
+ .entry
71
+ padding: 5px 10px
72
+ text-align: justify
73
+ line-height: 1.75em
74
+
75
+ .entry-title
76
+ font-size: 1.90em
77
+ font-weight: normal
78
+ letter-spacing: -1px
79
+
80
+ .date
81
+ font-size: 0.9em
82
+ color: #bbb
83
+ cursor: default
84
+ letter-spacing: 1px
85
+
86
+ .comments
87
+ margin-top: -1em
88
+ a
89
+ color: #6CC7DC
90
+ background: url(/images/dreamy/icon-comment.png) no-repeat 0px 2px
91
+ padding-left: 20px
92
+ padding-right: 2px
93
+ &:hover
94
+ color: #B4C835
95
+
96
+ /* Menu
97
+
98
+ #menu
99
+ ul
100
+ list-style-type: none
101
+ li
102
+ float: left
103
+ a
104
+ padding: 0 15px
105
+ display: block
106
+ color: #ffffff
107
+ margin-right: 2px
108
+ &:hover
109
+ background: url(/images/dreamy/bg-menu-hover.png) no-repeat center center
110
+
111
+ /* Sidebar
112
+
113
+ #sidebar
114
+ ul
115
+ list-style-type: none
116
+ margin-top: 10px
117
+ li a
118
+ display: block
119
+ height: 20px
120
+ line-height: 20px
121
+ color: #222222
122
+ padding-left: 5px
123
+ border-bottom: 1px solid #dddddd
124
+ &:hover
125
+ background: #edebed
126
+ color: #6CC4D8
127
+
128
+ #sidebar-bottom
129
+ height: 20px
130
+ background: url(/images/dreamy/bg-sidebar-bottom.gif) no-repeat top center
131
+
132
+ /* Footer
133
+
134
+ #footer-valid
135
+ float: left
136
+ padding-top: 55px
137
+ padding-left: 20px
138
+ cursor: default
139
+ color: #ffffff
140
+ a
141
+ color: #ffffff
142
+ text-decoration: none
143
+ &:hover
144
+ color: #ffffff
145
+ text-decoration: underline
146
+
147
+ /* Heading's
148
+
149
+ h1
150
+ font-size: 2.5em
151
+ font-weight: normal
152
+ cursor: default
153
+ letter-spacing: 1px
154
+ color: #aaaaaa
155
+ font-style: italic
156
+
157
+ #header h1
158
+ position: relative
159
+ top: 50px
160
+ left: 30px
161
+ /* Feed
162
+
163
+ #feed
164
+ height: 25px
165
+ width: 126px
166
+ background: url(/images/dreamy/bg-feed.gif) no-repeat
167
+ margin: 0 auto
168
+ padding-left: 26px
169
+
170
+ a
171
+ &.feed-button
172
+ display: block
173
+ width: 100px
174
+ height: 25px
175
+ background: url(/images/dreamy/button-feed.png) 0 0 no-repeat
176
+ text-decoration: none
177
+ &:hover.feed-button
178
+ background-position: 0 -25px
179
+
180
+ /* Extra's
181
+
182
+ #ad-top
183
+ width: 480px
184
+ height: 72px
185
+ background: url(/images/dreamy/bg-ad-top.png) no-repeat
186
+ padding: 5px
187
+
188
+ #copyright
189
+ display: none
190
+
191
+ table.no_border
192
+ border-style: none
193
+ border-width: 0
194
+ cell-padding: 0
195
+
@@ -0,0 +1,105 @@
1
+
2
+ div.jQueryMenu
3
+ height: 41px
4
+ background: url(images/menu/main-bg.png) repeat-x
5
+ ul
6
+ margin: 0
7
+ padding: 0
8
+ list-style: none
9
+ float: left
10
+ &.menu
11
+ padding-left: 30px
12
+ li
13
+ position: relative
14
+ z-index: 9
15
+ margin: 0
16
+ padding: 0 5px 0 0
17
+ display: block
18
+ float: left
19
+ &:hover>ul
20
+ left: -2px
21
+ a
22
+ position: relative
23
+ z-index: 10
24
+ height: 41px
25
+ display: block
26
+ float: left
27
+ line-height: 41px
28
+ text-decoration: none
29
+ font: normal 12px Trebuchet MS
30
+ &:hover
31
+ color: #fff
32
+ span
33
+ color: #fff
34
+ li.current a
35
+ span
36
+ display: block
37
+ cursor: pointer
38
+ background-repeat: no-repeat
39
+ background-position: 95% 0
40
+ ul ul a.parent
41
+ span
42
+ background-position: 95% 8px
43
+ background-image: url(images/menu/item-pointer.gif)
44
+ &:hover span
45
+ background-image: url(images/menu/item-pointer-mover.gif)
46
+ a
47
+ padding: 0 10px 0 10px
48
+ line-height: 30px
49
+ color: #e5e5e5
50
+ span
51
+ margin-top: 5px
52
+ li
53
+ background: url(images/menu/main-delimiter.png) 98% 4px no-repeat
54
+ &.last
55
+ background: none
56
+ ul ul
57
+ li
58
+ background: none
59
+ position: absolute
60
+ top: 38px
61
+ left: -999em
62
+ width: 163px
63
+ padding: 5px 0 0 0
64
+ background: rgb(45, 45, 45)
65
+ margin-top: 1px
66
+ a
67
+ padding: 0 0 0 15px
68
+ height: auto
69
+ float: none
70
+ display: block
71
+ line-height: 24px
72
+ color: rgb(169, 169, 169)
73
+ span
74
+ margin-top: 0
75
+ padding-right: 15px
76
+ _padding-right: 20px
77
+ color: rgb(169, 169, 169)
78
+ a:hover span
79
+ color: #fff
80
+ li
81
+ &.last
82
+ background: none
83
+ width: 100%
84
+ ul
85
+ padding: 0
86
+ margin: -38px 0 0 163px !important
87
+ margin-left: 172px
88
+ background: rgb(41, 41, 41)
89
+ ul
90
+ background: rgb(38, 38, 38)
91
+ background: rgb(35, 35, 35)
92
+ li.back
93
+ background: url(images/menu/lava.png) no-repeat right -44px !important
94
+ background-image: url(images/menu/lava.gif)
95
+ width: 13px
96
+ height: 44px
97
+ z-index: 8
98
+ position: absolute
99
+ margin: -1px 0 0 -5px
100
+ .left
101
+ background: url(images/menu/lava.png) no-repeat top left !important
102
+ background-image: url(images/menu/lava.gif)
103
+ height: 44px
104
+ margin-right: 8px
105
+
@@ -0,0 +1,56 @@
1
+ body { background-color: #fff; color: #333; }
2
+
3
+ body, p, ol, ul, td {
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px;
7
+ }
8
+
9
+ pre {
10
+ background-color: #eee;
11
+ padding: 10px;
12
+ font-size: 11px;
13
+ }
14
+
15
+ a { color: #000; }
16
+ a:visited { color: #666; }
17
+ a:hover { color: #fff; background-color:#000; }
18
+
19
+ div.field, div.actions {
20
+ margin-bottom: 10px;
21
+ }
22
+
23
+ #notice {
24
+ color: green;
25
+ }
26
+
27
+ .field_with_errors {
28
+ padding: 2px;
29
+ background-color: red;
30
+ display: table;
31
+ }
32
+
33
+ #error_explanation {
34
+ width: 450px;
35
+ border: 2px solid red;
36
+ padding: 7px;
37
+ padding-bottom: 0;
38
+ margin-bottom: 20px;
39
+ background-color: #f0f0f0;
40
+ }
41
+
42
+ #error_explanation h2 {
43
+ text-align: left;
44
+ font-weight: bold;
45
+ padding: 5px 5px 5px 15px;
46
+ font-size: 12px;
47
+ margin: -7px;
48
+ margin-bottom: 0px;
49
+ background-color: #c00;
50
+ color: #fff;
51
+ }
52
+
53
+ #error_explanation ul li {
54
+ font-size: 12px;
55
+ list-style: square;
56
+ }