wheels 0.0.48 → 0.0.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. data/VERSION +1 -1
  2. data/app/controllers/access_control_entries_controller.rb +4 -4
  3. data/app/controllers/external_links_controller.rb +5 -0
  4. data/app/controllers/feedbacks_controller.rb +10 -0
  5. data/app/controllers/menus_controller.rb +2 -0
  6. data/app/controllers/pages_controller.rb +16 -29
  7. data/app/controllers/sitemaps_controller.rb +135 -0
  8. data/app/helpers/application_helper.rb +4 -3
  9. data/app/helpers/external_links_helper.rb +2 -0
  10. data/app/helpers/feedbacks_helper.rb +2 -0
  11. data/app/helpers/menus_helper.rb +2 -0
  12. data/app/helpers/sitemaps_helper.rb +12 -0
  13. data/app/mailers/feedback_mailer.rb +10 -0
  14. data/app/models/ability.rb +2 -1
  15. data/app/models/access_control_entry.rb +17 -15
  16. data/app/models/external_link.rb +4 -0
  17. data/app/models/feedback.rb +13 -0
  18. data/app/models/image.rb +1 -1
  19. data/app/models/menu.rb +4 -0
  20. data/app/models/page.rb +2 -5
  21. data/app/models/sitemap.rb +153 -0
  22. data/app/models/user.rb +7 -1
  23. data/app/validators/email_validator.rb +22 -0
  24. data/app/views/access_control_entries/_form.html.haml +1 -1
  25. data/app/views/access_control_entries/_index.html.haml +3 -3
  26. data/app/views/access_control_entries/_show.html.haml +1 -1
  27. data/app/views/external_links/_fields_for.html.haml +2 -0
  28. data/app/views/external_links/_form.html.haml +18 -0
  29. data/app/views/external_links/_show.html.haml +7 -0
  30. data/app/views/external_links/edit.html.haml +7 -0
  31. data/app/views/external_links/index.html.haml +23 -0
  32. data/app/views/external_links/new.html.haml +5 -0
  33. data/app/views/external_links/show.html.haml +2 -0
  34. data/app/views/feedback_mailer/submit_feedback.html.haml +22 -0
  35. data/app/views/feedbacks/_form.html.haml +37 -0
  36. data/app/views/feedbacks/index.html.haml +27 -0
  37. data/app/views/feedbacks/new.html.haml +5 -0
  38. data/app/views/feedbacks/show.html.haml +19 -0
  39. data/app/views/layouts/application.html.haml +21 -16
  40. data/app/views/layouts/bare.html.haml +2 -0
  41. data/app/views/loadbehind/_view.js.haml +1 -2
  42. data/app/views/menus/_form.html.haml +13 -0
  43. data/app/views/menus/edit.html.haml +7 -0
  44. data/app/views/menus/index.html.haml +19 -0
  45. data/app/views/menus/new.html.haml +5 -0
  46. data/app/views/menus/show.html.haml +7 -0
  47. data/app/views/pages/_child_pages_links.html.haml +1 -1
  48. data/app/views/pages/_control_panel.html.haml +1 -6
  49. data/app/views/pages/_form.html.haml +2 -2
  50. data/app/views/pages/_form_fields.html.haml +7 -2
  51. data/app/views/pages/_show.html.haml +4 -0
  52. data/app/views/pages/create.js.haml +2 -1
  53. data/app/views/pages/destroy.js.haml +3 -0
  54. data/app/views/pages/edit.js.haml +4 -0
  55. data/app/views/pages/index.html.haml +4 -2
  56. data/app/views/pages/index.js.haml +3 -0
  57. data/app/views/pages/new.js.haml +3 -0
  58. data/app/views/pages/show.html.haml +2 -10
  59. data/app/views/pages/show.js.haml +3 -0
  60. data/app/views/pages/update.js.haml +2 -2
  61. data/app/views/sitemaps/edit.html.haml +12 -0
  62. data/app/views/sitemaps/edit.js.erb +0 -0
  63. data/app/views/sitemaps/index.html.haml +93 -0
  64. data/app/views/sitemaps/index.json.erb +23 -0
  65. data/app/views/sitemaps/new.html.haml +8 -0
  66. data/app/views/sitemaps/new.js.erb +0 -0
  67. data/app/views/users/edit.html.haml +45 -0
  68. data/db/migrate/{add_fields_to_users.rb → 0010_add_fields_to_users.rb} +0 -0
  69. data/db/migrate/{create_blogs.rb → 0020_create_blogs.rb} +0 -0
  70. data/db/migrate/{create_galleries.rb → 0030_create_galleries.rb} +0 -0
  71. data/db/migrate/{create_images.rb → 0040_create_images.rb} +0 -0
  72. data/db/migrate/{create_profiles.rb → 0050_create_profiles.rb} +0 -0
  73. data/db/migrate/{insert_admin_user_and_roles.rb → 0060_insert_admin_user_and_roles.rb} +0 -0
  74. data/db/migrate/{create_pages.rb → 0070_create_pages.rb} +0 -0
  75. data/db/migrate/{create_forums.rb → 0080_create_forums.rb} +0 -0
  76. data/db/migrate/{create_discussions.rb → 0090_create_discussions.rb} +0 -0
  77. data/db/migrate/{create_forum_messages.rb → 0100_create_forum_messages.rb} +0 -0
  78. data/db/migrate/{create_access_control_entries.rb → 0110_create_access_control_entries.rb} +3 -3
  79. data/db/migrate/{create_attachments.rb → 0120_create_attachments.rb} +0 -4
  80. data/db/migrate/{create_roles.rb → 0130_create_roles.rb} +0 -0
  81. data/db/migrate/0140_create_feedbacks.rb +20 -0
  82. data/db/migrate/0150_create_external_links.rb +14 -0
  83. data/db/migrate/0160_create_sitemaps.rb +17 -0
  84. data/db/migrate/0170_create_menus.rb +14 -0
  85. data/lib/development_mail_interceptor.rb +7 -0
  86. data/lib/generators/wheels/recipes/wheels.rb +18 -12
  87. data/lib/wheels/base.rb +7 -0
  88. data/lib/wheels/routes.rb +8 -3
  89. data/lib/wheels.rb +2 -0
  90. data/public/javascripts/jquery-validate/additional-methods.js +259 -0
  91. data/public/javascripts/jquery-validate/changelog.txt +239 -0
  92. data/public/javascripts/jquery-validate/jquery.validate.js +1146 -0
  93. data/public/javascripts/jquery-validate/jquery.validate.min.js +16 -0
  94. data/public/javascripts/jquery-validate/jquery.validate.pack.js +15 -0
  95. data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +6240 -0
  96. data/public/javascripts/jquery-validate/lib/jquery.form.js +660 -0
  97. data/public/javascripts/jquery-validate/lib/jquery.js +4376 -0
  98. data/public/javascripts/jquery-validate/lib/jquery.metadata.js +122 -0
  99. data/public/javascripts/jquery-validate/localization/messages_ar.js +24 -0
  100. data/public/javascripts/jquery-validate/localization/messages_bg.js +23 -0
  101. data/public/javascripts/jquery-validate/localization/messages_cn.js +23 -0
  102. data/public/javascripts/jquery-validate/localization/messages_cs.js +23 -0
  103. data/public/javascripts/jquery-validate/localization/messages_da.js +20 -0
  104. data/public/javascripts/jquery-validate/localization/messages_de.js +20 -0
  105. data/public/javascripts/jquery-validate/localization/messages_el.js +24 -0
  106. data/public/javascripts/jquery-validate/localization/messages_es.js +23 -0
  107. data/public/javascripts/jquery-validate/localization/messages_fa.js +23 -0
  108. data/public/javascripts/jquery-validate/localization/messages_fi.js +21 -0
  109. data/public/javascripts/jquery-validate/localization/messages_fr.js +23 -0
  110. data/public/javascripts/jquery-validate/localization/messages_he.js +23 -0
  111. data/public/javascripts/jquery-validate/localization/messages_hu.js +20 -0
  112. data/public/javascripts/jquery-validate/localization/messages_it.js +23 -0
  113. data/public/javascripts/jquery-validate/localization/messages_kk.js +23 -0
  114. data/public/javascripts/jquery-validate/localization/messages_lt.js +23 -0
  115. data/public/javascripts/jquery-validate/localization/messages_lv.js +23 -0
  116. data/public/javascripts/jquery-validate/localization/messages_nl.js +23 -0
  117. data/public/javascripts/jquery-validate/localization/messages_no.js +23 -0
  118. data/public/javascripts/jquery-validate/localization/messages_pl.js +23 -0
  119. data/public/javascripts/jquery-validate/localization/messages_ptbr.js +23 -0
  120. data/public/javascripts/jquery-validate/localization/messages_ptpt.js +23 -0
  121. data/public/javascripts/jquery-validate/localization/messages_ro.js +23 -0
  122. data/public/javascripts/jquery-validate/localization/messages_ru.js +23 -0
  123. data/public/javascripts/jquery-validate/localization/messages_se.js +21 -0
  124. data/public/javascripts/jquery-validate/localization/messages_sk.js +20 -0
  125. data/public/javascripts/jquery-validate/localization/messages_tr.js +23 -0
  126. data/public/javascripts/jquery-validate/localization/messages_tw.js +23 -0
  127. data/public/javascripts/jquery-validate/localization/messages_ua.js +23 -0
  128. data/public/javascripts/jquery-validate/localization/methods_de.js +12 -0
  129. data/public/javascripts/jquery-validate/localization/methods_nl.js +9 -0
  130. data/public/javascripts/jquery-validate/localization/methods_pt.js +9 -0
  131. data/public/javascripts/jquery-validate/todo +172 -0
  132. data/public/javascripts/jquery.cookie.js +96 -0
  133. data/public/javascripts/jquery.filedrop.js +253 -0
  134. data/public/javascripts/jquery.hotkeys.js +99 -0
  135. data/public/javascripts/jquery.js +6240 -0
  136. data/public/javascripts/jquery.jstree.js +3510 -0
  137. data/public/javascripts/jquery.uploadify.js +26 -0
  138. data/public/javascripts/jquery.validate.js +1147 -0
  139. data/public/javascripts/sitemap_jstree.js +329 -0
  140. data/public/javascripts/swfobject.js +4 -0
  141. data/public/jstree/_demo/_dump.sql +20 -0
  142. data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
  143. data/public/jstree/_demo/_inc/class._database.php +146 -0
  144. data/public/jstree/_demo/_inc/class._database_i.php +152 -0
  145. data/public/jstree/_demo/_inc/class.tree.php +602 -0
  146. data/public/jstree/_demo/_install.txt +6 -0
  147. data/public/jstree/_demo/config.php +14 -0
  148. data/public/jstree/_demo/index.html +262 -0
  149. data/public/jstree/_demo/server.php +69 -0
  150. data/public/jstree/_docs/!style.css +37 -0
  151. data/public/jstree/_docs/_drive.png +0 -0
  152. data/public/jstree/_docs/_html_data.html +2 -0
  153. data/public/jstree/_docs/_json_data.json +4 -0
  154. data/public/jstree/_docs/_search_data.json +6 -0
  155. data/public/jstree/_docs/_search_result.json +1 -0
  156. data/public/jstree/_docs/_xml_flat.xml +12 -0
  157. data/public/jstree/_docs/_xml_nest.xml +18 -0
  158. data/public/jstree/_docs/checkbox.html +148 -0
  159. data/public/jstree/_docs/contextmenu.html +120 -0
  160. data/public/jstree/_docs/cookies.html +96 -0
  161. data/public/jstree/_docs/core.html +622 -0
  162. data/public/jstree/_docs/crrm.html +315 -0
  163. data/public/jstree/_docs/dnd.html +197 -0
  164. data/public/jstree/_docs/hotkeys.html +81 -0
  165. data/public/jstree/_docs/html_data.html +174 -0
  166. data/public/jstree/_docs/index.html +75 -0
  167. data/public/jstree/_docs/json_data.html +240 -0
  168. data/public/jstree/_docs/languages.html +138 -0
  169. data/public/jstree/_docs/search.html +114 -0
  170. data/public/jstree/_docs/sort.html +84 -0
  171. data/public/jstree/_docs/syntax/!script.js +2232 -0
  172. data/public/jstree/_docs/syntax/!style.css +511 -0
  173. data/public/jstree/_docs/syntax/clipboard.swf +0 -0
  174. data/public/jstree/_docs/syntax/help.png +0 -0
  175. data/public/jstree/_docs/syntax/magnifier.png +0 -0
  176. data/public/jstree/_docs/syntax/page_white_code.png +0 -0
  177. data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
  178. data/public/jstree/_docs/syntax/printer.png +0 -0
  179. data/public/jstree/_docs/syntax/wrapping.png +0 -0
  180. data/public/jstree/_docs/themeroller.html +98 -0
  181. data/public/jstree/_docs/themes.html +126 -0
  182. data/public/jstree/_docs/types.html +173 -0
  183. data/public/jstree/_docs/ui.html +188 -0
  184. data/public/jstree/_docs/unique.html +70 -0
  185. data/public/jstree/_docs/xml_data.html +214 -0
  186. data/public/jstree/_lib/jquery.cookie.js +96 -0
  187. data/public/jstree/_lib/jquery.hotkeys.js +99 -0
  188. data/public/jstree/_lib/jquery.js +6240 -0
  189. data/public/jstree/jquery.jstree.js +3510 -0
  190. data/public/jstree/jstree.html +237 -0
  191. data/public/jstree/themes/apple/bg.jpg +0 -0
  192. data/public/jstree/themes/apple/d.png +0 -0
  193. data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
  194. data/public/jstree/themes/apple/style.css +60 -0
  195. data/public/jstree/themes/apple/throbber.gif +0 -0
  196. data/public/jstree/themes/classic/d.png +0 -0
  197. data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
  198. data/public/jstree/themes/classic/style.css +59 -0
  199. data/public/jstree/themes/classic/throbber.gif +0 -0
  200. data/public/jstree/themes/default/d.gif +0 -0
  201. data/public/jstree/themes/default/d.png +0 -0
  202. data/public/jstree/themes/default/style.css +73 -0
  203. data/public/jstree/themes/default/throbber.gif +0 -0
  204. data/public/jstree/themes/default-rtl/d.gif +0 -0
  205. data/public/jstree/themes/default-rtl/d.png +0 -0
  206. data/public/jstree/themes/default-rtl/dots.gif +0 -0
  207. data/public/jstree/themes/default-rtl/style.css +83 -0
  208. data/public/jstree/themes/default-rtl/throbber.gif +0 -0
  209. data/public/stylesheets/sass/dreamy.sass +21 -56
  210. data/public/stylesheets/sass/menu.sass +43 -9
  211. data/public/stylesheets/sass/uploadify.sass +52 -0
  212. data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  213. data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +549 -0
  214. data/wheels.gemspec +187 -15
  215. metadata +188 -16
