dust-cms 0.0.05

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.
Files changed (294) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +3 -0
  3. data/Rakefile +5 -0
  4. data/app/assets/images/admin/blank.png +0 -0
  5. data/app/assets/images/admin/dust-letterpress.png +0 -0
  6. data/app/assets/images/admin/main-back.png +0 -0
  7. data/app/assets/images/admin/ui/delete-icon.png +0 -0
  8. data/app/assets/images/admin/ui/edit-icon.png +0 -0
  9. data/app/assets/images/admin/ui/handle.png +0 -0
  10. data/app/assets/images/admin/ui/icons.png +0 -0
  11. data/app/assets/images/admin/ui/index-icon.png +0 -0
  12. data/app/assets/images/admin/ui/new-icon.png +0 -0
  13. data/app/assets/images/entypo/entypo.eot +0 -0
  14. data/app/assets/images/entypo/entypo.svg +13 -0
  15. data/app/assets/images/entypo/entypo.ttf +0 -0
  16. data/app/assets/images/entypo/entypo.woff +0 -0
  17. data/app/assets/images/entypo-social/entypo-social.eot +0 -0
  18. data/app/assets/images/entypo-social/entypo-social.svg +13 -0
  19. data/app/assets/images/entypo-social/entypo-social.ttf +0 -0
  20. data/app/assets/images/entypo-social/entypo-social.woff +0 -0
  21. data/app/assets/images/fancybox/blank.gif +0 -0
  22. data/app/assets/images/fancybox/fancy_close.png +0 -0
  23. data/app/assets/images/fancybox/fancy_loading.png +0 -0
  24. data/app/assets/images/fancybox/fancy_nav_left.png +0 -0
  25. data/app/assets/images/fancybox/fancy_nav_right.png +0 -0
  26. data/app/assets/images/fancybox/fancy_shadow_e.png +0 -0
  27. data/app/assets/images/fancybox/fancy_shadow_n.png +0 -0
  28. data/app/assets/images/fancybox/fancy_shadow_ne.png +0 -0
  29. data/app/assets/images/fancybox/fancy_shadow_nw.png +0 -0
  30. data/app/assets/images/fancybox/fancy_shadow_s.png +0 -0
  31. data/app/assets/images/fancybox/fancy_shadow_se.png +0 -0
  32. data/app/assets/images/fancybox/fancy_shadow_sw.png +0 -0
  33. data/app/assets/images/fancybox/fancy_shadow_w.png +0 -0
  34. data/app/assets/images/fancybox/fancy_title_left.png +0 -0
  35. data/app/assets/images/fancybox/fancy_title_main.png +0 -0
  36. data/app/assets/images/fancybox/fancy_title_over.png +0 -0
  37. data/app/assets/images/fancybox/fancy_title_right.png +0 -0
  38. data/app/assets/images/fancybox/fancybox-x.png +0 -0
  39. data/app/assets/images/fancybox/fancybox-y.png +0 -0
  40. data/app/assets/images/fancybox/fancybox.png +0 -0
  41. data/app/assets/javascripts/cms/dust/defaults.js.coffee +31 -0
  42. data/app/assets/javascripts/cms/dust/gallery/photo.js.coffee +1 -0
  43. data/app/assets/javascripts/cms/dust/gallery/photo_view.js.coffee +21 -0
  44. data/app/assets/javascripts/cms/dust/gallery/photos.js.coffee +6 -0
  45. data/app/assets/javascripts/cms/dust/gallery/photos_view.js.coffee +12 -0
  46. data/app/assets/javascripts/cms/dust/gallery/router.js.coffee +14 -0
  47. data/app/assets/javascripts/cms/dust/gallery.js.coffee +31 -0
  48. data/app/assets/javascripts/cms/dust/nav.js.coffee +21 -0
  49. data/app/assets/javascripts/cms/dust/sections.js.coffee +21 -0
  50. data/app/assets/javascripts/cms/dust/sortables.js.coffee +64 -0
  51. data/app/assets/javascripts/cms/dust/window.js.coffee +11 -0
  52. data/app/assets/javascripts/cms/dust.js.coffee +19 -0
  53. data/app/assets/javascripts/cms/lib/backbone.js +42 -0
  54. data/app/assets/javascripts/cms/lib/fineuploader-3.0.js +71 -0
  55. data/app/assets/javascripts/cms/lib/handlebars.js +1920 -0
  56. data/app/assets/javascripts/cms/lib/spin.js +2 -0
  57. data/app/assets/javascripts/cms/lib/underscore.js +1 -0
  58. data/app/assets/javascripts/cms.js +14 -0
  59. data/app/assets/javascripts/core/jquery.form.js +785 -0
  60. data/app/assets/javascripts/core/jquery.html5.js +29 -0
  61. data/app/assets/javascripts/core/jquery.mousewheel-3.0.2.pack.js +13 -0
  62. data/app/assets/javascripts/core/jquery.placeholder.min.js +11 -0
  63. data/app/assets/javascripts/core/nestedsortables.js +429 -0
  64. data/app/assets/javascripts/core/serializelist.js +66 -0
  65. data/app/assets/javascripts/core/tipTip.js +21 -0
  66. data/app/assets/javascripts/core.js +4 -0
  67. data/app/assets/javascripts/front_end/application-main.js.coffee +27 -0
  68. data/app/assets/javascripts/front_end/map.js +34 -0
  69. data/app/assets/javascripts/front_end/video.js +4569 -0
  70. data/app/assets/javascripts/front_end.js +18 -0
  71. data/app/assets/stylesheets/cms/flash_messages.css.scss +17 -0
  72. data/app/assets/stylesheets/cms/footer.css.scss +12 -0
  73. data/app/assets/stylesheets/cms/forms.css.scss +67 -0
  74. data/app/assets/stylesheets/cms/gallery.css.scss +21 -0
  75. data/app/assets/stylesheets/cms/icons.css.scss +123 -0
  76. data/app/assets/stylesheets/cms/jquery-ui.custom.scss +6 -0
  77. data/app/assets/stylesheets/cms/layout.css.scss +162 -0
  78. data/app/assets/stylesheets/cms/lib/grid.css.scss +116 -0
  79. data/app/assets/stylesheets/cms/lib/mixins.css.scss +20 -0
  80. data/app/assets/stylesheets/cms/login.scss +12 -0
  81. data/app/assets/stylesheets/cms/main.old +155 -0
  82. data/app/assets/stylesheets/cms/nav.css.scss +73 -0
  83. data/app/assets/stylesheets/cms/sections.scss +17 -0
  84. data/app/assets/stylesheets/cms/sortables.scss +20 -0
  85. data/app/assets/stylesheets/cms.css.scss +30 -0
  86. data/app/assets/stylesheets/core/app/defaults.css.scss +556 -0
  87. data/app/assets/stylesheets/core/plugins/PIE.htc +96 -0
  88. data/app/assets/stylesheets/core/plugins/jquery-ui-1.8.5.custom.old +572 -0
  89. data/app/assets/stylesheets/core/plugins/jquery.fancybox-1.3.1.css +364 -0
  90. data/app/assets/stylesheets/core/plugins/skeleton.css +155 -0
  91. data/app/assets/stylesheets/core/plugins/tipTip.css +115 -0
  92. data/app/assets/stylesheets/core/plugins/uploadify.css +25 -0
  93. data/app/assets/stylesheets/core/reset/reset.css +211 -0
  94. data/app/assets/stylesheets/core/reset/text.css +86 -0
  95. data/app/assets/stylesheets/core.css.scss +14 -0
  96. data/app/assets/stylesheets/front_end/app/just-delete-me-and-start-over.css.scss +70 -0
  97. data/app/assets/stylesheets/front_end.css +14 -0
  98. data/app/controllers/authentication_controller.rb +30 -0
  99. data/app/controllers/dust/blocks_controller.rb +49 -0
  100. data/app/controllers/dust/contacts_controller.rb +89 -0
  101. data/app/controllers/dust/dashboard_controller.rb +26 -0
  102. data/app/controllers/dust/gallery/albums_controller.rb +49 -0
  103. data/app/controllers/dust/gallery/api/photos_controller.rb +28 -0
  104. data/app/controllers/dust/gallery/photos_controller.rb +47 -0
  105. data/app/controllers/dust/menu_items_controller.rb +51 -0
  106. data/app/controllers/dust/menus_controller.rb +47 -0
  107. data/app/controllers/dust/pages_controller.rb +52 -0
  108. data/app/controllers/dust/password_resets_controller.rb +48 -0
  109. data/app/controllers/dust/posts_controller.rb +47 -0
  110. data/app/controllers/dust/roles_controller.rb +47 -0
  111. data/app/controllers/dust/sessions_controller.rb +29 -0
  112. data/app/controllers/dust/site_wides_controller.rb +28 -0
  113. data/app/controllers/dust/sortable_controller.rb +17 -0
  114. data/app/controllers/dust/users_controller.rb +52 -0
  115. data/app/controllers/front_end/page_controller.rb +27 -0
  116. data/app/controllers/front_end/post_controller.rb +14 -0
  117. data/app/controllers/front_end/sitemap_controller.rb +11 -0
  118. data/app/controllers/front_end_controller.rb +18 -0
  119. data/app/helpers/error_messages_helper.rb +23 -0
  120. data/app/helpers/exceptions.rb +4 -0
  121. data/app/helpers/layout_helper.rb +28 -0
  122. data/app/helpers/misc_helper.rb +29 -0
  123. data/app/helpers/region_helper.rb +32 -0
  124. data/app/mailers/post_office.rb +39 -0
  125. data/app/models/ckeditor/asset.rb +7 -0
  126. data/app/models/ckeditor/attachment_file.rb +7 -0
  127. data/app/models/ckeditor/picture.rb +7 -0
  128. data/app/models/dust/block.rb +114 -0
  129. data/app/models/dust/builder/page.rb +84 -0
  130. data/app/models/dust/builder/site_wide.rb +50 -0
  131. data/app/models/dust/contact.rb +34 -0
  132. data/app/models/dust/gallery/album.rb +14 -0
  133. data/app/models/dust/gallery/photo.rb +23 -0
  134. data/app/models/dust/handlebar.rb +59 -0
  135. data/app/models/dust/map.rb +21 -0
  136. data/app/models/dust/menu/item_dependency.rb +66 -0
  137. data/app/models/dust/menu.rb +11 -0
  138. data/app/models/dust/menu_item.rb +64 -0
  139. data/app/models/dust/page.rb +52 -0
  140. data/app/models/dust/post.rb +39 -0
  141. data/app/models/dust/role.rb +9 -0
  142. data/app/models/dust/section.rb +11 -0
  143. data/app/models/dust/session.rb +28 -0
  144. data/app/models/dust/site_wide.rb +41 -0
  145. data/app/models/dust/sort.rb +52 -0
  146. data/app/models/dust/sortable_item.rb +21 -0
  147. data/app/models/dust/user.rb +49 -0
  148. data/app/uploaders/ckeditor_attachment_file_uploader.rb +42 -0
  149. data/app/uploaders/ckeditor_picture_uploader.rb +53 -0
  150. data/app/uploaders/gallery_photo_uploader.rb +52 -0
  151. data/app/uploaders/image_uploader.rb +51 -0
  152. data/app/uploaders/slide_image_uploader.rb +51 -0
  153. data/app/views/dust/blocks/_block.html.haml +20 -0
  154. data/app/views/dust/blocks/_form.html.haml +50 -0
  155. data/app/views/dust/blocks/_normal_block_content.html.haml +1 -0
  156. data/app/views/dust/blocks/_search.html.haml +4 -0
  157. data/app/views/dust/blocks/edit.html.haml +4 -0
  158. data/app/views/dust/blocks/index.html.haml +16 -0
  159. data/app/views/dust/blocks/new.html.haml +3 -0
  160. data/app/views/dust/contacts/_form.html.haml +37 -0
  161. data/app/views/dust/contacts/_import_csv.html.haml +8 -0
  162. data/app/views/dust/contacts/_instance.html.haml +13 -0
  163. data/app/views/dust/contacts/_search.html.haml +4 -0
  164. data/app/views/dust/contacts/edit.html.haml +2 -0
  165. data/app/views/dust/contacts/index.html.haml +17 -0
  166. data/app/views/dust/contacts/index.json.haml +6 -0
  167. data/app/views/dust/contacts/new.html.haml +3 -0
  168. data/app/views/dust/dashboard/_options.html.haml +6 -0
  169. data/app/views/dust/dashboard/show.html.haml +33 -0
  170. data/app/views/dust/dashboard/update.html.haml +6 -0
  171. data/app/views/dust/gallery/albums/_form.html.haml +52 -0
  172. data/app/views/dust/gallery/albums/_photo.html.haml +12 -0
  173. data/app/views/dust/gallery/albums/edit.html.haml +3 -0
  174. data/app/views/dust/gallery/albums/index.html.haml +18 -0
  175. data/app/views/dust/gallery/albums/new.html.haml +4 -0
  176. data/app/views/dust/gallery/albums/show.html.haml +2 -0
  177. data/app/views/dust/gallery/photos/_form.html.haml +26 -0
  178. data/app/views/dust/gallery/photos/edit.html.haml +3 -0
  179. data/app/views/dust/gallery/photos/index.html.haml +18 -0
  180. data/app/views/dust/gallery/photos/new.html.haml +4 -0
  181. data/app/views/dust/gallery/photos/show.json.jbuilder +5 -0
  182. data/app/views/dust/menu_items/_form.html.haml +24 -0
  183. data/app/views/dust/menu_items/_roots.html.haml +3 -0
  184. data/app/views/dust/menu_items/_search.html.haml +4 -0
  185. data/app/views/dust/menu_items/_tree.html.haml +11 -0
  186. data/app/views/dust/menu_items/edit.html.haml +2 -0
  187. data/app/views/dust/menu_items/index.html.haml +19 -0
  188. data/app/views/dust/menu_items/new.html.haml +2 -0
  189. data/app/views/dust/menus/_form.html.haml +39 -0
  190. data/app/views/dust/menus/edit.html.haml +3 -0
  191. data/app/views/dust/menus/index.html.haml +18 -0
  192. data/app/views/dust/menus/new.html.haml +4 -0
  193. data/app/views/dust/menus/show.html.haml +2 -0
  194. data/app/views/dust/pages/_form.html.haml +68 -0
  195. data/app/views/dust/pages/_search.html.haml +4 -0
  196. data/app/views/dust/pages/edit.html.haml +3 -0
  197. data/app/views/dust/pages/index.html.haml +16 -0
  198. data/app/views/dust/pages/new.html.haml +3 -0
  199. data/app/views/dust/password_resets/edit.html.haml +6 -0
  200. data/app/views/dust/password_resets/new.html.haml +10 -0
  201. data/app/views/dust/posts/_form.html.haml +39 -0
  202. data/app/views/dust/posts/edit.html.haml +3 -0
  203. data/app/views/dust/posts/index.html.haml +18 -0
  204. data/app/views/dust/posts/new.html.haml +4 -0
  205. data/app/views/dust/posts/show.html.haml +2 -0
  206. data/app/views/dust/roles/_form.html.haml +11 -0
  207. data/app/views/dust/roles/edit.html.haml +2 -0
  208. data/app/views/dust/roles/index.html.haml +14 -0
  209. data/app/views/dust/roles/new.html.haml +2 -0
  210. data/app/views/dust/sessions/_form.html.haml +18 -0
  211. data/app/views/dust/sessions/new.html.haml +2 -0
  212. data/app/views/dust/site_wides/new.html.haml +19 -0
  213. data/app/views/dust/slides/_form.html.haml +26 -0
  214. data/app/views/dust/slides/_search.html.haml +4 -0
  215. data/app/views/dust/slides/_slideshow.html.haml +12 -0
  216. data/app/views/dust/slides/edit.html.haml +5 -0
  217. data/app/views/dust/slides/index.html.haml +25 -0
  218. data/app/views/dust/slides/index.js.haml +2 -0
  219. data/app/views/dust/slides/new.html.haml +6 -0
  220. data/app/views/dust/slides/show.html.haml +15 -0
  221. data/app/views/dust/sortable/sort.js.coffee +10 -0
  222. data/app/views/dust/users/_form.html.haml +27 -0
  223. data/app/views/dust/users/_search.html.haml +4 -0
  224. data/app/views/dust/users/_user_bar.html.haml +10 -0
  225. data/app/views/dust/users/dashboard.html.haml +40 -0
  226. data/app/views/dust/users/edit.html.haml +2 -0
  227. data/app/views/dust/users/index.html.haml +16 -0
  228. data/app/views/dust/users/new.html.haml +2 -0
  229. data/app/views/front_end/page/_admin.html.haml +6 -0
  230. data/app/views/front_end/page/search.html.haml +9 -0
  231. data/app/views/front_end/page/show.html.haml +8 -0
  232. data/app/views/front_end/post/_admin.html.haml +7 -0
  233. data/app/views/front_end/post/show.html.haml +12 -0
  234. data/app/views/front_end/sitemap/index.html.haml +4 -0
  235. data/app/views/front_end/sitemap/index.xml.haml +9 -0
  236. data/app/views/layouts/app_partials/_analytics.html.haml +11 -0
  237. data/app/views/layouts/app_partials/_application_tree.html.haml +6 -0
  238. data/app/views/layouts/cms.html.haml +52 -0
  239. data/app/views/layouts/cms_partials/_nav.html.haml +5 -0
  240. data/app/views/layouts/front_end.html.haml +22 -0
  241. data/app/views/layouts/sessions.html.haml +19 -0
  242. data/app/views/post_office/contact_confirmation.html.haml +7 -0
  243. data/app/views/post_office/contact_request.html.haml +24 -0
  244. data/app/views/post_office/password_reset_instructions.html.haml +6 -0
  245. data/app/views/widgets/_contact_form.html.haml +20 -0
  246. data/app/views/widgets/_map.html.haml +16 -0
  247. data/app/views/widgets/_quick_contact_form.html.haml +10 -0
  248. data/app/views/widgets/_site_map.html.haml +7 -0
  249. data/app/views/widgets/_site_menu.html.haml +10 -0
  250. data/app/views/widgets/_slider.html.haml +0 -0
  251. data/app/views/widgets/_user_login.html.haml +13 -0
  252. data/app/views/widgets/galleries/_archive.html.haml +1 -0
  253. data/app/views/widgets/galleries/_show.html.haml +0 -0
  254. data/app/views/widgets/posts/_index.html.haml +1 -0
  255. data/app/views/widgets/posts/_show.html.haml +0 -0
  256. data/config/authorization_rules.rb +23 -0
  257. data/config/generators/templates/haml/scaffold/_form.html.haml +19 -0
  258. data/config/generators/templates/haml/scaffold/edit.html.haml +3 -0
  259. data/config/generators/templates/haml/scaffold/index.html.haml +18 -0
  260. data/config/generators/templates/haml/scaffold/new.html.haml +4 -0
  261. data/config/generators/templates/haml/scaffold/show.html.haml +2 -0
  262. data/config/generators/templates/rails/scaffold_controller/controller.rb +51 -0
  263. data/config/initializers/app_string_io.rb +12 -0
  264. data/config/initializers/ckeditor.rb +18 -0
  265. data/config/initializers/client_side_validations.rb +13 -0
  266. data/config/initializers/dust_config.rb +22 -0
  267. data/config/initializers/dust_core_reloader.rb +11 -0
  268. data/config/initializers/sorcery.rb +398 -0
  269. data/config/initializers/wrap_parameters.rb +14 -0
  270. data/config/routes.rb +55 -0
  271. data/db/migrate/20101206025845_create_roles.rb +11 -0
  272. data/db/migrate/20110217212357_create_ckeditor_assets.rb +31 -0
  273. data/db/migrate/20110218000640_create_pages.rb +15 -0
  274. data/db/migrate/20110218000641_create_sections.rb +15 -0
  275. data/db/migrate/20110218002220_create_contacts.rb +22 -0
  276. data/db/migrate/20110218020608_create_menu_items.rb +21 -0
  277. data/db/migrate/20110507014158_create_blocks.rb +23 -0
  278. data/db/migrate/20121106195938_sorcery_core.rb +17 -0
  279. data/db/migrate/20121106195939_sorcery_remember_me.rb +15 -0
  280. data/db/migrate/20121106195940_sorcery_reset_password.rb +17 -0
  281. data/db/migrate/20121106195941_sorcery_activity_logging.rb +17 -0
  282. data/db/migrate/20121106200754_sorcery_user_activation.rb +17 -0
  283. data/db/migrate/20130220044031_create_site_wides.rb +11 -0
  284. data/db/migrate/20130220051658_create_menus.rb +11 -0
  285. data/db/migrate/20130223030136_create_albums.rb +13 -0
  286. data/db/migrate/20130223040911_create_photos.rb +15 -0
  287. data/db/migrate/20130223044553_create_posts.rb +15 -0
  288. data/lib/dust/engine.rb +18 -0
  289. data/lib/dust/utils.rb +14 -0
  290. data/lib/dust/version.rb +3 -0
  291. data/lib/dust-cms.rb +53 -0
  292. data/lib/tasks/dust_tasks.rake +51 -0
  293. data/lib/tasks/seed.rb +46 -0
  294. metadata +613 -0
