dust-cms 0.0.05
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +3 -0
- data/Rakefile +5 -0
- data/app/assets/images/admin/blank.png +0 -0
- data/app/assets/images/admin/dust-letterpress.png +0 -0
- data/app/assets/images/admin/main-back.png +0 -0
- data/app/assets/images/admin/ui/delete-icon.png +0 -0
- data/app/assets/images/admin/ui/edit-icon.png +0 -0
- data/app/assets/images/admin/ui/handle.png +0 -0
- data/app/assets/images/admin/ui/icons.png +0 -0
- data/app/assets/images/admin/ui/index-icon.png +0 -0
- data/app/assets/images/admin/ui/new-icon.png +0 -0
- data/app/assets/images/entypo/entypo.eot +0 -0
- data/app/assets/images/entypo/entypo.svg +13 -0
- data/app/assets/images/entypo/entypo.ttf +0 -0
- data/app/assets/images/entypo/entypo.woff +0 -0
- data/app/assets/images/entypo-social/entypo-social.eot +0 -0
- data/app/assets/images/entypo-social/entypo-social.svg +13 -0
- data/app/assets/images/entypo-social/entypo-social.ttf +0 -0
- data/app/assets/images/entypo-social/entypo-social.woff +0 -0
- data/app/assets/images/fancybox/blank.gif +0 -0
- data/app/assets/images/fancybox/fancy_close.png +0 -0
- data/app/assets/images/fancybox/fancy_loading.png +0 -0
- data/app/assets/images/fancybox/fancy_nav_left.png +0 -0
- data/app/assets/images/fancybox/fancy_nav_right.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_e.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_n.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_ne.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_nw.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_s.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_se.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_sw.png +0 -0
- data/app/assets/images/fancybox/fancy_shadow_w.png +0 -0
- data/app/assets/images/fancybox/fancy_title_left.png +0 -0
- data/app/assets/images/fancybox/fancy_title_main.png +0 -0
- data/app/assets/images/fancybox/fancy_title_over.png +0 -0
- data/app/assets/images/fancybox/fancy_title_right.png +0 -0
- data/app/assets/images/fancybox/fancybox-x.png +0 -0
- data/app/assets/images/fancybox/fancybox-y.png +0 -0
- data/app/assets/images/fancybox/fancybox.png +0 -0
- data/app/assets/javascripts/cms/dust/defaults.js.coffee +31 -0
- data/app/assets/javascripts/cms/dust/gallery/photo.js.coffee +1 -0
- data/app/assets/javascripts/cms/dust/gallery/photo_view.js.coffee +21 -0
- data/app/assets/javascripts/cms/dust/gallery/photos.js.coffee +6 -0
- data/app/assets/javascripts/cms/dust/gallery/photos_view.js.coffee +12 -0
- data/app/assets/javascripts/cms/dust/gallery/router.js.coffee +14 -0
- data/app/assets/javascripts/cms/dust/gallery.js.coffee +31 -0
- data/app/assets/javascripts/cms/dust/nav.js.coffee +21 -0
- data/app/assets/javascripts/cms/dust/sections.js.coffee +21 -0
- data/app/assets/javascripts/cms/dust/sortables.js.coffee +64 -0
- data/app/assets/javascripts/cms/dust/window.js.coffee +11 -0
- data/app/assets/javascripts/cms/dust.js.coffee +19 -0
- data/app/assets/javascripts/cms/lib/backbone.js +42 -0
- data/app/assets/javascripts/cms/lib/fineuploader-3.0.js +71 -0
- data/app/assets/javascripts/cms/lib/handlebars.js +1920 -0
- data/app/assets/javascripts/cms/lib/spin.js +2 -0
- data/app/assets/javascripts/cms/lib/underscore.js +1 -0
- data/app/assets/javascripts/cms.js +14 -0
- data/app/assets/javascripts/core/jquery.form.js +785 -0
- data/app/assets/javascripts/core/jquery.html5.js +29 -0
- data/app/assets/javascripts/core/jquery.mousewheel-3.0.2.pack.js +13 -0
- data/app/assets/javascripts/core/jquery.placeholder.min.js +11 -0
- data/app/assets/javascripts/core/nestedsortables.js +429 -0
- data/app/assets/javascripts/core/serializelist.js +66 -0
- data/app/assets/javascripts/core/tipTip.js +21 -0
- data/app/assets/javascripts/core.js +4 -0
- data/app/assets/javascripts/front_end/application-main.js.coffee +27 -0
- data/app/assets/javascripts/front_end/map.js +34 -0
- data/app/assets/javascripts/front_end/video.js +4569 -0
- data/app/assets/javascripts/front_end.js +18 -0
- data/app/assets/stylesheets/cms/flash_messages.css.scss +17 -0
- data/app/assets/stylesheets/cms/footer.css.scss +12 -0
- data/app/assets/stylesheets/cms/forms.css.scss +67 -0
- data/app/assets/stylesheets/cms/gallery.css.scss +21 -0
- data/app/assets/stylesheets/cms/icons.css.scss +123 -0
- data/app/assets/stylesheets/cms/jquery-ui.custom.scss +6 -0
- data/app/assets/stylesheets/cms/layout.css.scss +162 -0
- data/app/assets/stylesheets/cms/lib/grid.css.scss +116 -0
- data/app/assets/stylesheets/cms/lib/mixins.css.scss +20 -0
- data/app/assets/stylesheets/cms/login.scss +12 -0
- data/app/assets/stylesheets/cms/main.old +155 -0
- data/app/assets/stylesheets/cms/nav.css.scss +73 -0
- data/app/assets/stylesheets/cms/sections.scss +17 -0
- data/app/assets/stylesheets/cms/sortables.scss +20 -0
- data/app/assets/stylesheets/cms.css.scss +30 -0
- data/app/assets/stylesheets/core/app/defaults.css.scss +556 -0
- data/app/assets/stylesheets/core/plugins/PIE.htc +96 -0
- data/app/assets/stylesheets/core/plugins/jquery-ui-1.8.5.custom.old +572 -0
- data/app/assets/stylesheets/core/plugins/jquery.fancybox-1.3.1.css +364 -0
- data/app/assets/stylesheets/core/plugins/skeleton.css +155 -0
- data/app/assets/stylesheets/core/plugins/tipTip.css +115 -0
- data/app/assets/stylesheets/core/plugins/uploadify.css +25 -0
- data/app/assets/stylesheets/core/reset/reset.css +211 -0
- data/app/assets/stylesheets/core/reset/text.css +86 -0
- data/app/assets/stylesheets/core.css.scss +14 -0
- data/app/assets/stylesheets/front_end/app/just-delete-me-and-start-over.css.scss +70 -0
- data/app/assets/stylesheets/front_end.css +14 -0
- data/app/controllers/authentication_controller.rb +30 -0
- data/app/controllers/dust/blocks_controller.rb +49 -0
- data/app/controllers/dust/contacts_controller.rb +89 -0
- data/app/controllers/dust/dashboard_controller.rb +26 -0
- data/app/controllers/dust/gallery/albums_controller.rb +49 -0
- data/app/controllers/dust/gallery/api/photos_controller.rb +28 -0
- data/app/controllers/dust/gallery/photos_controller.rb +47 -0
- data/app/controllers/dust/menu_items_controller.rb +51 -0
- data/app/controllers/dust/menus_controller.rb +47 -0
- data/app/controllers/dust/pages_controller.rb +52 -0
- data/app/controllers/dust/password_resets_controller.rb +48 -0
- data/app/controllers/dust/posts_controller.rb +47 -0
- data/app/controllers/dust/roles_controller.rb +47 -0
- data/app/controllers/dust/sessions_controller.rb +29 -0
- data/app/controllers/dust/site_wides_controller.rb +28 -0
- data/app/controllers/dust/sortable_controller.rb +17 -0
- data/app/controllers/dust/users_controller.rb +52 -0
- data/app/controllers/front_end/page_controller.rb +27 -0
- data/app/controllers/front_end/post_controller.rb +14 -0
- data/app/controllers/front_end/sitemap_controller.rb +11 -0
- data/app/controllers/front_end_controller.rb +18 -0
- data/app/helpers/error_messages_helper.rb +23 -0
- data/app/helpers/exceptions.rb +4 -0
- data/app/helpers/layout_helper.rb +28 -0
- data/app/helpers/misc_helper.rb +29 -0
- data/app/helpers/region_helper.rb +32 -0
- data/app/mailers/post_office.rb +39 -0
- data/app/models/ckeditor/asset.rb +7 -0
- data/app/models/ckeditor/attachment_file.rb +7 -0
- data/app/models/ckeditor/picture.rb +7 -0
- data/app/models/dust/block.rb +114 -0
- data/app/models/dust/builder/page.rb +84 -0
- data/app/models/dust/builder/site_wide.rb +50 -0
- data/app/models/dust/contact.rb +34 -0
- data/app/models/dust/gallery/album.rb +14 -0
- data/app/models/dust/gallery/photo.rb +23 -0
- data/app/models/dust/handlebar.rb +59 -0
- data/app/models/dust/map.rb +21 -0
- data/app/models/dust/menu/item_dependency.rb +66 -0
- data/app/models/dust/menu.rb +11 -0
- data/app/models/dust/menu_item.rb +64 -0
- data/app/models/dust/page.rb +52 -0
- data/app/models/dust/post.rb +39 -0
- data/app/models/dust/role.rb +9 -0
- data/app/models/dust/section.rb +11 -0
- data/app/models/dust/session.rb +28 -0
- data/app/models/dust/site_wide.rb +41 -0
- data/app/models/dust/sort.rb +52 -0
- data/app/models/dust/sortable_item.rb +21 -0
- data/app/models/dust/user.rb +49 -0
- data/app/uploaders/ckeditor_attachment_file_uploader.rb +42 -0
- data/app/uploaders/ckeditor_picture_uploader.rb +53 -0
- data/app/uploaders/gallery_photo_uploader.rb +52 -0
- data/app/uploaders/image_uploader.rb +51 -0
- data/app/uploaders/slide_image_uploader.rb +51 -0
- data/app/views/dust/blocks/_block.html.haml +20 -0
- data/app/views/dust/blocks/_form.html.haml +50 -0
- data/app/views/dust/blocks/_normal_block_content.html.haml +1 -0
- data/app/views/dust/blocks/_search.html.haml +4 -0
- data/app/views/dust/blocks/edit.html.haml +4 -0
- data/app/views/dust/blocks/index.html.haml +16 -0
- data/app/views/dust/blocks/new.html.haml +3 -0
- data/app/views/dust/contacts/_form.html.haml +37 -0
- data/app/views/dust/contacts/_import_csv.html.haml +8 -0
- data/app/views/dust/contacts/_instance.html.haml +13 -0
- data/app/views/dust/contacts/_search.html.haml +4 -0
- data/app/views/dust/contacts/edit.html.haml +2 -0
- data/app/views/dust/contacts/index.html.haml +17 -0
- data/app/views/dust/contacts/index.json.haml +6 -0
- data/app/views/dust/contacts/new.html.haml +3 -0
- data/app/views/dust/dashboard/_options.html.haml +6 -0
- data/app/views/dust/dashboard/show.html.haml +33 -0
- data/app/views/dust/dashboard/update.html.haml +6 -0
- data/app/views/dust/gallery/albums/_form.html.haml +52 -0
- data/app/views/dust/gallery/albums/_photo.html.haml +12 -0
- data/app/views/dust/gallery/albums/edit.html.haml +3 -0
- data/app/views/dust/gallery/albums/index.html.haml +18 -0
- data/app/views/dust/gallery/albums/new.html.haml +4 -0
- data/app/views/dust/gallery/albums/show.html.haml +2 -0
- data/app/views/dust/gallery/photos/_form.html.haml +26 -0
- data/app/views/dust/gallery/photos/edit.html.haml +3 -0
- data/app/views/dust/gallery/photos/index.html.haml +18 -0
- data/app/views/dust/gallery/photos/new.html.haml +4 -0
- data/app/views/dust/gallery/photos/show.json.jbuilder +5 -0
- data/app/views/dust/menu_items/_form.html.haml +24 -0
- data/app/views/dust/menu_items/_roots.html.haml +3 -0
- data/app/views/dust/menu_items/_search.html.haml +4 -0
- data/app/views/dust/menu_items/_tree.html.haml +11 -0
- data/app/views/dust/menu_items/edit.html.haml +2 -0
- data/app/views/dust/menu_items/index.html.haml +19 -0
- data/app/views/dust/menu_items/new.html.haml +2 -0
- data/app/views/dust/menus/_form.html.haml +39 -0
- data/app/views/dust/menus/edit.html.haml +3 -0
- data/app/views/dust/menus/index.html.haml +18 -0
- data/app/views/dust/menus/new.html.haml +4 -0
- data/app/views/dust/menus/show.html.haml +2 -0
- data/app/views/dust/pages/_form.html.haml +68 -0
- data/app/views/dust/pages/_search.html.haml +4 -0
- data/app/views/dust/pages/edit.html.haml +3 -0
- data/app/views/dust/pages/index.html.haml +16 -0
- data/app/views/dust/pages/new.html.haml +3 -0
- data/app/views/dust/password_resets/edit.html.haml +6 -0
- data/app/views/dust/password_resets/new.html.haml +10 -0
- data/app/views/dust/posts/_form.html.haml +39 -0
- data/app/views/dust/posts/edit.html.haml +3 -0
- data/app/views/dust/posts/index.html.haml +18 -0
- data/app/views/dust/posts/new.html.haml +4 -0
- data/app/views/dust/posts/show.html.haml +2 -0
- data/app/views/dust/roles/_form.html.haml +11 -0
- data/app/views/dust/roles/edit.html.haml +2 -0
- data/app/views/dust/roles/index.html.haml +14 -0
- data/app/views/dust/roles/new.html.haml +2 -0
- data/app/views/dust/sessions/_form.html.haml +18 -0
- data/app/views/dust/sessions/new.html.haml +2 -0
- data/app/views/dust/site_wides/new.html.haml +19 -0
- data/app/views/dust/slides/_form.html.haml +26 -0
- data/app/views/dust/slides/_search.html.haml +4 -0
- data/app/views/dust/slides/_slideshow.html.haml +12 -0
- data/app/views/dust/slides/edit.html.haml +5 -0
- data/app/views/dust/slides/index.html.haml +25 -0
- data/app/views/dust/slides/index.js.haml +2 -0
- data/app/views/dust/slides/new.html.haml +6 -0
- data/app/views/dust/slides/show.html.haml +15 -0
- data/app/views/dust/sortable/sort.js.coffee +10 -0
- data/app/views/dust/users/_form.html.haml +27 -0
- data/app/views/dust/users/_search.html.haml +4 -0
- data/app/views/dust/users/_user_bar.html.haml +10 -0
- data/app/views/dust/users/dashboard.html.haml +40 -0
- data/app/views/dust/users/edit.html.haml +2 -0
- data/app/views/dust/users/index.html.haml +16 -0
- data/app/views/dust/users/new.html.haml +2 -0
- data/app/views/front_end/page/_admin.html.haml +6 -0
- data/app/views/front_end/page/search.html.haml +9 -0
- data/app/views/front_end/page/show.html.haml +8 -0
- data/app/views/front_end/post/_admin.html.haml +7 -0
- data/app/views/front_end/post/show.html.haml +12 -0
- data/app/views/front_end/sitemap/index.html.haml +4 -0
- data/app/views/front_end/sitemap/index.xml.haml +9 -0
- data/app/views/layouts/app_partials/_analytics.html.haml +11 -0
- data/app/views/layouts/app_partials/_application_tree.html.haml +6 -0
- data/app/views/layouts/cms.html.haml +52 -0
- data/app/views/layouts/cms_partials/_nav.html.haml +5 -0
- data/app/views/layouts/front_end.html.haml +22 -0
- data/app/views/layouts/sessions.html.haml +19 -0
- data/app/views/post_office/contact_confirmation.html.haml +7 -0
- data/app/views/post_office/contact_request.html.haml +24 -0
- data/app/views/post_office/password_reset_instructions.html.haml +6 -0
- data/app/views/widgets/_contact_form.html.haml +20 -0
- data/app/views/widgets/_map.html.haml +16 -0
- data/app/views/widgets/_quick_contact_form.html.haml +10 -0
- data/app/views/widgets/_site_map.html.haml +7 -0
- data/app/views/widgets/_site_menu.html.haml +10 -0
- data/app/views/widgets/_slider.html.haml +0 -0
- data/app/views/widgets/_user_login.html.haml +13 -0
- data/app/views/widgets/galleries/_archive.html.haml +1 -0
- data/app/views/widgets/galleries/_show.html.haml +0 -0
- data/app/views/widgets/posts/_index.html.haml +1 -0
- data/app/views/widgets/posts/_show.html.haml +0 -0
- data/config/authorization_rules.rb +23 -0
- data/config/generators/templates/haml/scaffold/_form.html.haml +19 -0
- data/config/generators/templates/haml/scaffold/edit.html.haml +3 -0
- data/config/generators/templates/haml/scaffold/index.html.haml +18 -0
- data/config/generators/templates/haml/scaffold/new.html.haml +4 -0
- data/config/generators/templates/haml/scaffold/show.html.haml +2 -0
- data/config/generators/templates/rails/scaffold_controller/controller.rb +51 -0
- data/config/initializers/app_string_io.rb +12 -0
- data/config/initializers/ckeditor.rb +18 -0
- data/config/initializers/client_side_validations.rb +13 -0
- data/config/initializers/dust_config.rb +22 -0
- data/config/initializers/dust_core_reloader.rb +11 -0
- data/config/initializers/sorcery.rb +398 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/routes.rb +55 -0
- data/db/migrate/20101206025845_create_roles.rb +11 -0
- data/db/migrate/20110217212357_create_ckeditor_assets.rb +31 -0
- data/db/migrate/20110218000640_create_pages.rb +15 -0
- data/db/migrate/20110218000641_create_sections.rb +15 -0
- data/db/migrate/20110218002220_create_contacts.rb +22 -0
- data/db/migrate/20110218020608_create_menu_items.rb +21 -0
- data/db/migrate/20110507014158_create_blocks.rb +23 -0
- data/db/migrate/20121106195938_sorcery_core.rb +17 -0
- data/db/migrate/20121106195939_sorcery_remember_me.rb +15 -0
- data/db/migrate/20121106195940_sorcery_reset_password.rb +17 -0
- data/db/migrate/20121106195941_sorcery_activity_logging.rb +17 -0
- data/db/migrate/20121106200754_sorcery_user_activation.rb +17 -0
- data/db/migrate/20130220044031_create_site_wides.rb +11 -0
- data/db/migrate/20130220051658_create_menus.rb +11 -0
- data/db/migrate/20130223030136_create_albums.rb +13 -0
- data/db/migrate/20130223040911_create_photos.rb +15 -0
- data/db/migrate/20130223044553_create_posts.rb +15 -0
- data/lib/dust/engine.rb +18 -0
- data/lib/dust/utils.rb +14 -0
- data/lib/dust/version.rb +3 -0
- data/lib/dust-cms.rb +53 -0
- data/lib/tasks/dust_tasks.rake +51 -0
- data/lib/tasks/seed.rb +46 -0
- metadata +613 -0
@@ -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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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"
|