wheels 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. data/README +2 -0
  2. data/Rakefile +22 -22
  3. data/lib/{generators/core_extensions.rb → core_extensions.rb} +2 -2
  4. data/lib/generators/{recipes → wheels/recipes}/cancan.rb +0 -0
  5. data/lib/generators/{recipes → wheels/recipes}/cucumber.rb +0 -0
  6. data/lib/generators/{recipes → wheels/recipes}/default.rb +0 -0
  7. data/lib/generators/{recipes → wheels/recipes}/design.rb +0 -0
  8. data/lib/generators/{recipes → wheels/recipes}/devise.rb +0 -0
  9. data/lib/generators/{recipes → wheels/recipes}/factory_girl.rb +0 -0
  10. data/lib/generators/{recipes → wheels/recipes}/haml.rb +0 -0
  11. data/lib/generators/{recipes → wheels/recipes}/jquery.rb +0 -0
  12. data/lib/generators/{recipes → wheels/recipes}/mongoid.rb +0 -0
  13. data/lib/generators/{recipes → wheels/recipes}/postgresql.rb +0 -0
  14. data/lib/generators/wheels/recipes/public.rb +9 -0
  15. data/lib/generators/{recipes → wheels/recipes}/recipes.rb +0 -0
  16. data/lib/generators/{recipes → wheels/recipes}/remarkable.rb +0 -0
  17. data/lib/generators/{recipes → wheels/recipes}/rspec.rb +0 -0
  18. data/lib/generators/{recipes → wheels/recipes}/wheels.rb +0 -0
  19. data/lib/generators/{snippets → wheels/snippets}/cucumber/database_config +0 -0
  20. data/lib/generators/{templates → wheels/templates}/cancan/ability.rb +0 -0
  21. data/lib/generators/{templates → wheels/templates}/database/postgresql.yml +0 -0
  22. data/lib/generators/{templates → wheels/templates}/git/gitignore +0 -0
  23. data/lib/generators/{templates → wheels/templates}/haml/app/views/layouts/application.html.haml +0 -0
  24. data/lib/generators/{templates → wheels/templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
  25. data/lib/generators/{templates → wheels/templates}/mongoid/features/support/hooks.rb +0 -0
  26. data/lib/generators/wheels/wheels_generator.rb +0 -2
  27. data/lib/generators/wheels_update/core_extensions.3.rb +64 -0
  28. data/lib/generators/{recipes/wheels_update.rb → wheels_update/recipes/wheels.rb} +0 -0
  29. data/lib/generators/wheels_update/wheels_update_generator.rb +1 -1
  30. data/lib/wheels/base.rb +7 -0
  31. data/lib/wheels/routes.rb +2 -13
  32. data/test/functional/access_control_entries_controller_test.rb +49 -0
  33. data/test/functional/app_configs_controller_test.rb +49 -0
  34. data/test/functional/discussions_controller_test.rb +49 -0
  35. data/test/functional/external_links_controller_test.rb +49 -0
  36. data/test/functional/feedback_mailer_test.rb +8 -0
  37. data/test/functional/feedbacks_controller_test.rb +49 -0
  38. data/test/functional/forums_controller_test.rb +49 -0
  39. data/test/functional/layouts_controller_test.rb +49 -0
  40. data/test/functional/member_pages_controller_test.rb +49 -0
  41. data/test/functional/members_controller_test.rb +8 -0
  42. data/test/functional/menus_controller_test.rb +49 -0
  43. data/test/functional/pages_controller_test.rb +49 -0
  44. data/test/functional/product_revisions_controller_test.rb +49 -0
  45. data/test/performance/browsing_test.rb +9 -0
  46. data/test/test_helper.rb +13 -0
  47. data/test/unit/access_control_entry_test.rb +8 -0
  48. data/test/unit/app_config_test.rb +8 -0
  49. data/test/unit/attachment_test.rb +8 -0
  50. data/test/unit/discussion_test.rb +8 -0
  51. data/test/unit/external_link_test.rb +8 -0
  52. data/test/unit/feedback_test.rb +8 -0
  53. data/test/unit/forum_message_test.rb +8 -0
  54. data/test/unit/forum_test.rb +8 -0
  55. data/test/unit/helpers/access_control_entries_helper_test.rb +4 -0
  56. data/test/unit/helpers/app_configs_helper_test.rb +4 -0
  57. data/test/unit/helpers/discussions_helper_test.rb +4 -0
  58. data/test/unit/helpers/external_links_helper_test.rb +4 -0
  59. data/test/unit/helpers/feedbacks_helper_test.rb +4 -0
  60. data/test/unit/helpers/forums_helper_test.rb +4 -0
  61. data/test/unit/helpers/layouts_helper_test.rb +4 -0
  62. data/test/unit/helpers/member_pages_helper_test.rb +4 -0
  63. data/test/unit/helpers/members_helper_test.rb +4 -0
  64. data/test/unit/helpers/menus_helper_test.rb +4 -0
  65. data/test/unit/helpers/pages_helper_test.rb +4 -0
  66. data/test/unit/helpers/product_revisions_helper_test.rb +4 -0
  67. data/test/unit/layout_test.rb +8 -0
  68. data/test/unit/member_page_test.rb +8 -0
  69. data/test/unit/menu_test.rb +8 -0
  70. data/test/unit/page_revision_test.rb +8 -0
  71. data/test/unit/page_test.rb +8 -0
  72. data/test/unit/product_revision_test.rb +8 -0
  73. data/test/unit/settings_test.rb +8 -0
  74. data/test/unit/sitemap_test.rb +8 -0
  75. data/test/unit/user_test.rb +8 -0
  76. data/wheels.gemspec +122 -252
  77. metadata +124 -266
  78. data/LICENSE +0 -20
  79. data/README.rdoc +0 -17
  80. data/VERSION +0 -1
  81. data/app/controllers/access_control_entries_controller.rb +0 -20
  82. data/app/controllers/app_configs_controller.rb +0 -17
  83. data/app/controllers/application_controller.rb +0 -39
  84. data/app/controllers/attachments_controller.rb +0 -16
  85. data/app/controllers/blogs_controller.rb +0 -39
  86. data/app/controllers/discussions_controller.rb +0 -10
  87. data/app/controllers/external_links_controller.rb +0 -5
  88. data/app/controllers/feedbacks_controller.rb +0 -10
  89. data/app/controllers/forum_messages_controller.rb +0 -13
  90. data/app/controllers/forums_controller.rb +0 -2
  91. data/app/controllers/galleries_controller.rb +0 -60
  92. data/app/controllers/images_controller.rb +0 -30
  93. data/app/controllers/menus_controller.rb +0 -2
  94. data/app/controllers/pages_controller.rb +0 -71
  95. data/app/controllers/profiles_controller.rb +0 -16
  96. data/app/controllers/sitemaps_controller.rb +0 -135
  97. data/app/controllers/users_controller.rb +0 -28
  98. data/app/helpers/access_control_entries_helper.rb +0 -2
  99. data/app/helpers/app_configs_helper.rb +0 -2
  100. data/app/helpers/application_helper.rb +0 -36
  101. data/app/helpers/blogs_helper.rb +0 -10
  102. data/app/helpers/discussions_helper.rb +0 -2
  103. data/app/helpers/external_links_helper.rb +0 -2
  104. data/app/helpers/feedbacks_helper.rb +0 -2
  105. data/app/helpers/forums_helper.rb +0 -2
  106. data/app/helpers/menus_helper.rb +0 -2
  107. data/app/helpers/pages_helper.rb +0 -192
  108. data/app/helpers/sitemaps_helper.rb +0 -12
  109. data/app/mailers/feedback_mailer.rb +0 -10
  110. data/app/models/ability.rb +0 -43
  111. data/app/models/access_control_entry.rb +0 -100
  112. data/app/models/app_config.rb +0 -26
  113. data/app/models/attachment.rb +0 -10
  114. data/app/models/blog.rb +0 -10
  115. data/app/models/discussion.rb +0 -19
  116. data/app/models/external_link.rb +0 -4
  117. data/app/models/feedback.rb +0 -11
  118. data/app/models/forum.rb +0 -4
  119. data/app/models/forum_message.rb +0 -5
  120. data/app/models/gallery.rb +0 -5
  121. data/app/models/image.rb +0 -10
  122. data/app/models/menu.rb +0 -4
  123. data/app/models/page.rb +0 -7
  124. data/app/models/page_revision.rb +0 -2
  125. data/app/models/profile.rb +0 -12
  126. data/app/models/role.rb +0 -29
  127. data/app/models/s3_provider.rb +0 -84
  128. data/app/models/sitemap.rb +0 -171
  129. data/app/models/tagging.rb +0 -4
  130. data/app/models/user.rb +0 -69
  131. data/app/validators/email_validator.rb +0 -22
  132. data/app/views/access_control_entries/_form.html.haml +0 -33
  133. data/app/views/access_control_entries/_index.html.haml +0 -46
  134. data/app/views/access_control_entries/_show.html.haml +0 -12
  135. data/app/views/access_control_entries/create.js.haml +0 -3
  136. data/app/views/access_control_entries/destroy.js.haml +0 -3
  137. data/app/views/access_control_entries/edit.html.haml +0 -7
  138. data/app/views/access_control_entries/edit.js.haml +0 -3
  139. data/app/views/access_control_entries/index.html.haml +0 -2
  140. data/app/views/access_control_entries/index.js.haml +0 -3
  141. data/app/views/access_control_entries/new.html.haml +0 -5
  142. data/app/views/access_control_entries/new.js.haml +0 -3
  143. data/app/views/access_control_entries/show.html.haml +0 -2
  144. data/app/views/access_control_entries/show.js.haml +0 -4
  145. data/app/views/access_control_entries/update.js.haml +0 -3
  146. data/app/views/app_configs/_form.html.haml +0 -11
  147. data/app/views/app_configs/_index.html.haml +0 -6
  148. data/app/views/app_configs/_show.html.haml +0 -4
  149. data/app/views/app_configs/create.js.haml +0 -3
  150. data/app/views/app_configs/css.css.haml +0 -2
  151. data/app/views/app_configs/destroy.js.haml +0 -3
  152. data/app/views/app_configs/edit.html.haml +0 -2
  153. data/app/views/app_configs/edit.js.haml +0 -3
  154. data/app/views/app_configs/index.html.haml +0 -2
  155. data/app/views/app_configs/index.js.haml +0 -3
  156. data/app/views/app_configs/new.html.haml +0 -2
  157. data/app/views/app_configs/new.js.haml +0 -3
  158. data/app/views/app_configs/show.html.haml +0 -2
  159. data/app/views/app_configs/show.js.haml +0 -3
  160. data/app/views/app_configs/update.js.haml +0 -3
  161. data/app/views/attachments/_form.html.haml +0 -26
  162. data/app/views/attachments/_index.html.haml +0 -9
  163. data/app/views/attachments/_show.html.haml +0 -6
  164. data/app/views/attachments/_uploadify.html.erb +0 -12
  165. data/app/views/attachments/create.js.haml +0 -3
  166. data/app/views/attachments/destroy.js.haml +0 -3
  167. data/app/views/attachments/edit.js.haml +0 -3
  168. data/app/views/attachments/index.html.haml +0 -2
  169. data/app/views/attachments/index.js.haml +0 -3
  170. data/app/views/attachments/new.html.haml +0 -3
  171. data/app/views/attachments/new.js.haml +0 -3
  172. data/app/views/attachments/show.html.haml +0 -2
  173. data/app/views/attachments/show.js.haml +0 -3
  174. data/app/views/attachments/update.js.haml +0 -3
  175. data/app/views/blogs/_form.html.haml +0 -22
  176. data/app/views/blogs/edit.html.haml +0 -8
  177. data/app/views/blogs/index.html.haml +0 -21
  178. data/app/views/blogs/index.xml.builder +0 -27
  179. data/app/views/blogs/new.html.haml +0 -6
  180. data/app/views/blogs/show.html.haml +0 -25
  181. data/app/views/discussions/_form.html.haml +0 -16
  182. data/app/views/discussions/edit.html.haml +0 -7
  183. data/app/views/discussions/index.html.haml +0 -10
  184. data/app/views/discussions/new.html.haml +0 -25
  185. data/app/views/discussions/show.html.haml +0 -16
  186. data/app/views/external_links/_fields_for.html.haml +0 -2
  187. data/app/views/external_links/_form.html.haml +0 -18
  188. data/app/views/external_links/_show.html.haml +0 -7
  189. data/app/views/external_links/create.js.haml +0 -3
  190. data/app/views/external_links/destroy.js.haml +0 -3
  191. data/app/views/external_links/edit.html.haml +0 -7
  192. data/app/views/external_links/edit.js.haml +0 -3
  193. data/app/views/external_links/index.html.haml +0 -23
  194. data/app/views/external_links/index.js.haml +0 -3
  195. data/app/views/external_links/new.html.haml +0 -5
  196. data/app/views/external_links/new.js.haml +0 -3
  197. data/app/views/external_links/show.html.haml +0 -2
  198. data/app/views/external_links/show.js.haml +0 -3
  199. data/app/views/external_links/update.js.haml +0 -3
  200. data/app/views/feedback_mailer/submit_feedback.html.haml +0 -22
  201. data/app/views/feedbacks/_form.html.haml +0 -37
  202. data/app/views/feedbacks/index.html.haml +0 -27
  203. data/app/views/feedbacks/new.html.haml +0 -6
  204. data/app/views/feedbacks/show.html.haml +0 -19
  205. data/app/views/forum_messages/_form.html.haml +0 -6
  206. data/app/views/forum_messages/index.html.haml +0 -11
  207. data/app/views/forum_messages/new.html.haml +0 -5
  208. data/app/views/forums/_form.html.haml +0 -13
  209. data/app/views/forums/edit.html.haml +0 -7
  210. data/app/views/forums/index.html.haml +0 -23
  211. data/app/views/forums/new.html.haml +0 -5
  212. data/app/views/forums/show.html.haml +0 -20
  213. data/app/views/galleries/_form.html.haml +0 -30
  214. data/app/views/galleries/_show.html.haml +0 -21
  215. data/app/views/galleries/edit.html.haml +0 -7
  216. data/app/views/galleries/index.html.haml +0 -15
  217. data/app/views/galleries/new.html.haml +0 -5
  218. data/app/views/galleries/show.html.haml +0 -4
  219. data/app/views/images/_form.html.haml +0 -10
  220. data/app/views/images/create.js.haml +0 -3
  221. data/app/views/images/destroy.js.haml +0 -3
  222. data/app/views/images/edit.html.haml +0 -7
  223. data/app/views/images/edit.js.haml +0 -3
  224. data/app/views/images/index.html.haml +0 -17
  225. data/app/views/images/index.js.haml +0 -3
  226. data/app/views/images/new.html.haml +0 -5
  227. data/app/views/images/new.js.haml +0 -3
  228. data/app/views/images/show.html.haml +0 -5
  229. data/app/views/images/show.js.haml +0 -3
  230. data/app/views/images/update.js.haml +0 -3
  231. data/app/views/layouts/application.html.haml +0 -59
  232. data/app/views/layouts/bare.html.haml +0 -2
  233. data/app/views/layouts/image_dialog.html.haml +0 -18
  234. data/app/views/loadbehind/_destroy.js.haml +0 -3
  235. data/app/views/loadbehind/_edit.js.haml +0 -4
  236. data/app/views/loadbehind/_errors.html.haml +0 -5
  237. data/app/views/loadbehind/_growl_template.html.haml +0 -65
  238. data/app/views/loadbehind/_show_box.html.haml +0 -9
  239. data/app/views/loadbehind/_view.js.haml +0 -4
  240. data/app/views/loadbehind/growl.js.haml +0 -4
  241. data/app/views/loadbehind/index.js.haml +0 -4
  242. data/app/views/menus/_form.html.haml +0 -13
  243. data/app/views/menus/edit.html.haml +0 -7
  244. data/app/views/menus/index.html.haml +0 -19
  245. data/app/views/menus/new.html.haml +0 -5
  246. data/app/views/menus/show.html.haml +0 -7
  247. data/app/views/pages/_child_pages_links.html.haml +0 -5
  248. data/app/views/pages/_control_panel.html.haml +0 -15
  249. data/app/views/pages/_form.html.haml +0 -27
  250. data/app/views/pages/_form_fields.html.haml +0 -23
  251. data/app/views/pages/_show.html.haml +0 -4
  252. data/app/views/pages/_show_attachment.html.haml +0 -6
  253. data/app/views/pages/_show_small.html.haml +0 -2
  254. data/app/views/pages/create.js.haml +0 -3
  255. data/app/views/pages/destroy.js.haml +0 -3
  256. data/app/views/pages/edit.html.haml +0 -16
  257. data/app/views/pages/edit.js.haml +0 -4
  258. data/app/views/pages/index.html.haml +0 -19
  259. data/app/views/pages/index.js.haml +0 -3
  260. data/app/views/pages/new.html.haml +0 -5
  261. data/app/views/pages/new.js.haml +0 -3
  262. data/app/views/pages/show.html.haml +0 -20
  263. data/app/views/pages/show.js.haml +0 -3
  264. data/app/views/pages/update.js.haml +0 -3
  265. data/app/views/profiles/_form.html.haml +0 -26
  266. data/app/views/profiles/edit.html.haml +0 -7
  267. data/app/views/profiles/index.html.haml +0 -25
  268. data/app/views/profiles/new.html.haml +0 -5
  269. data/app/views/profiles/show.html.haml +0 -21
  270. data/app/views/sitemaps/edit.html.haml +0 -12
  271. data/app/views/sitemaps/edit.js.erb +0 -0
  272. data/app/views/sitemaps/index.html.haml +0 -83
  273. data/app/views/sitemaps/index.json.erb +0 -23
  274. data/app/views/sitemaps/new.html.haml +0 -8
  275. data/app/views/sitemaps/new.js.erb +0 -0
  276. data/app/views/users/edit.html.haml +0 -45
  277. data/app/views/users/index.html.haml +0 -19
  278. data/config/amazon_s3.yml +0 -15
  279. data/db/migrate/0000_devise_create_users.rb +0 -26
  280. data/db/migrate/0010_add_fields_to_users.rb +0 -28
  281. data/db/migrate/0020_create_blogs.rb +0 -16
  282. data/db/migrate/0030_create_galleries.rb +0 -15
  283. data/db/migrate/0040_create_images.rb +0 -17
  284. data/db/migrate/0050_create_profiles.rb +0 -24
  285. data/db/migrate/0060_insert_admin_user_and_roles.rb +0 -24
  286. data/db/migrate/0070_create_pages.rb +0 -16
  287. data/db/migrate/0080_create_forums.rb +0 -13
  288. data/db/migrate/0090_create_discussions.rb +0 -14
  289. data/db/migrate/0100_create_forum_messages.rb +0 -15
  290. data/db/migrate/0110_create_access_control_entries.rb +0 -23
  291. data/db/migrate/0120_create_attachments.rb +0 -17
  292. data/db/migrate/0130_create_roles.rb +0 -13
  293. data/db/migrate/0140_create_feedbacks.rb +0 -20
  294. data/db/migrate/0150_create_external_links.rb +0 -14
  295. data/db/migrate/0160_create_sitemaps.rb +0 -17
  296. data/db/migrate/0170_create_menus.rb +0 -14
  297. data/db/migrate/0180_acts_as_taggable_on_migration.rb +0 -28
  298. data/init.rb +0 -2
@@ -1,22 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %meta{:content=>"text/html; charset=UTF-8", "http-equiv"=>"Content-Type"}
5
- %body
6
- %h1 A user submitted feedback to cagym.com.
7
- %p
8
- %b Name:
9
- = @feedback.name
10
- %p
11
- %b Phone:
12
- = @feedback.phone
13
- %p
14
- %b Email:
15
- = @feedback.email
16
- %p
17
- %b Message:
18
- = @feedback.message
19
- %p
20
- %b Want response:
21
- = @feedback.want_response ? "Yes" : "No"
22
-
@@ -1,37 +0,0 @@
1
- = content_for :head do
2
- = javascript_include_tag 'jquery-validate/jquery.validate.pack'
3
-
4
- :javascript
5
- $(function(){
6
- $('form').validate();
7
- });
8
-
9
- = form_for @feedback do |f|
10
- -if @feedback.errors.any?
11
- #errorExplanation
12
- %h2= "#{pluralize(@feedback.errors.count, "error")} prohibited this feedback from being saved:"
13
- %ul
14
- - @feedback.errors.full_messages.each do |msg|
15
- %li= msg
16
-
17
- .field
18
- = f.label :name
19
- = f.text_field :name
20
- .field
21
- = f.label :phone
22
- = f.text_field :phone
23
- .field
24
- = f.label :email
25
- = f.text_field :email
26
- .field
27
- = f.label :subject
28
- = f.text_field :subject
29
- .field
30
- = label_tag "Would you like a response?"
31
- = f.check_box :want_response
32
- .field
33
- = f.label :message
34
- = f.text_area :message
35
- .actions
36
- = f.submit 'Send feedback'
37
-
@@ -1,27 +0,0 @@
1
- %h1 Listing feedbacks
2
-
3
- %table
4
- %tr
5
- %th Name
6
- %th Phone
7
- %th Email
8
- %th Message
9
- %th Want response
10
- %th
11
- %th
12
- %th
13
-
14
- - @feedbacks.each do |feedback|
15
- %tr
16
- %td= feedback.name
17
- %td= feedback.phone
18
- %td= feedback.email
19
- %td= feedback.message
20
- %td= feedback.want_response
21
- %td= link_to 'Show', feedback
22
- %td= link_to 'Edit', edit_feedback_path(feedback)
23
- %td= link_to 'Destroy', feedback, :confirm => 'Are you sure?', :method => :delete
24
-
25
- %br
26
-
27
- = link_to 'New feedback', new_feedback_path
@@ -1,6 +0,0 @@
1
- %h1 Thanks for your interest
2
- %h3 Please fill in the form below and let us know if you'd like a response.
3
-
4
- #form_container
5
- = render 'form'
6
-
@@ -1,19 +0,0 @@
1
- %p
2
- %b Name:
3
- = @feedback.name
4
- %p
5
- %b Phone:
6
- = @feedback.phone
7
- %p
8
- %b Email:
9
- = @feedback.email
10
- %p
11
- %b Message:
12
- = @feedback.message
13
- %p
14
- %b Want response:
15
- = @feedback.want_response
16
-
17
- = link_to 'Edit', edit_feedback_path(@feedback)
18
- \|
19
- = link_to 'Back', feedbacks_path
@@ -1,6 +0,0 @@
1
- - include_ckeditor
2
- = form_for [@discussion.forum, @discussion, @forum_message] do |f|
3
- = f.hidden_field :author_id
4
- = f.text_area :message, :class=>'ckeditor_textarea'
5
- = f.submit
6
-
@@ -1,11 +0,0 @@
1
- %h1 Messages in #{@discussion.subject}
2
- - if can? :create, Discussion, :forum_id=>@discussion.forum.id
3
- = link_to "Reply to this topic", new_resource_url
4
-
5
- %ul.listing
6
- - for message in @forum_messages
7
- %li
8
- .content_box
9
- .box_title Posted By #{message.author.email} on #{message.created_at}
10
- .box_content!= message.message
11
-
@@ -1,5 +0,0 @@
1
- %h1 New message in topic #{@discussion.subject}
2
- = render :partial=>'form'
3
-
4
- = link_to "Back to discussion", forum_discussion_path(@discussion.forum, @discussion)
5
-
@@ -1,13 +0,0 @@
1
- = form_for @forum do |f|
2
- -if @forum.errors.any?
3
- #errorExplanation
4
- %h2= "#{pluralize(@forum.errors.count, "error")} prohibited this forum from being saved:"
5
- %ul
6
- - @forum.errors.full_messages.each do |msg|
7
- %li= msg
8
-
9
- .field
10
- = f.label :name
11
- = f.text_field :name
12
- .actions
13
- = f.submit 'Save'
@@ -1,7 +0,0 @@
1
- %h1 Editing forum
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @forum
6
- \|
7
- = link_to 'Back', forums_path
@@ -1,23 +0,0 @@
1
- %h1 Forums Home
2
-
3
- - if can? :create, Forum
4
- %h2 Open a New Forum
5
- = form_for Forum.new do |f|
6
- %ul.form_fields
7
- %li.field
8
- Name:
9
- = f.text_field :name
10
- %li.action
11
- = f.submit
12
-
13
- = content_for :links do
14
- %h2 Forums:
15
- - @forums.each do |forum|
16
- %li.important_link
17
- = link_to "#{forum.name} ->", forum
18
- - if can? :create, Discussion, :forum_id=>forum.id
19
- = link_to "ReplyTo", new_forum_discussion_path(forum)
20
- - if can? :manage, forum
21
- != "|" + link_to("Manage", edit_forum_path(forum))
22
- %li.important_link= link_to 'New forum', new_forum_path if can? :create, Forum
23
-
@@ -1,5 +0,0 @@
1
- %h1 New forum
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', forums_path
@@ -1,20 +0,0 @@
1
- %h1 Forum: #{@forum.name}
2
-
3
- .titled_box
4
- .box_title Discussions in this forum
5
- .box_contents
6
- %ul
7
- - for discussion in @forum.discussions.sort{|u,v| u.updated_at <=> v.update_at}
8
- %li
9
- = link_to discussion.subject, url_for([@forum, discussion])
10
- - if can? :create, Discussion, :forum_id => @forum.id
11
- = link_to "Reply to this topic", new_forum_discussion_forum_message_path(@forum, discussion)
12
- - if can? :manage, discussion
13
- = link_to "Manage", edit_forum_discussion_path(@forum, discussion)
14
-
15
- = content_for :links do
16
- - if can? :create, Discussion, :forum_id=>@forum.id
17
- %li= link_to "New topic in this forum", new_forum_discussion_path(@forum)
18
- - if can? :manage, @forum
19
- %li= link_to 'Edit', edit_forum_path(@forum)
20
-
@@ -1,30 +0,0 @@
1
- :css
2
- #image_gallery li {
3
- display: inline;
4
- list-style: none;
5
- width: 300px;
6
- min-height: 300px;
7
- float: left;
8
- margin: 0 10px 10px 0;
9
- text-align: center;
10
- }
11
- = form_for @gallery do |f|
12
- %h2 Gallery Name:
13
- = f.text_field :name
14
- = f.submit "Save Gallery"
15
-
16
- %ul#image_gallery
17
- - paginated_images_for(@gallery).each do |image|
18
- %li
19
- = image_tag image.image.url(:medium)
20
-
21
- = will_paginate paginated_images_for(@gallery)
22
-
23
- #upload_form
24
- = form_for [@gallery, Image.new(:gallery=>@gallery)], :html=>{:id=>'upload', :multipart=>true} do |f|
25
- - params.slice(:CKEditor, :CKEditorFuncNum, :langCode).each do |key, val|
26
- = hidden_field_tag key, val
27
- .upload_field= f.file_field :image
28
- .tag_field= f.text_field :tag_list
29
- = f.submit "Upload Image", :disable_with=>"Uploading..."
30
-
@@ -1,21 +0,0 @@
1
- :css
2
- #image_gallery li {
3
- display: inline;
4
- list-style: none;
5
- width: 300px;
6
- min-height: 300px;
7
- float: left;
8
- margin: 0 10px 10px 0;
9
- text-align: center;
10
- }
11
-
12
- %h1= gallery.name.empty? ? "Name your gallery" : gallery.name
13
- - if can? :update, gallery
14
- = link_to 'Edit', edit_gallery_path(gallery, ckeditor_params)
15
- - if can? :manage, gallery
16
- = link_to 'Destroy', gallery_path(gallery, ckeditor_params), "data-confirm"=>"You'll shoot your eye out!", :method=>"delete"
17
- %ul#image_gallery
18
- - images.each do |image|
19
- %li
20
- = image_tag image.image.url(:medium)
21
-
@@ -1,7 +0,0 @@
1
- %h1 Editing gallery
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @gallery
6
- \|
7
- = link_to 'Back', galleries_path
@@ -1,15 +0,0 @@
1
- %h1 #{@user.profile.alias}'s Galleries
2
- %ul
3
- - @galleries.each do |gallery|
4
- %li
5
- %h2= link_to (gallery.name || "No name"), gallery_path(gallery, ckeditor_params)
6
- - unless gallery.images.empty?
7
- = image_tag gallery.images[0].image.url(:medium)
8
- - if can? :update, gallery
9
- = link_to 'Edit', edit_gallery_path(gallery, ckeditor_params)
10
- - if can? :manage, gallery
11
- = link_to 'Destroy', gallery_path(gallery, ckeditor_params), "data-confirm"=>"Sure? All the images from this gallery will be gone...", :method=>"delete"
12
-
13
-
14
- = link_to 'New gallery', new_gallery_path
15
-
@@ -1,5 +0,0 @@
1
- %h1 New gallery
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', galleries_path
@@ -1,4 +0,0 @@
1
- = render :partial => "show", :locals=>{:images=>@images, :gallery=>@gallery}
2
-
3
- = will_paginate @images
4
-
@@ -1,10 +0,0 @@
1
- = form_for @image do |f|
2
- -if @image.errors.any?
3
- #errorExplanation
4
- %h2= "#{pluralize(@image.errors.count, "error")} prohibited this image from being saved:"
5
- %ul
6
- - @image.errors.full_messages.each do |msg|
7
- %li= msg
8
-
9
- .actions
10
- = f.submit 'Save'
@@ -1,3 +0,0 @@
1
- $('##{@container}').#{@ajax_function}(#{raw render_js('show')});
2
- = render :partial => "loadbehind/view"
3
-
@@ -1,3 +0,0 @@
1
- $('##{@container}').remove;
2
- = render :partial => "loadbehind/destroy"
3
-
@@ -1,7 +0,0 @@
1
- %h1 Editing image
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @image
6
- \|
7
- = link_to 'Back', images_path
@@ -1,3 +0,0 @@
1
- $('##{@container}').#{@ajax_function}(#{raw render_js('form')});
2
- = render :partial => "loadbehind/edit"
3
-
@@ -1,17 +0,0 @@
1
- %h1 Listing images
2
-
3
- %table
4
- %tr
5
- %th
6
- %th
7
- %th
8
-
9
- - @images.each do |image|
10
- %tr
11
- %td= link_to 'Show', image
12
- %td= link_to 'Edit', edit_image_path(image)
13
- %td= link_to 'Destroy', image, :confirm => 'Are you sure?', :method => :delete
14
-
15
- %br
16
-
17
- = link_to 'New image', new_image_path
@@ -1,3 +0,0 @@
1
- $('##{@container}').#{@ajax_function}(#{raw render_js('index')});
2
- = render :partial => "loadbehind/view"
3
-
@@ -1,5 +0,0 @@
1
- %h1 New image
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', images_path
@@ -1,3 +0,0 @@
1
- $('##{@container}').#{@ajax_function}(#{raw render_js('form')});
2
- = render :partial => "loadbehind/edit"
3
-
@@ -1,5 +0,0 @@
1
-
2
- = image_tag @image.image.url
3
- \|
4
- = link_to 'Back', collection_path
5
-
@@ -1,3 +0,0 @@
1
- $('##{@container}').#{@ajax_function}(#{raw render_js('show')});
2
- = render :partial => "loadbehind/view"
3
-
@@ -1,3 +0,0 @@
1
- $('##{@container}').#{@ajax_function}(#{raw render_js('show')});
2
- = render :partial => "loadbehind/view"
3
-
@@ -1,59 +0,0 @@
1
- !!! 5
2
- %html
3
- %head
4
- %title Wheels Test Site
5
- = csrf_meta_tag
6
- /[if lt IE 9]
7
- = javascript_include_tag 'html5'
8
- = javascript_include_tag :defaults
9
- = javascript_include_tag *%w(jquery-ui menu application jquery.growl)
10
- = stylesheet_link_tag *%w(ui-lightness/jquery-ui-1.8.4.custom)
11
- = yield(:head)
12
-
13
- :javascript
14
- function setTitle(title){
15
- $('title').html(title);
16
- }
17
- %body
18
- #wrapper
19
- #header
20
- #menu
21
- %ul.menu
22
- - @menu_items.each do |sitemap_node|
23
- != menu_node sitemap_node.menu_text, sitemap_node.url
24
- - if @sitemap && @sitemap.parent != Sitemap.main_menu
25
- = sidebar_content do
26
- %ul.sidebar
27
- != menu_node "Back to #{@sitemap.parent.menu_text}", @sitemap.parent.url
28
- - if @sitemap && !@sitemap.children.empty?
29
- = sidebar_content do
30
- %ul.sidebar
31
- - @sitemap.children.each do |sitemap_node|
32
- != menu_node sitemap_node.menu_text, sitemap_node.url
33
- - if @sidebar
34
- #sidebar
35
- #sidebar_top
36
- = yield(:sidebar)
37
- #sidebar_bottom
38
- \&nbsp;
39
- #content
40
- - flash.each do |key, value|
41
- %p{:class=>key}= value
42
- = yield
43
- #dialog
44
- %p#dialog_html
45
- #footer
46
- #footer-valid
47
-
48
- %a{:href => "http://validator.w3.org/check/referer"} xhtml
49
- |
50
- - if user_signed_in?
51
- Logged in as #{current_user.email} | #{link_to('Logout', destroy_user_session_path)}
52
- |
53
- = link_to 'Change Password', '/change_password'
54
- - else
55
- = link_to('Log in', new_user_session_path)
56
-
57
- #copyright
58
- Copyright &copy; 2010 #{link_to "Apycom jQuery Menus", "http://apycom.com/"}
59
-
@@ -1,2 +0,0 @@
1
- = yield
2
-
@@ -1,18 +0,0 @@
1
- !!! 5
2
- %html
3
- %head
4
- = csrf_meta_tag
5
- /[if lt IE 9]
6
- = javascript_include_tag 'html5'
7
- = javascript_include_tag :defaults
8
- :javascript
9
- $(function(){
10
- $('#image_dialog').find('img').click(function(){
11
- url = $(this).attr('src');
12
- window.opener.CKEDITOR.tools.callFunction( #{params[:CKEditorFuncNum]}, url);
13
- window.close();
14
- });
15
- });
16
- %body
17
- #image_dialog= yield
18
-
@@ -1,3 +0,0 @@
1
- - if resource.errors.any?
2
- = growl('Error', raw(render_js('errors')), :error)
3
-
@@ -1,4 +0,0 @@
1
- setUpDocument($('##{container}'));
2
- - if resource.errors.any?
3
- = growl('Error', raw(render_js('loadbehind/errors')), :error)
4
-
@@ -1,5 +0,0 @@
1
- .errorTitle= "#{resource.errors.count, 'error')} prohibited this <%= singular_name %> from being saved:"
2
- %ul
3
- - resource.errors.full_messages.each do |msg|
4
- %li= msg
5
-
@@ -1,65 +0,0 @@
1
- :css
2
- .growl_box {
3
- width: 225px;
4
- border: 0px;
5
- cellpadding: 0px;
6
- cellspacing: 0px;
7
- }
8
- .growl_top {
9
- background-image: url(/images/growl/growl_top.png);
10
- width: 225px;
11
- height: 49px;
12
- background-repeat: no-repeat;
13
- color: #fff;
14
- }
15
- .growl_top_img {
16
- max-width: 25px;
17
- max-height: 25px;
18
- text-align: center;
19
- margin-left: 19px;
20
- margin-top: 19px;
21
- }
22
- .growl_title {
23
- font-size: 18px;
24
- margin: 0pt;
25
- margin-left: 5px;
26
- margin-bottom: 10px;
27
- display: inline;
28
- }
29
- td.growl_content {
30
- background-image: url(/images/growl/growl_repeat.png);
31
- width: 225px;
32
- background-repeat: repeat-y;
33
- color: #ddd;
34
- }
35
-
36
- p.growl_content {
37
- margin: 20px;
38
- }
39
- .growl_bottom {
40
- background-image: url(/images/growl/growl_bottom.png);
41
- background-repeat: no-repeat;
42
- width: 225px;
43
- height: 27px;
44
- vertical-align: top;
45
- horizontal-align: right;
46
- }
47
- a.growl_close {
48
- margin-right: 25px;
49
- font-size: 10px;
50
- color: #fff;
51
- text-align: right;
52
- }
53
-
54
- %table.growl_box
55
- %tr
56
- %td.growl_top
57
- %img.growl_top_img{:src=>"%image%"}
58
- %h1.growl_title %title%
59
- %tr
60
- %td.growl_content
61
- %p.growl_content %message%
62
- %tr
63
- %td.growl_bottom
64
- a.growl_close{:href=>"#", :onclick=>"return false;" :rel=>"close"} Close
65
-
@@ -1,9 +0,0 @@
1
- #showBox.showBox
2
- %table
3
- %tr.row1
4
- %td.col1.toggle.showHide_hidden{"data-box-id" => "showBox"}
5
- %td.col2 Point Prescriptions
6
- %tr.row2.displayArea.showHide_hidden
7
- %td.col1
8
- %td.col2.contentPane
9
-
@@ -1,4 +0,0 @@
1
- - unless flash[:notice].empty?
2
- userDialog("Success", '#{flash[:notice]}');
3
- - flash.discard
4
-
@@ -1,4 +0,0 @@
1
- $.growl.settings.dockCss.width = '225px';
2
- $.growl.settings.noticeTemplate = raw render_js('growl_template')
3
- $.growl.settings.noticeCss = {position: 'relative'};
4
-
@@ -1,4 +0,0 @@
1
- $.growl.settings.dockCss.width = '225px';
2
- $.growl.settings.noticeTemplate = #{raw render_js('growl_template')}
3
- $.growl.settings.noticeCss = {position: 'relative'};
4
-
@@ -1,13 +0,0 @@
1
- = form_for @menu do |f|
2
- -if @menu.errors.any?
3
- #errorExplanation
4
- %h2= "#{pluralize(@menu.errors.count, "error")} prohibited this menu from being saved:"
5
- %ul
6
- - @menu.errors.full_messages.each do |msg|
7
- %li= msg
8
-
9
- .field
10
- = f.label :name
11
- = f.text_field :name
12
- .actions
13
- = f.submit 'Save'
@@ -1,7 +0,0 @@
1
- %h1 Editing menu
2
-
3
- = render 'form'
4
-
5
- = link_to 'Show', @menu
6
- \|
7
- = link_to 'Back', menus_path
@@ -1,19 +0,0 @@
1
- %h1 Listing menus
2
-
3
- %table
4
- %tr
5
- %th Name
6
- %th
7
- %th
8
- %th
9
-
10
- - @menus.each do |menu|
11
- %tr
12
- %td= menu.name
13
- %td= link_to 'Show', menu
14
- %td= link_to 'Edit', edit_menu_path(menu)
15
- %td= link_to 'Destroy', menu, :confirm => 'Are you sure?', :method => :delete
16
-
17
- %br
18
-
19
- = link_to 'New menu', new_menu_path
@@ -1,5 +0,0 @@
1
- %h1 New menu
2
-
3
- = render 'form'
4
-
5
- = link_to 'Back', menus_path
@@ -1,7 +0,0 @@
1
- %p
2
- %b Name:
3
- = @menu.name
4
-
5
- = link_to 'Edit', edit_menu_path(@menu)
6
- \|
7
- = link_to 'Back', menus_path
@@ -1,5 +0,0 @@
1
- = content_for :sidebar do
2
- %ul#child_pages
3
- - @sitemap_node.try(:each) do |page|
4
- %li= link_to page.title, page_child_path(page.parent_id, page.id)
5
-