@@ -26,7 +26,7 @@ p
26
26
 
27
27
  a
28
28
  text-decoration: none
29
- color: #B4C835
29
+ color: #1737c0
30
30
  &:hover
31
31
  text-decoration: none
32
32
  color: #6CC7DC
@@ -35,7 +35,7 @@ a
35
35
 
36
36
  #wrapper
37
37
  margin: 0 auto
38
- width: 700px
38
+ width: 897px
39
39
  background: #ffffff
40
40
  font-size: 1.20em
41
41
 
@@ -43,27 +43,16 @@ a
43
43
  height: 140px
44
44
  background: url(/images/dreamy/bg-header.jpg) no-repeat
45
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
46
 
58
47
  #content
59
48
  float: left
60
- width: 500px
49
+ width: 700px
61
50
  min-height: 400px
62
51
 
63
52
  #footer
64
53
  clear: both
65
54
  height: 100px
66
- background: url(/images/dreamy/bg-footer.jpg) no-repeat
55
+ background-color: #0047e5
67
56
 
68
57
  /* Entries
69
58
 
@@ -93,44 +82,6 @@ a
93
82
  &:hover
94
83
  color: #B4C835
95
84
 
96
- /* Menu
97
-
98
- #menu
99
- ul
100
- list-style-type: none
101
- li
102
- float: left
103
- div
104
- display: inline
105
- a
106
- padding: 0 15px
107
- display: block
108
- color: #ffffff
109
- margin-right: 2px
110
- &:hover
111
- background: url(/images/dreamy/bg-menu-hover.png) no-repeat center center
112
-
113
- /* Sidebar
114
-
115
- #sidebar
116
- ul
117
- list-style-type: none
118
- margin-top: 10px
119
- li a
120
- display: block
121
- height: 20px
122
- line-height: 20px
123
- color: #222222
124
- padding-left: 5px
125
- border-bottom: 1px solid #dddddd
126
- &:hover
127
- background: #edebed
128
- color: #6CC4D8
129
-
130
- #sidebar-bottom
131
- height: 20px
132
- background: url(/images/dreamy/bg-sidebar-bottom.gif) no-repeat top center
133
-
134
85
  /* Footer
135
86
 
136
87
  #footer-valid
@@ -156,6 +107,23 @@ h1
156
107
  color: #aaaaaa
157
108
  font-style: italic
158
109
 
110
+ h2
111
+ font-weight: normal
112
+ cursor: default
113
+ letter-spacing: 1px
114
+ color: #aaaaaa
115
+ font-style: italic
116
+ h3
117
+ font-weight: normal
118
+ cursor: default
119
+ letter-spacing: 1px
120
+ color: #aaaaaa
121
+ font-style: italic
122
+
123
+ .notice
124
+ @extend h3
125
+
126
+
159
127
  #header h1
160
128
  position: relative
161
129
  top: 50px
@@ -195,6 +163,3 @@ table.no_border
195
163
  border-width: 0
196
164
  cell-padding: 0
197
165
 
198
- .page_content p
199
- text-indent: 25px
200
-
@@ -1,7 +1,29 @@
1
+ /**
2
+ *********************************************
3
+ * Prototype of styles for horizontal CSS-menu
4
+ * @data 30.06.2009
5
+ *********************************************
6
+ * (X)HTML-scheme:
7
+ * <div id="menu">
8
+ * <ul class="menu">
9
+ * <li><a href="#" class="parent"><span>level 1</span></a>
10
+ * <ul>
11
+ * <li><a href="#" class="parent"><span>level 2</span></a>
12
+ * <ul><li><a href="#"><span>level 3</span></a></li></ul>
13
+ * </li>
14
+ * </ul>
15
+ * </li>
16
+ * <li class="last"><a href="#"><span>level 1</span></a></li>
17
+ * </ul>
18
+ * </div>
19
+ *********************************************
1
20
 
2
- div.jQueryMenu
21
+ /* menu::base
22
+
23
+
24
+ div#menu
3
25
  height: 41px
4
- background: url(images/menu/main-bg.png) repeat-x
26
+ background: url(/images/menu/main-bg.png) repeat-x
5
27
  ul
6
28
  margin: 0
7
29
  padding: 0
@@ -40,9 +62,9 @@ div.jQueryMenu
40
62
  ul ul a.parent
41
63
  span
42
64
  background-position: 95% 8px
43
- background-image: url(images/menu/item-pointer.gif)
65
+ background-image: url(/images/menu/item-pointer.gif)
44
66
  &:hover span
45
- background-image: url(images/menu/item-pointer-mover.gif)
67
+ background-image: url(/images/menu/item-pointer-mover.gif)
46
68
  a
47
69
  padding: 0 10px 0 10px
48
70
  line-height: 30px
@@ -50,7 +72,7 @@ div.jQueryMenu
50
72
  span
51
73
  margin-top: 5px
52
74
  li
53
- background: url(images/menu/main-delimiter.png) 98% 4px no-repeat
75
+ background: url(/images/menu/main-delimiter.png) 98% 4px no-repeat
54
76
  &.last
55
77
  background: none
56
78
  ul ul
@@ -90,16 +112,28 @@ div.jQueryMenu
90
112
  background: rgb(38, 38, 38)
91
113
  background: rgb(35, 35, 35)
92
114
  li.back
93
- background: url(images/menu/lava.png) no-repeat right -44px !important
94
- background-image: url(images/menu/lava.gif)
115
+ background: url(/images/menu/lava.png) no-repeat right -44px !important
116
+ background-image: url(/images/menu/lava.gif)
95
117
  width: 13px
96
118
  height: 44px
97
119
  z-index: 8
98
120
  position: absolute
99
121
  margin: -1px 0 0 -5px
100
122
  .left
101
- background: url(images/menu/lava.png) no-repeat top left !important
102
- background-image: url(images/menu/lava.gif)
123
+ background: url(/images/menu/lava.png) no-repeat top left !important
124
+ background-image: url(/images/menu/lava.gif)
103
125
  height: 44px
104
126
  margin-right: 8px
105
127
 
128
+ /* menu::level1
129
+
130
+ /**@replace#1
131
+
132
+ /* menu::level2
133
+
134
+ /* menu::level3
135
+
136
+ /* colors
137
+
138
+ /* lava lamp
139
+
@@ -0,0 +1,52 @@
1
+ /*
2
+ *Uploadify v2.1.0
3
+ *Release Date: August 24, 2009
4
+ *
5
+ *Copyright (c) 2009 Ronnie Garcia, Travis Nickels
6
+ *
7
+ *Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ *of this software and associated documentation files (the "Software"), to deal
9
+ *in the Software without restriction, including without limitation the rights
10
+ *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ *copies of the Software, and to permit persons to whom the Software is
12
+ *furnished to do so, subject to the following conditions:
13
+ *
14
+ *The above copyright notice and this permission notice shall be included in
15
+ *all copies or substantial portions of the Software.
16
+ *
17
+ *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ *THE SOFTWARE.
24
+
25
+ .uploadifyQueueItem
26
+ font: 11px Verdana, Geneva, sans-serif
27
+ border: 2px solid #E5E5E5
28
+ background-color: #F5F5F5
29
+ margin-top: 5px
30
+ padding: 10px
31
+ width: 350px
32
+
33
+ .uploadifyError
34
+ border: 2px solid #FBCBBC !important
35
+ background-color: #FDE5DD !important
36
+
37
+ .uploadifyQueueItem .cancel
38
+ float: right
39
+
40
+ .uploadifyProgress
41
+ background-color: #FFFFFF
42
+ border-top: 1px solid #808080
43
+ border-left: 1px solid #808080
44
+ border-right: 1px solid #C5C5C5
45
+ border-bottom: 1px solid #C5C5C5
46
+ margin-top: 10px
47
+ width: 100%
48
+
49
+ .uploadifyProgressBar
50
+ background-color: #0099FF
51
+ width: 1px
52
+ height: 3px