@@ -0,0 +1,6 @@
1
+ %p
2
+ = o = @options
3
+ %p
4
+ To Yaml:#{debug o.to_yaml}
5
+ %p
6
+ = o
@@ -0,0 +1,52 @@
1
+ .sub-header.solitary-header.clearfix
2
+ .button-bar.clearfix
3
+ .admin-links
4
+ = link_to 'all Albums', dust_gallery_albums_path, :class => 'border'
5
+ = link_to "delete album", @album, :confirm => 'Are you sure?', :method => :delete
6
+
7
+
8
+ - unless @album.new_record?
9
+
10
+ :javascript
11
+ window.album = #{@album.to_json}
12
+ window.photos = #{@album.photos.roots.to_json}
13
+
14
+ .content-areas
15
+ .sub-header.clearfix
16
+ .button-bar.clearfix
17
+ .title photos
18
+ .admin-links
19
+ = link_to "Select Files", "#", :class => "border", :id => "uploader"
20
+ = link_to "Save Order", "#", :class => "order", 'data-url' => '/dust/sort', 'data-class' => "Dust::Gallery::Photo"
21
+
22
+ = render 'photo'
23
+ .content-wrapper.photos
24
+
25
+ -# end unless @ablum.new_record?
26
+
27
+ .form-wrap.clearfix
28
+
29
+ = simple_form_for @album do |f|
30
+ = f.error_messages
31
+
32
+ .fields
33
+ .sub-header.clearfix
34
+ .button-bar.clearfix
35
+ .title album fields
36
+ .admin-links
37
+ -#= render :partial => 'search'
38
+ .content-wrapper
39
+ = f.input :title
40
+ = f.input :description
41
+
42
+ .sub-header
43
+ .title Menu Item
44
+ .content-wrapper
45
+ = f.input :active, :as => :boolean, :label => "Show in Menu"
46
+ = f.input :menu, :collection => Dust::Menu.all.map{ |m| [m.title, m.id] }
47
+ = f.input :nav_link, :label => "Name, navigation link"
48
+ = f.input :filename, :label => "Filename, Found In The Url"
49
+
50
+ .actions
51
+ = f.button :submit
52
+
@@ -0,0 +1,12 @@
1
+ %script{:id => 'photo-template', :type => "text/template"}
2
+ .photo-actions
3
+ .photo-handle
4
+ %img{:src => "{{filename.url}}"}
5
+ .clearfix{:style => "float:right"}
6
+ = link_to "", "/dust/gallery/photos/{{id}}", :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
7
+ \{{#if title}}
8
+ = link_to "{{title}}", "/dust/gallery/photos/{{id}}/edit", :class => ' edit tip', :title => "Edit This Item"
9
+ \{{else}}
10
+ = link_to "edit photo", "/dust/gallery/photos/{{id}}/edit", :class => ' edit tip', :title => "Edit This Item"
11
+ \{{/if}}
12
+
@@ -0,0 +1,3 @@
1
+ - title "Edit album"
2
+
3
+ = render 'form'
@@ -0,0 +1,18 @@
1
+ - title "Album"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ -#= render :partial => 'search'
6
+ .admin-links
7
+ = link_to 'new album', new_dust_gallery_album_path, :class => 'newfile tip', :title => "New Album"
8
+
9
+ .content-wrapper
10
+ -#= will_paginate @albums
11
+
12
+ - @albums.each do |album|
13
+ .index-item
14
+ .clearfix{:style => "float:right"}
15
+ = link_to "", album, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
16
+ = link_to album.title.try('capitalize'), edit_dust_gallery_album_path(album), :class => ' edit tip', :title => "Edit This Item"
17
+
18
+ -#= will_paginate @albums
@@ -0,0 +1,4 @@
1
+ - title "New album"
2
+
3
+ = render 'form'
4
+
@@ -0,0 +1,26 @@
1
+
2
+ .sub-header.solitary-header.clearfix
3
+ .button-bar.clearfix
4
+ -#= render :partial => 'search'
5
+ .admin-links
6
+ = link_to 'all Photos', edit_dust_gallery_album_path(@photo.album), :class => 'border'
7
+ = link_to "delete photo", @photo, :confirm => 'Are you sure?', :method => :delete
8
+
9
+ .form-wrap.clearfix
10
+
11
+ = simple_form_for @photo do |f|
12
+ = f.error_messages
13
+
14
+ .fields
15
+ .sub-header.clearfix
16
+ .title Photo Fields
17
+ .content-wrapper
18
+ = f.input :title
19
+ = f.input :description
20
+ .actions
21
+ = f.button :submit
22
+ .content-areas
23
+ .sub-header.clearfix
24
+ .title Current Photo
25
+ .content-wrapper
26
+ = image_tag @photo.filename.url
@@ -0,0 +1,3 @@
1
+ - title "Edit photo"
2
+
3
+ = render 'form'
@@ -0,0 +1,18 @@
1
+ - title "Photo"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ -#= render :partial => 'search'
6
+ .admin-links
7
+ = link_to 'new photo', new_photo_path, :class => 'newfile tip', :title => "New Photo"
8
+
9
+ .content-wrapper
10
+ -#= will_paginate @photos
11
+
12
+ - @photos.each do |photo|
13
+ .index-item
14
+ .clearfix{:style => "float:right"}
15
+ = link_to "", photo, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
16
+ = link_to photo.title.try('capitalize'), edit_photo_path(photo), :class => ' edit tip', :title => "Edit This Item"
17
+
18
+ -#= will_paginate @photos
@@ -0,0 +1,4 @@
1
+ - title "New photo"
2
+
3
+ = render 'form'
4
+
@@ -0,0 +1,5 @@
1
+ json.(@photo, :id, :success, :url, :filename_identifier)
2
+ json.photo_url url_for(@photo)
3
+ json.image
4
+
5
+
@@ -0,0 +1,24 @@
1
+ .form-wrap.clearfix
2
+
3
+ = form_for @menu_item do |f|
4
+ = f.error_messages
5
+
6
+ .fields-full
7
+ .sub-header.clearfix
8
+ .button-bar.clearfix
9
+ = render :partial => 'search'
10
+ .admin-links
11
+ = link_to 'all menu items', dust_menu_items_path, :class => 'border'
12
+ = link_to "delete menu item", @menu_item, :confirm => 'Are you sure?', :method => :delete
13
+ .content-wrapper
14
+ .item
15
+ = hidden_field_tag "return", params[:return]
16
+ = hidden_field_tag 'menu_id', params[:menu_id]
17
+ = f.label :title
18
+ = f.text_field :title, :class => 'field'
19
+ = f.label :url
20
+ = f.text_field :url, :class => 'field'
21
+ = f.label :active
22
+ = f.check_box :active
23
+ .item
24
+ = f.submit
@@ -0,0 +1,3 @@
1
+ %ul#tree{'data-url' => '/dust/menu/array'}
2
+ - @menu_item_administration.each do |rootnode|
3
+ = render :partial => "tree", :locals => {:root => rootnode}
@@ -0,0 +1,4 @@
1
+ #searchbox
2
+ = form_tag dust_menu_items_path, :method => 'get' do
3
+ = text_field_tag :search, params[:search], :class => "input-text", :placeholder => 'Search Menu Items'
4
+ = image_submit_tag "admin/blank.png", :class => "image-submit"
@@ -0,0 +1,11 @@
1
+ = content_tag :li, :class => "index-item #{menu.nestable}", "data-id" => item.id do
2
+ %div
3
+ %span.handle  
4
+ .clearfix{:style => "float:right"}
5
+ = link_to "", item, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
6
+ = link_to item.title, edit_dust_menu_item_path(item, :return => request.path, :menu_id => menu.id), :class => 'ui-icon ui-icon-pencil edit tip', :title => "Edit This Item"
7
+ = content_tag :ul do
8
+ - item.children.each do |child|
9
+ = render "dust/menu_items/tree", :item => child, :menu => menu
10
+ - end unless item.leaf?
11
+
@@ -0,0 +1,2 @@
1
+ - title "Edit Menu Item"
2
+ = render :partial => 'form'
@@ -0,0 +1,19 @@
1
+ - title "Menu Items"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ = render :partial => 'search'
6
+ .admin-links
7
+ = link_to 'reorder menu', dust_menu_manage_path, :class => 'batch tip border', :title => "Manage Menu Items"
8
+ = link_to 'new menu item', new_dust_menu_item_path, :class => 'newfile tip', :title => "New Menu Item"
9
+
10
+ .content-wrapper
11
+ = will_paginate @menu_items
12
+
13
+ - @menu_items.each do |menu_item|
14
+ .index-item
15
+ .clearfix{:style => "float:right"}
16
+ = link_to "", menu_item, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
17
+ = link_to menu_item.title.capitalize, edit_dust_menu_item_path(menu_item), :class => ' edit tip', :title => "Edit This Item"
18
+
19
+ = will_paginate @menu_items
@@ -0,0 +1,2 @@
1
+ - title "New Menu Item"
2
+ = render :partial => 'form'
@@ -0,0 +1,39 @@
1
+ .sub-header.solitary-header.clearfix
2
+ .button-bar.clearfix
3
+ -#= render :partial => 'search'
4
+ .admin-links
5
+ = link_to 'all Menus', dust_menus_path, :class => 'border'
6
+ = link_to "delete menu", @menu, :confirm => 'Are you sure?', :method => :delete
7
+
8
+ .form-wrap.clearfix
9
+
10
+ = simple_form_for @menu do |f|
11
+ = f.error_messages
12
+
13
+ .fields
14
+ .sub-header.clearfix
15
+ .button-bar.clearfix
16
+ .title Menu
17
+ .content-wrapper
18
+ = f.input :title
19
+ = f.input :nestable, :collection => [["Yes", "nest"], ["No", "no-nest"]]
20
+ = f.input :desc
21
+
22
+ .actions
23
+ = f.button :submit
24
+
25
+ .content-areas
26
+ .sub-header.clearfix
27
+ .button-bar.clearfix
28
+ .title Menu Items
29
+ .admin-links
30
+ = link_to 'Add Menu Item', new_dust_menu_item_path(:return => request.path, :menu_id => @menu.id), :class => 'border' unless @menu.new_record?
31
+ = link_to('save menu order', '', :class => 'order', 'data-url' => '/dust/sort', 'data-class' => "Dust::MenuItem")
32
+ .content-wrapper
33
+ - unless @menu.new_record?
34
+
35
+ %ul#tree
36
+
37
+ - @menu.menu_items.roots.each do |item|
38
+
39
+ = render "dust/menu_items/tree", :item => item, :menu => @menu
@@ -0,0 +1,3 @@
1
+ - title "Edit menu"
2
+
3
+ = render 'form'
@@ -0,0 +1,18 @@
1
+ - title "Menu"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ -#= render :partial => 'search'
6
+ .admin-links
7
+ = link_to 'new menu', new_dust_menu_path, :class => 'newfile tip', :title => "New Menu"
8
+
9
+ .content-wrapper
10
+ -#= will_paginate @menus
11
+
12
+ - @menus.each do |menu|
13
+ .index-item
14
+ .clearfix{:style => "float:right"}
15
+ = link_to "", menu, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
16
+ = link_to menu.title.capitalize, edit_dust_menu_path(menu), :class => ' edit tip', :title => "Edit This Item"
17
+
18
+ -#= will_paginate @menus
@@ -0,0 +1,4 @@
1
+ - title "New menu"
2
+
3
+ = render 'form'
4
+
@@ -0,0 +1,2 @@
1
+
2
+
@@ -0,0 +1,68 @@
1
+ .solitary-header.sub-header.clearfix
2
+ .button-bar.clearfix
3
+ = render :partial => 'search'
4
+ .admin-links
5
+ = link_to 'all pages', dust_pages_path, :class => 'border'
6
+ = link_to "view page", front_end_page_path(@page.filename), :class => "border" unless @page.new_record?
7
+ = link_to "delete page", @page, :confirm => 'Are you sure?', :method => :delete
8
+
9
+ .form-wrap.clearfix
10
+ = simple_form_for @page, :validate => true do |f|
11
+ = f.error_messages
12
+
13
+ .fields
14
+ .sub-header
15
+ .title page fields
16
+ .content-wrapper
17
+
18
+ = f.input :meta_title, :label => "Title, Window Title"
19
+ = f.input :meta_description
20
+ = f.input :classes
21
+
22
+ .sub-header
23
+ .title Menu Item
24
+ .content-wrapper
25
+ = f.input :active, :as => :boolean, :label => "Show in Menu"
26
+ = f.input :menu, :collection => Dust::Menu.all.map{ |m| [m.title, m.id] }
27
+ = f.input :nav_link, :label => "Name, navigation link"
28
+ = f.input :filename, :label => "Filename, Found In The Url"
29
+
30
+ .content-areas
31
+ .sub-header
32
+ .button-bar.clearfix
33
+ .title page sections
34
+ .admin-links
35
+ = link_to('save section order', '', :class => 'order border', 'data-url' => '/dust/sort', 'data-class' => "Dust::Section")
36
+ = link_to "Add Section", "#", :class => "add_fields"
37
+ .content-wrapper
38
+ %ul.sections#tree
39
+ - @page.sections.each_with_index do |section, index|
40
+ - section_id = section.id ? section.id : index
41
+ %li.item.sortable-item{"data-id" => section.id}
42
+ .section-item
43
+ %span.handle  
44
+ = hidden_field_tag "sections[#{section_id}][_destroy]"
45
+ = text_field_tag "sections[#{section_id}][title]", section.title, :placeholder => "title", :class => "section-title"
46
+
47
+ = link_to "More", "#", :class => "section-data-more"
48
+ = link_to "", "#", :class => "remove_fields destroy right"
49
+ .section-additional-data
50
+ = label_tag "classes"
51
+ = text_field_tag "sections[#{section_id}][classes]", section.classes
52
+
53
+ .actions
54
+ = f.button :submit
55
+
56
+ %script{:type => "text/templte", :id => "placeholder-section"}
57
+ %li.item.sortable-item{"data-id" => "section_id"}
58
+ .section-item
59
+ %span.handle  
60
+ = hidden_field_tag "sections[section_id][_destroy]"
61
+ = text_field_tag "sections[section_id][title]", "", :placeholder => "title", :class => "section-title"
62
+
63
+ = link_to "More", "#", :class => "section-data-more"
64
+ = link_to "", "#", :class => "remove_fields destroy right"
65
+ .section-additional-data
66
+ = label_tag "classes"
67
+ = text_field_tag "sections[section_id][classes]", ""
68
+
@@ -0,0 +1,4 @@
1
+ #searchbox
2
+ = form_tag dust_pages_path, :method => 'get' do
3
+ = text_field_tag :search, params[:search], :class => "input-text", :placeholder => 'Search Pages'
4
+ = image_submit_tag "admin/blank.png", :class => "image-submit"
@@ -0,0 +1,3 @@
1
+ - title "Edit #{@page.nav_link}"
2
+ - heading "Edit #{@page.nav_link}"
3
+ = render :partial => 'form'
@@ -0,0 +1,16 @@
1
+ - title "All Pages"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ = render :partial => 'search'
6
+ .admin-links
7
+ = link_to 'new page', new_dust_page_path, :class => '', :title => "New Page"
8
+
9
+ .content-wrapper
10
+ = will_paginate @pages
11
+ - @pages.each do |page|
12
+ .index-item
13
+ .list-links.clearfix{:style => "float:right"}
14
+ = link_to "", page, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy tip', :title => "Destroy This Item"
15
+ = link_to page.meta_title, edit_dust_page_path(page)
16
+ = will_paginate @pages
@@ -0,0 +1,3 @@
1
+ - title "New Page"
2
+ - heading "New Page"
3
+ = render :partial => 'form'
@@ -0,0 +1,6 @@
1
+ - heading "Update your password"
2
+ %h3 Enter your new password below.
3
+ = form_tag password_reset_path, :method => :put do
4
+ = password_field_tag :password, nil, :class => "field"
5
+ %br/
6
+ = submit_tag "Update Password"
@@ -0,0 +1,10 @@
1
+ - heading "Reset Password"
2
+ #login
3
+ %h3 Enter your email address below.
4
+ = link_to "Back to Login", login_path
5
+ %br/
6
+ %br/
7
+ = form_tag password_resets_path do
8
+ = text_field_tag :email, nil, :class => 'field'
9
+ %br/
10
+ = submit_tag "Reset Password"
@@ -0,0 +1,39 @@
1
+ .sub-header.solitary-header.clearfix
2
+ .button-bar.clearfix
3
+ -#= render :partial => 'search'
4
+ .admin-links
5
+ = link_to 'all Posts', dust_posts_path, :class => 'border'
6
+ = link_to "delete post", @post, :confirm => 'Are you sure?', :method => :delete
7
+
8
+ .form-wrap.clearfix
9
+
10
+ = simple_form_for @post, :html => {:multipart => true} do |f|
11
+ = f.error_messages
12
+
13
+ .fields
14
+ .sub-header.clearfix
15
+ .title Post Fields
16
+ .content-wrapper
17
+ = f.input :published
18
+ = f.input :title
19
+ = f.input :file, :as => :file
20
+ = f.input :published_date, :as => :string
21
+ = f.input :share
22
+ = f.input :share_type
23
+
24
+ .sub-header
25
+ .title Menu Item
26
+ .content-wrapper
27
+ = f.input :active, :as => :boolean, :label => "Show in Menu"
28
+ = f.input :menu, :collection => Dust::Menu.all.map{ |m| [m.title, m.id] }
29
+ = f.input :nav_link, :as => :hidden
30
+ = f.input :filename, :as => :hidden
31
+
32
+ .content-areas
33
+ .sub-header.clearfix
34
+ .title Post Body
35
+ .content-wrapper
36
+ = f.cktext_area("body", :width => '100%', :height => '400px')
37
+ .actions
38
+ = f.button :submit
39
+
@@ -0,0 +1,3 @@
1
+ - title "Edit post"
2
+
3
+ = render 'form'
@@ -0,0 +1,18 @@
1
+ - title "Post"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ -#= render :partial => 'search'
6
+ .admin-links
7
+ = link_to 'new post', new_dust_post_path, :class => 'newfile tip', :title => "New Post"
8
+
9
+ .content-wrapper
10
+ -#= will_paginate @posts
11
+
12
+ - @posts.each do |post|
13
+ .index-item
14
+ .clearfix{:style => "float:right"}
15
+ = link_to "", post, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
16
+ = link_to post.title.try('capitalize'), edit_dust_post_path(post), :class => ' edit tip', :title => "Edit This Item"
17
+
18
+ -#= will_paginate @posts
@@ -0,0 +1,4 @@
1
+ - title "New post"
2
+
3
+ = render 'form'
4
+
@@ -0,0 +1,2 @@
1
+
2
+
@@ -0,0 +1,11 @@
1
+ .full-fields
2
+ .sub-header
3
+ .title Role Fields
4
+ .content-wrapper
5
+ = form_for @role do |f|
6
+ = f.error_messages
7
+ .item
8
+ = f.label :name
9
+ = f.text_field :name, :class => "field"
10
+ .item
11
+ = f.submit
@@ -0,0 +1,2 @@
1
+ - title "Edit Role"
2
+ = render :partial => 'form'
@@ -0,0 +1,14 @@
1
+ - title "Roles"
2
+
3
+ .sub-header
4
+ .button-bar.clearfix
5
+ .admin-links
6
+ = link_to('new role', new_dust_role_path, :class => 'newfile tip', :title => "New Role")
7
+
8
+ .content-wrapper
9
+ - @roles.each do |role|
10
+ .index-item
11
+ .clearfix{:style => "float:right"}
12
+ = link_to "", role, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"
13
+ = link_to role.name, edit_dust_role_path(role), :class => 'tip', :title => "Edit This Item"
14
+
@@ -0,0 +1,2 @@
1
+ - title "New Role"
2
+ = render :partial => 'form'
@@ -0,0 +1,18 @@
1
+ .login-content
2
+ #header-wrap.clearfix
3
+ .header-inner.clearfix
4
+ %h1 Log in
5
+ = simple_form_for @session do |f|
6
+ = f.error_messages(:header_message => "Unable to login!", :message => "Please try again.")
7
+ .sub-header
8
+ .button-bar.clearfix
9
+ .admin-links
10
+ = link_to 'Back to site', root_url
11
+ .content-wrapper
12
+ = f.input :username
13
+ = f.input :password
14
+ = f.input :remember_me, :as => 'boolean'
15
+ .actions= f.submit "Login"
16
+ #footer-wrap
17
+ #footer
18
+ dust cms
@@ -0,0 +1,2 @@
1
+ - title "New User Session"
2
+ = render 'dust/sessions/form'
@@ -0,0 +1,19 @@
1
+ - title "New Site Wide Variable"
2
+ .form-wrap.clearfix
3
+
4
+ = simple_form_for @site_wide do |f|
5
+ = f.error_messages
6
+
7
+ .fields-full
8
+ .sub-header.clearfix
9
+ .button-bar.clearfix
10
+ .admin-links
11
+ = link_to "Dashboard", dust_dashboard_path
12
+ .content-wrapper
13
+ .item
14
+ = f.input :name
15
+ = f.input :value
16
+ = f.input :category
17
+ = f.button :submit
18
+
19
+
@@ -0,0 +1,26 @@
1
+ = form_for @slide, :validate => true, :html => { :multipart => true } do |f|
2
+ = hidden_field_tag :return, params[:return]
3
+ - if @slide.errors.any?
4
+ #error_explanation
5
+ %h2
6
+ = pluralize(@slide.errors.count, "error")
7
+ prohibited this page from being saved:
8
+ %ul
9
+ - @slide.errors.full_messages.each do |msg|
10
+ %li= msg
11
+ .item
12
+ = f.label :active
13
+ %br
14
+ = f.check_box :active, :class => 'field'
15
+ .item
16
+ = f.label :url
17
+ %br
18
+ = f.text_field :url, :class => 'field'
19
+ .item
20
+ = f.label :image
21
+ %br
22
+ = f.file_field :image, :class => 'field'
23
+ .item
24
+ = f.cktext_area("caption", :width => '98%', :height => '400px')
25
+ .item
26
+ = f.submit
@@ -0,0 +1,4 @@
1
+ #searchbox
2
+ = form_tag slides_path, :method => 'get' do
3
+ = text_field_tag :search, params[:search], :class => "input-text", :placeholder => 'Search Slides by Caption'
4
+ = image_submit_tag "admin/blank.png", :class => "image-submit"
@@ -0,0 +1,12 @@
1
+ #slideshow
2
+ .theme-default
3
+ .slides.clearfix
4
+ - slides.each_with_index do |slide, i|
5
+ .slide{ :style => (i != 0 ? "display:none;" : nil) }
6
+ .caption.four.columns
7
+ .inner= raw slide.caption
8
+ .image.eight.columns= image_tag slide.image_url
9
+
10
+ - if permitted_to? :manage, :slides
11
+ .edit-link
12
+ = link_to edit_icon("Slide #{slide.id}"), edit_slide_path(slide, :return => request.fullpath), :class => "to-admin"