wheels 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -0
- data/Rakefile +22 -22
- data/lib/{generators/core_extensions.rb → core_extensions.rb} +2 -2
- data/lib/generators/{recipes → wheels/recipes}/cancan.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/cucumber.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/default.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/design.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/devise.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/factory_girl.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/haml.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/jquery.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/mongoid.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/postgresql.rb +0 -0
- data/lib/generators/wheels/recipes/public.rb +9 -0
- data/lib/generators/{recipes → wheels/recipes}/recipes.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/remarkable.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/rspec.rb +0 -0
- data/lib/generators/{recipes → wheels/recipes}/wheels.rb +0 -0
- data/lib/generators/{snippets → wheels/snippets}/cucumber/database_config +0 -0
- data/lib/generators/{templates → wheels/templates}/cancan/ability.rb +0 -0
- data/lib/generators/{templates → wheels/templates}/database/postgresql.yml +0 -0
- data/lib/generators/{templates → wheels/templates}/git/gitignore +0 -0
- data/lib/generators/{templates → wheels/templates}/haml/app/views/layouts/application.html.haml +0 -0
- data/lib/generators/{templates → wheels/templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
- data/lib/generators/{templates → wheels/templates}/mongoid/features/support/hooks.rb +0 -0
- data/lib/generators/wheels/wheels_generator.rb +0 -2
- data/lib/generators/wheels_update/core_extensions.3.rb +64 -0
- data/lib/generators/{recipes/wheels_update.rb → wheels_update/recipes/wheels.rb} +0 -0
- data/lib/generators/wheels_update/wheels_update_generator.rb +1 -1
- data/lib/wheels/base.rb +7 -0
- data/lib/wheels/routes.rb +2 -13
- data/test/functional/access_control_entries_controller_test.rb +49 -0
- data/test/functional/app_configs_controller_test.rb +49 -0
- data/test/functional/discussions_controller_test.rb +49 -0
- data/test/functional/external_links_controller_test.rb +49 -0
- data/test/functional/feedback_mailer_test.rb +8 -0
- data/test/functional/feedbacks_controller_test.rb +49 -0
- data/test/functional/forums_controller_test.rb +49 -0
- data/test/functional/layouts_controller_test.rb +49 -0
- data/test/functional/member_pages_controller_test.rb +49 -0
- data/test/functional/members_controller_test.rb +8 -0
- data/test/functional/menus_controller_test.rb +49 -0
- data/test/functional/pages_controller_test.rb +49 -0
- data/test/functional/product_revisions_controller_test.rb +49 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +13 -0
- data/test/unit/access_control_entry_test.rb +8 -0
- data/test/unit/app_config_test.rb +8 -0
- data/test/unit/attachment_test.rb +8 -0
- data/test/unit/discussion_test.rb +8 -0
- data/test/unit/external_link_test.rb +8 -0
- data/test/unit/feedback_test.rb +8 -0
- data/test/unit/forum_message_test.rb +8 -0
- data/test/unit/forum_test.rb +8 -0
- data/test/unit/helpers/access_control_entries_helper_test.rb +4 -0
- data/test/unit/helpers/app_configs_helper_test.rb +4 -0
- data/test/unit/helpers/discussions_helper_test.rb +4 -0
- data/test/unit/helpers/external_links_helper_test.rb +4 -0
- data/test/unit/helpers/feedbacks_helper_test.rb +4 -0
- data/test/unit/helpers/forums_helper_test.rb +4 -0
- data/test/unit/helpers/layouts_helper_test.rb +4 -0
- data/test/unit/helpers/member_pages_helper_test.rb +4 -0
- data/test/unit/helpers/members_helper_test.rb +4 -0
- data/test/unit/helpers/menus_helper_test.rb +4 -0
- data/test/unit/helpers/pages_helper_test.rb +4 -0
- data/test/unit/helpers/product_revisions_helper_test.rb +4 -0
- data/test/unit/layout_test.rb +8 -0
- data/test/unit/member_page_test.rb +8 -0
- data/test/unit/menu_test.rb +8 -0
- data/test/unit/page_revision_test.rb +8 -0
- data/test/unit/page_test.rb +8 -0
- data/test/unit/product_revision_test.rb +8 -0
- data/test/unit/settings_test.rb +8 -0
- data/test/unit/sitemap_test.rb +8 -0
- data/test/unit/user_test.rb +8 -0
- data/wheels.gemspec +122 -252
- metadata +124 -266
- data/LICENSE +0 -20
- data/README.rdoc +0 -17
- data/VERSION +0 -1
- data/app/controllers/access_control_entries_controller.rb +0 -20
- data/app/controllers/app_configs_controller.rb +0 -17
- data/app/controllers/application_controller.rb +0 -39
- data/app/controllers/attachments_controller.rb +0 -16
- data/app/controllers/blogs_controller.rb +0 -39
- data/app/controllers/discussions_controller.rb +0 -10
- data/app/controllers/external_links_controller.rb +0 -5
- data/app/controllers/feedbacks_controller.rb +0 -10
- data/app/controllers/forum_messages_controller.rb +0 -13
- data/app/controllers/forums_controller.rb +0 -2
- data/app/controllers/galleries_controller.rb +0 -60
- data/app/controllers/images_controller.rb +0 -30
- data/app/controllers/menus_controller.rb +0 -2
- data/app/controllers/pages_controller.rb +0 -71
- data/app/controllers/profiles_controller.rb +0 -16
- data/app/controllers/sitemaps_controller.rb +0 -135
- data/app/controllers/users_controller.rb +0 -28
- data/app/helpers/access_control_entries_helper.rb +0 -2
- data/app/helpers/app_configs_helper.rb +0 -2
- data/app/helpers/application_helper.rb +0 -36
- data/app/helpers/blogs_helper.rb +0 -10
- data/app/helpers/discussions_helper.rb +0 -2
- data/app/helpers/external_links_helper.rb +0 -2
- data/app/helpers/feedbacks_helper.rb +0 -2
- data/app/helpers/forums_helper.rb +0 -2
- data/app/helpers/menus_helper.rb +0 -2
- data/app/helpers/pages_helper.rb +0 -192
- data/app/helpers/sitemaps_helper.rb +0 -12
- data/app/mailers/feedback_mailer.rb +0 -10
- data/app/models/ability.rb +0 -43
- data/app/models/access_control_entry.rb +0 -100
- data/app/models/app_config.rb +0 -26
- data/app/models/attachment.rb +0 -10
- data/app/models/blog.rb +0 -10
- data/app/models/discussion.rb +0 -19
- data/app/models/external_link.rb +0 -4
- data/app/models/feedback.rb +0 -11
- data/app/models/forum.rb +0 -4
- data/app/models/forum_message.rb +0 -5
- data/app/models/gallery.rb +0 -5
- data/app/models/image.rb +0 -10
- data/app/models/menu.rb +0 -4
- data/app/models/page.rb +0 -7
- data/app/models/page_revision.rb +0 -2
- data/app/models/profile.rb +0 -12
- data/app/models/role.rb +0 -29
- data/app/models/s3_provider.rb +0 -84
- data/app/models/sitemap.rb +0 -171
- data/app/models/tagging.rb +0 -4
- data/app/models/user.rb +0 -69
- data/app/validators/email_validator.rb +0 -22
- data/app/views/access_control_entries/_form.html.haml +0 -33
- data/app/views/access_control_entries/_index.html.haml +0 -46
- data/app/views/access_control_entries/_show.html.haml +0 -12
- data/app/views/access_control_entries/create.js.haml +0 -3
- data/app/views/access_control_entries/destroy.js.haml +0 -3
- data/app/views/access_control_entries/edit.html.haml +0 -7
- data/app/views/access_control_entries/edit.js.haml +0 -3
- data/app/views/access_control_entries/index.html.haml +0 -2
- data/app/views/access_control_entries/index.js.haml +0 -3
- data/app/views/access_control_entries/new.html.haml +0 -5
- data/app/views/access_control_entries/new.js.haml +0 -3
- data/app/views/access_control_entries/show.html.haml +0 -2
- data/app/views/access_control_entries/show.js.haml +0 -4
- data/app/views/access_control_entries/update.js.haml +0 -3
- data/app/views/app_configs/_form.html.haml +0 -11
- data/app/views/app_configs/_index.html.haml +0 -6
- data/app/views/app_configs/_show.html.haml +0 -4
- data/app/views/app_configs/create.js.haml +0 -3
- data/app/views/app_configs/css.css.haml +0 -2
- data/app/views/app_configs/destroy.js.haml +0 -3
- data/app/views/app_configs/edit.html.haml +0 -2
- data/app/views/app_configs/edit.js.haml +0 -3
- data/app/views/app_configs/index.html.haml +0 -2
- data/app/views/app_configs/index.js.haml +0 -3
- data/app/views/app_configs/new.html.haml +0 -2
- data/app/views/app_configs/new.js.haml +0 -3
- data/app/views/app_configs/show.html.haml +0 -2
- data/app/views/app_configs/show.js.haml +0 -3
- data/app/views/app_configs/update.js.haml +0 -3
- data/app/views/attachments/_form.html.haml +0 -26
- data/app/views/attachments/_index.html.haml +0 -9
- data/app/views/attachments/_show.html.haml +0 -6
- data/app/views/attachments/_uploadify.html.erb +0 -12
- data/app/views/attachments/create.js.haml +0 -3
- data/app/views/attachments/destroy.js.haml +0 -3
- data/app/views/attachments/edit.js.haml +0 -3
- data/app/views/attachments/index.html.haml +0 -2
- data/app/views/attachments/index.js.haml +0 -3
- data/app/views/attachments/new.html.haml +0 -3
- data/app/views/attachments/new.js.haml +0 -3
- data/app/views/attachments/show.html.haml +0 -2
- data/app/views/attachments/show.js.haml +0 -3
- data/app/views/attachments/update.js.haml +0 -3
- data/app/views/blogs/_form.html.haml +0 -22
- data/app/views/blogs/edit.html.haml +0 -8
- data/app/views/blogs/index.html.haml +0 -21
- data/app/views/blogs/index.xml.builder +0 -27
- data/app/views/blogs/new.html.haml +0 -6
- data/app/views/blogs/show.html.haml +0 -25
- data/app/views/discussions/_form.html.haml +0 -16
- data/app/views/discussions/edit.html.haml +0 -7
- data/app/views/discussions/index.html.haml +0 -10
- data/app/views/discussions/new.html.haml +0 -25
- data/app/views/discussions/show.html.haml +0 -16
- data/app/views/external_links/_fields_for.html.haml +0 -2
- data/app/views/external_links/_form.html.haml +0 -18
- data/app/views/external_links/_show.html.haml +0 -7
- data/app/views/external_links/create.js.haml +0 -3
- data/app/views/external_links/destroy.js.haml +0 -3
- data/app/views/external_links/edit.html.haml +0 -7
- data/app/views/external_links/edit.js.haml +0 -3
- data/app/views/external_links/index.html.haml +0 -23
- data/app/views/external_links/index.js.haml +0 -3
- data/app/views/external_links/new.html.haml +0 -5
- data/app/views/external_links/new.js.haml +0 -3
- data/app/views/external_links/show.html.haml +0 -2
- data/app/views/external_links/show.js.haml +0 -3
- data/app/views/external_links/update.js.haml +0 -3
- data/app/views/feedback_mailer/submit_feedback.html.haml +0 -22
- data/app/views/feedbacks/_form.html.haml +0 -37
- data/app/views/feedbacks/index.html.haml +0 -27
- data/app/views/feedbacks/new.html.haml +0 -6
- data/app/views/feedbacks/show.html.haml +0 -19
- data/app/views/forum_messages/_form.html.haml +0 -6
- data/app/views/forum_messages/index.html.haml +0 -11
- data/app/views/forum_messages/new.html.haml +0 -5
- data/app/views/forums/_form.html.haml +0 -13
- data/app/views/forums/edit.html.haml +0 -7
- data/app/views/forums/index.html.haml +0 -23
- data/app/views/forums/new.html.haml +0 -5
- data/app/views/forums/show.html.haml +0 -20
- data/app/views/galleries/_form.html.haml +0 -30
- data/app/views/galleries/_show.html.haml +0 -21
- data/app/views/galleries/edit.html.haml +0 -7
- data/app/views/galleries/index.html.haml +0 -15
- data/app/views/galleries/new.html.haml +0 -5
- data/app/views/galleries/show.html.haml +0 -4
- data/app/views/images/_form.html.haml +0 -10
- data/app/views/images/create.js.haml +0 -3
- data/app/views/images/destroy.js.haml +0 -3
- data/app/views/images/edit.html.haml +0 -7
- data/app/views/images/edit.js.haml +0 -3
- data/app/views/images/index.html.haml +0 -17
- data/app/views/images/index.js.haml +0 -3
- data/app/views/images/new.html.haml +0 -5
- data/app/views/images/new.js.haml +0 -3
- data/app/views/images/show.html.haml +0 -5
- data/app/views/images/show.js.haml +0 -3
- data/app/views/images/update.js.haml +0 -3
- data/app/views/layouts/application.html.haml +0 -59
- data/app/views/layouts/bare.html.haml +0 -2
- data/app/views/layouts/image_dialog.html.haml +0 -18
- data/app/views/loadbehind/_destroy.js.haml +0 -3
- data/app/views/loadbehind/_edit.js.haml +0 -4
- data/app/views/loadbehind/_errors.html.haml +0 -5
- data/app/views/loadbehind/_growl_template.html.haml +0 -65
- data/app/views/loadbehind/_show_box.html.haml +0 -9
- data/app/views/loadbehind/_view.js.haml +0 -4
- data/app/views/loadbehind/growl.js.haml +0 -4
- data/app/views/loadbehind/index.js.haml +0 -4
- data/app/views/menus/_form.html.haml +0 -13
- data/app/views/menus/edit.html.haml +0 -7
- data/app/views/menus/index.html.haml +0 -19
- data/app/views/menus/new.html.haml +0 -5
- data/app/views/menus/show.html.haml +0 -7
- data/app/views/pages/_child_pages_links.html.haml +0 -5
- data/app/views/pages/_control_panel.html.haml +0 -15
- data/app/views/pages/_form.html.haml +0 -27
- data/app/views/pages/_form_fields.html.haml +0 -23
- data/app/views/pages/_show.html.haml +0 -4
- data/app/views/pages/_show_attachment.html.haml +0 -6
- data/app/views/pages/_show_small.html.haml +0 -2
- data/app/views/pages/create.js.haml +0 -3
- data/app/views/pages/destroy.js.haml +0 -3
- data/app/views/pages/edit.html.haml +0 -16
- data/app/views/pages/edit.js.haml +0 -4
- data/app/views/pages/index.html.haml +0 -19
- data/app/views/pages/index.js.haml +0 -3
- data/app/views/pages/new.html.haml +0 -5
- data/app/views/pages/new.js.haml +0 -3
- data/app/views/pages/show.html.haml +0 -20
- data/app/views/pages/show.js.haml +0 -3
- data/app/views/pages/update.js.haml +0 -3
- data/app/views/profiles/_form.html.haml +0 -26
- data/app/views/profiles/edit.html.haml +0 -7
- data/app/views/profiles/index.html.haml +0 -25
- data/app/views/profiles/new.html.haml +0 -5
- data/app/views/profiles/show.html.haml +0 -21
- data/app/views/sitemaps/edit.html.haml +0 -12
- data/app/views/sitemaps/edit.js.erb +0 -0
- data/app/views/sitemaps/index.html.haml +0 -83
- data/app/views/sitemaps/index.json.erb +0 -23
- data/app/views/sitemaps/new.html.haml +0 -8
- data/app/views/sitemaps/new.js.erb +0 -0
- data/app/views/users/edit.html.haml +0 -45
- data/app/views/users/index.html.haml +0 -19
- data/config/amazon_s3.yml +0 -15
- data/db/migrate/0000_devise_create_users.rb +0 -26
- data/db/migrate/0010_add_fields_to_users.rb +0 -28
- data/db/migrate/0020_create_blogs.rb +0 -16
- data/db/migrate/0030_create_galleries.rb +0 -15
- data/db/migrate/0040_create_images.rb +0 -17
- data/db/migrate/0050_create_profiles.rb +0 -24
- data/db/migrate/0060_insert_admin_user_and_roles.rb +0 -24
- data/db/migrate/0070_create_pages.rb +0 -16
- data/db/migrate/0080_create_forums.rb +0 -13
- data/db/migrate/0090_create_discussions.rb +0 -14
- data/db/migrate/0100_create_forum_messages.rb +0 -15
- data/db/migrate/0110_create_access_control_entries.rb +0 -23
- data/db/migrate/0120_create_attachments.rb +0 -17
- data/db/migrate/0130_create_roles.rb +0 -13
- data/db/migrate/0140_create_feedbacks.rb +0 -20
- data/db/migrate/0150_create_external_links.rb +0 -14
- data/db/migrate/0160_create_sitemaps.rb +0 -17
- data/db/migrate/0170_create_menus.rb +0 -14
- data/db/migrate/0180_acts_as_taggable_on_migration.rb +0 -28
- 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,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,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,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,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,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,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,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,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
|
-
\
|
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 © 2010 #{link_to "Apycom jQuery Menus", "http://apycom.com/"}
|
59
|
-
|
@@ -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,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,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,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
|