community_engine 2.3.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +5 -4
- data/CHANGELOG +43 -5
- data/Gemfile +1 -16
- data/README.markdown +22 -19
- data/UPGRADING.markdown +10 -0
- data/about.yml +1 -1
- data/app/assets/javascripts/community_engine.js +187 -18
- data/app/assets/javascripts/cropper.js +86 -565
- data/app/assets/javascripts/forum.js +26 -71
- data/app/assets/javascripts/jquery.migrate.js +521 -0
- data/app/assets/stylesheets/_colors.css.scss +100 -0
- data/app/assets/stylesheets/_font.css.scss +17 -0
- data/app/assets/stylesheets/_forms.css.scss +20 -0
- data/app/assets/stylesheets/_forum.css.scss +0 -0
- data/app/assets/stylesheets/_grid.css.scss +7 -0
- data/app/assets/stylesheets/_layers.css.scss +7 -0
- data/app/assets/stylesheets/_layout.css.scss +28 -0
- data/app/assets/stylesheets/community_engine.css.scss +18 -0
- data/app/assets/stylesheets/cropper.css +6 -182
- data/app/controllers/activities_controller.rb +10 -10
- data/app/controllers/admin_controller.rb +23 -23
- data/app/controllers/ads_controller.rb +16 -5
- data/app/controllers/albums_controller.rb +11 -5
- data/app/controllers/base_controller.rb +5 -8
- data/app/controllers/categories_controller.rb +31 -31
- data/app/controllers/clippings_controller.rb +18 -12
- data/app/controllers/comments_controller.rb +17 -8
- data/app/controllers/events_controller.rb +25 -21
- data/app/controllers/favorites_controller.rb +12 -12
- data/app/controllers/forums_controller.rb +20 -9
- data/app/controllers/friendships_controller.rb +41 -48
- data/app/controllers/homepage_features_controller.rb +11 -5
- data/app/controllers/invitations_controller.rb +15 -9
- data/app/controllers/messages_controller.rb +25 -19
- data/app/controllers/metro_areas_controller.rb +9 -3
- data/app/controllers/moderators_controller.rb +1 -1
- data/app/controllers/monitorships_controller.rb +2 -2
- data/app/controllers/pages_controller.rb +16 -4
- data/app/controllers/password_resets_controller.rb +0 -1
- data/app/controllers/photos_controller.rb +32 -30
- data/app/controllers/posts_controller.rb +33 -17
- data/app/controllers/rsvps_controller.rb +8 -4
- data/app/controllers/sb_posts_controller.rb +22 -18
- data/app/controllers/sessions_controller.rb +2 -1
- data/app/controllers/sitemap_controller.rb +8 -8
- data/app/controllers/statistics_controller.rb +9 -8
- data/app/controllers/tags_controller.rb +26 -24
- data/app/controllers/topics_controller.rb +10 -6
- data/app/controllers/users_controller.rb +63 -34
- data/app/helpers/base_helper.rb +119 -29
- data/app/helpers/friendships_helper.rb +3 -3
- data/app/helpers/posts_helper.rb +5 -7
- data/app/models/acts_as_taggable_on/tag.rb +12 -13
- data/app/models/ad.rb +2 -5
- data/app/models/album.rb +0 -2
- data/app/models/category.rb +6 -7
- data/app/models/clipping.rb +2 -5
- data/app/models/clipping_image.rb +5 -5
- data/app/models/comment.rb +4 -5
- data/app/models/country.rb +2 -4
- data/app/models/event.rb +1 -2
- data/app/models/favorite.rb +5 -10
- data/app/models/forum.rb +0 -2
- data/app/models/friendship.rb +3 -5
- data/app/models/friendship_status.rb +0 -2
- data/app/models/homepage_feature.rb +4 -6
- data/app/models/invitation.rb +6 -8
- data/app/models/message.rb +25 -26
- data/app/models/message_thread.rb +1 -1
- data/app/models/metro_area.rb +0 -2
- data/app/models/page.rb +0 -2
- data/app/models/photo.rb +8 -8
- data/app/models/poll.rb +7 -9
- data/app/models/post.rb +11 -15
- data/app/models/role.rb +1 -2
- data/app/models/rsvp.rb +0 -3
- data/app/models/sb_post.rb +14 -9
- data/app/models/state.rb +0 -2
- data/app/models/topic.rb +5 -6
- data/app/models/user.rb +50 -63
- data/app/models/vote.rb +1 -1
- data/app/views/activities/_activity.html.haml +9 -9
- data/app/views/activities/destroy.js.erb +1 -0
- data/app/views/activities/index.html.haml +13 -13
- data/app/views/activities/network.html.haml +10 -13
- data/app/views/admin/comments.html.haml +48 -70
- data/app/views/admin/events.html.haml +20 -27
- data/app/views/admin/messages.html.haml +2 -3
- data/app/views/admin/update.js.erb +1 -0
- data/app/views/admin/users.html.haml +51 -66
- data/app/views/ads/_form.html.haml +21 -0
- data/app/views/ads/edit.html.haml +6 -46
- data/app/views/ads/index.html.haml +25 -39
- data/app/views/ads/new.html.haml +4 -43
- data/app/views/ads/show.html.haml +18 -35
- data/app/views/albums/_form.html.haml +17 -12
- data/app/views/albums/edit.html.haml +12 -14
- data/app/views/albums/new.html.haml +8 -13
- data/app/views/albums/show.html.haml +25 -32
- data/app/views/base/_homepage_banner_message.html.haml +5 -19
- data/app/views/base/advertise.html.haml +5 -8
- data/app/views/base/site_index.html.haml +25 -27
- data/app/views/categories/_form.html.haml +8 -0
- data/app/views/categories/_menu_item.html.haml +13 -0
- data/app/views/categories/_tips.html.haml +2 -2
- data/app/views/categories/edit.html.haml +3 -33
- data/app/views/categories/index.html.haml +18 -28
- data/app/views/categories/new.html.haml +3 -8
- data/app/views/categories/show.html.haml +33 -36
- data/app/views/clippings/_clipping.html.haml +10 -17
- data/app/views/clippings/_favorite.html.haml +14 -0
- data/app/views/clippings/_form.html.haml +15 -0
- data/app/views/clippings/_images.html.haml +1 -1
- data/app/views/clippings/_menu_item.html.haml +6 -0
- data/app/views/clippings/edit.html.haml +12 -23
- data/app/views/clippings/index.html.haml +29 -30
- data/app/views/clippings/load_images_from_uri.js.erb +1 -0
- data/app/views/clippings/new.html.haml +9 -26
- data/app/views/clippings/new_clipping.html.haml +30 -77
- data/app/views/clippings/show.html.haml +48 -53
- data/app/views/clippings/site_index.html.haml +19 -32
- data/app/views/comments/_comment.html.haml +40 -40
- data/app/views/comments/_comment_form.html.haml +22 -46
- data/app/views/comments/_edit_form.html.haml +13 -28
- data/app/views/comments/create.js.erb +25 -0
- data/app/views/comments/destroy.js.erb +3 -0
- data/app/views/comments/edit.js.erb +11 -0
- data/app/views/comments/index.html.haml +12 -22
- data/app/views/comments/update.js.erb +14 -0
- data/app/views/events/_event.html.haml +26 -24
- data/app/views/events/_form.html.haml +18 -0
- data/app/views/events/_menu_item.html.haml +6 -0
- data/app/views/events/_subscribe.html.haml +1 -1
- data/app/views/events/edit.html.haml +7 -32
- data/app/views/events/index.html.haml +11 -19
- data/app/views/events/new.html.haml +2 -31
- data/app/views/events/show.html.haml +54 -24
- data/app/views/favorites/create.js.erb +10 -0
- data/app/views/favorites/destroy.js.erb +6 -0
- data/app/views/favorites/index.html.haml +6 -8
- data/app/views/forums/_form.html.haml +10 -20
- data/app/views/forums/_menu_item.html.haml +6 -0
- data/app/views/forums/edit.html.haml +8 -10
- data/app/views/forums/index.html.haml +56 -64
- data/app/views/forums/new.html.haml +5 -8
- data/app/views/forums/show.html.haml +65 -72
- data/app/views/friendships/_friendship.html.haml +14 -16
- data/app/views/friendships/accepted.html.haml +7 -11
- data/app/views/friendships/create.js.haml +1 -0
- data/app/views/friendships/denied.html.haml +4 -8
- data/app/views/friendships/pending.html.haml +4 -6
- data/app/views/friendships/show.html.haml +10 -11
- data/app/views/homepage_features/_form.html.haml +6 -0
- data/app/views/homepage_features/edit.html.haml +5 -30
- data/app/views/homepage_features/index.html.haml +22 -28
- data/app/views/homepage_features/new.html.haml +2 -30
- data/app/views/homepage_features/show.html.haml +27 -29
- data/app/views/invitations/index.html.haml +8 -0
- data/app/views/invitations/new.html.haml +21 -30
- data/app/views/kaminari/bootstrap/_first_page.html.erb +13 -0
- data/app/views/kaminari/bootstrap/_gap.html.erb +8 -0
- data/app/views/kaminari/bootstrap/_last_page.html.erb +13 -0
- data/app/views/kaminari/bootstrap/_next_page.html.erb +13 -0
- data/app/views/kaminari/bootstrap/_page.html.erb +12 -0
- data/app/views/kaminari/bootstrap/_paginator.html.erb +25 -0
- data/app/views/kaminari/bootstrap/_prev_page.html.erb +13 -0
- data/app/views/layouts/application.html.haml +26 -37
- data/app/views/messages/_form.html.haml +6 -12
- data/app/views/messages/_inbox.html.haml +34 -39
- data/app/views/messages/_menu_item.html.haml +11 -0
- data/app/views/messages/_sent.html.haml +22 -33
- data/app/views/messages/_sidebar_nav.html.haml +12 -9
- data/app/views/messages/index.html.haml +2 -2
- data/app/views/messages/new.html.haml +2 -9
- data/app/views/messages/show.html.haml +28 -36
- data/app/views/metro_areas/_form.html.haml +6 -0
- data/app/views/metro_areas/edit.html.haml +6 -14
- data/app/views/metro_areas/index.html.haml +19 -26
- data/app/views/metro_areas/new.html.haml +4 -14
- data/app/views/metro_areas/show.html.haml +13 -21
- data/app/views/moderators/_toggle.html.haml +6 -0
- data/app/views/moderators/create.js.erb +5 -0
- data/app/views/moderators/destroy.js.erb +1 -0
- data/app/views/monitorships/create.js.erb +1 -0
- data/app/views/monitorships/destroy.js.erb +1 -0
- data/app/views/pages/_form.html.haml +16 -23
- data/app/views/pages/edit.html.haml +2 -14
- data/app/views/pages/index.html.haml +32 -32
- data/app/views/pages/new.html.haml +5 -12
- data/app/views/pages/show.html.haml +4 -8
- data/app/views/password_resets/edit.html.haml +6 -14
- data/app/views/password_resets/new.html.haml +7 -11
- data/app/views/photo_manager/index.html.haml +45 -43
- data/app/views/photos/_form.html.haml +24 -0
- data/app/views/photos/_manage_photos.html.haml +14 -6
- data/app/views/photos/_show_image_list.html.haml +2 -2
- data/app/views/photos/create.js.erb +1 -0
- data/app/views/photos/edit.html.haml +10 -38
- data/app/views/photos/index.html.haml +20 -20
- data/app/views/photos/manage_photos.js.erb +5 -0
- data/app/views/photos/new.html.haml +11 -49
- data/app/views/photos/recent.html.haml +6 -6
- data/app/views/photos/show.html.haml +48 -52
- data/app/views/polls/_edit.html.haml +6 -10
- data/app/views/polls/_excerpt.html.haml +3 -4
- data/app/views/polls/_new.html.haml +10 -9
- data/app/views/polls/_poll_ui.html.haml +30 -34
- data/app/views/posts/_author_profile.html.haml +12 -11
- data/app/views/posts/_favorited_post.html.haml +8 -10
- data/app/views/posts/_form.html.haml +40 -0
- data/app/views/posts/_menu_item.html.haml +6 -0
- data/app/views/posts/_post.html.haml +27 -24
- data/app/views/posts/_send_to_friend.html.haml +26 -0
- data/app/views/posts/edit.html.haml +11 -48
- data/app/views/posts/featured.html.haml +7 -12
- data/app/views/posts/index.html.haml +14 -18
- data/app/views/posts/manage.html.haml +44 -59
- data/app/views/posts/new.html.haml +9 -64
- data/app/views/posts/popular.html.haml +25 -30
- data/app/views/posts/preview.html.haml +27 -26
- data/app/views/posts/recent.html.haml +20 -27
- data/app/views/posts/send_to_friend.js.erb +3 -0
- data/app/views/posts/show.html.haml +67 -76
- data/app/views/rsvps/_form.html.haml +3 -0
- data/app/views/rsvps/edit.html.haml +3 -9
- data/app/views/rsvps/new.html.haml +3 -9
- data/app/views/sb_posts/_dummy_forum_post.html.haml +13 -0
- data/app/views/sb_posts/_edit.html.haml +6 -0
- data/app/views/sb_posts/_edit_script.js.erb +14 -0
- data/app/views/sb_posts/_reply_form.html.haml +14 -35
- data/app/views/sb_posts/_reply_script.js.erb +13 -0
- data/app/views/sb_posts/_sb_post.html.haml +31 -33
- data/app/views/sb_posts/create.js.erb +30 -0
- data/app/views/sb_posts/destroy.js.erb +2 -0
- data/app/views/sb_posts/edit.html.erb +4 -4
- data/app/views/sb_posts/edit.js.erb +14 -0
- data/app/views/sb_posts/index.html.haml +3 -16
- data/app/views/sb_posts/monitored.html.erb +3 -9
- data/app/views/sb_posts/update.js.erb +11 -0
- data/app/views/sessions/_menu_item.html.haml +28 -0
- data/app/views/sessions/new.html.haml +19 -24
- data/app/views/shared/_add_friend_link.html.haml +9 -0
- data/app/views/shared/_admin_nav.html.haml +6 -8
- data/app/views/shared/_contact.html.haml +1 -1
- data/app/views/shared/_end_javascript.html.haml +4 -4
- data/app/views/shared/_explore.html.haml +7 -6
- data/app/views/shared/_footer_content.html.haml +12 -10
- data/app/views/shared/_footer_links.html.haml +18 -0
- data/app/views/shared/_friend_link.html.haml +25 -0
- data/app/views/shared/_header.html.haml +22 -42
- data/app/views/shared/_jumbotron.html.haml +3 -0
- data/app/views/shared/_load_tinymce.js.erb +15 -0
- data/app/views/shared/_location_chooser.html.haml +26 -17
- data/app/views/shared/_login_sidebar.html.haml +6 -5
- data/app/views/shared/_messages.html.haml +6 -8
- data/app/views/shared/_scripts_and_styles.html.haml +1 -2
- data/app/views/shared/_sidebar.html.haml +1 -0
- data/app/views/shared/_tag_auto_complete.html.haml +19 -0
- data/app/views/shared/_widget.html.haml +3 -0
- data/app/views/sitemap/index.html.haml +15 -20
- data/app/views/statistics/index.html.haml +32 -40
- data/app/views/tags/edit.html.haml +12 -19
- data/app/views/tags/index.html.haml +16 -25
- data/app/views/tags/manage.html.haml +24 -33
- data/app/views/tags/show.html.haml +52 -58
- data/app/views/topics/_form.html.haml +23 -25
- data/app/views/topics/_recent_topics_sidebar.haml +1 -1
- data/app/views/topics/edit.html.haml +7 -9
- data/app/views/topics/new.html.haml +6 -21
- data/app/views/topics/show.html.haml +48 -106
- data/app/views/user_notifier/follow_up_comment_notice.text.erb +1 -1
- data/app/views/user_notifier/message_notification.text.erb +1 -1
- data/app/views/user_notifier/new_forum_post_notice.text.erb +1 -1
- data/app/views/users/_dashboard_nav.html.haml +36 -39
- data/app/views/users/_menu_item.html.haml +6 -0
- data/app/views/users/_omniauth_connect.html.haml +4 -4
- data/app/views/users/_profile_completeness.html.haml +3 -3
- data/app/views/users/_profile_user_info_sidebar.html.haml +40 -43
- data/app/views/users/_search_options.html.haml +9 -7
- data/app/views/users/_sidebar_user.html.haml +1 -1
- data/app/views/users/_user.html.haml +27 -28
- data/app/views/users/crop_profile_photo.html.haml +30 -37
- data/app/views/users/dashboard.html.haml +37 -41
- data/app/views/users/edit.html.haml +53 -71
- data/app/views/users/edit_account.html.haml +44 -64
- data/app/views/users/forgot_username.html.haml +6 -12
- data/app/views/users/index.html.haml +4 -14
- data/app/views/users/invite.html.haml +14 -25
- data/app/views/users/new.html.haml +27 -48
- data/app/views/users/resend_activation.html.haml +7 -12
- data/app/views/users/show.html.haml +88 -90
- data/app/views/users/signup_completed.html.haml +7 -7
- data/app/views/users/statistics.html.haml +17 -18
- data/app/views/users/update.js.erb +1 -0
- data/app/views/users/upload_profile_photo.html.haml +10 -15
- data/app/views/users/welcome_about.html.haml +54 -61
- data/app/views/users/welcome_invite.html.haml +16 -25
- data/app/views/users/welcome_photo.html.haml +18 -27
- data/app/views/votes/create.js.erb +5 -0
- data/community_engine.gemspec +49 -41
- data/config/application_config.rb +13 -16
- data/config/initializers/mce_options.rb +9 -32
- data/config/initializers/recaptcha_constants.rb +2 -2
- data/config/locales/de-DE.yml +1 -17
- data/config/locales/en.yml +18 -32
- data/config/locales/es-AR.yml +2 -14
- data/config/locales/es-ES.yml +0 -6
- data/config/locales/es-MX.yml +1 -9
- data/config/locales/fr-FR.yml +3 -17
- data/config/locales/ja-JP.yml +2 -18
- data/config/locales/ru-RU.yml +3 -21
- data/config/locales/sr-CP.yml +0 -4
- data/config/locales/sv-SE.yml +3 -20
- data/config/routes.rb +37 -42
- data/db/migrate/016_add_metro_areas.rb +2 -2
- data/db/migrate/039_create_activities_table.rb +2 -2
- data/db/migrate/056_create_roles.rb +8 -6
- data/db/migrate/069_create_pages.rb +3 -3
- data/db/migrate/081_upgrade_to_friendly_id_5x.rb +25 -0
- data/db/migrate/082_upgrade_to_acts_as_commentable_4x.rb +29 -0
- data/lib/activity_tracker.rb +3 -0
- data/{vendor/plugins/activity_tracker/lib → lib/activity_tracker}/activity.rb +6 -6
- data/{vendor/plugins/activity_tracker/lib → lib/activity_tracker}/activity_tracker.rb +0 -0
- data/{vendor/plugins/acts_as_publishable/init.rb → lib/acts_as_publishable.rb} +1 -1
- data/{vendor/plugins/acts_as_publishable/lib → lib/acts_as_publishable}/acts_as_publishable.rb +3 -3
- data/lib/community_engine.rb +31 -9
- data/lib/community_engine/engine.rb +17 -1
- data/lib/community_engine/engines_extensions.rb +1 -3
- data/lib/community_engine/version.rb +3 -3
- data/{config/initializers → lib/paperclip_processors}/cropper.rb +3 -3
- data/lib/resource_feeder.rb +3 -0
- data/{vendor/plugins/resource_feeder/lib → lib}/resource_feeder/atom.rb +0 -0
- data/{vendor/plugins/resource_feeder/lib → lib}/resource_feeder/rss.rb +0 -0
- data/{vendor/plugins/white_list/init.rb → lib/white_list.rb} +1 -1
- data/{vendor/plugins/white_list/lib → lib/white_list}/white_list_helper.rb +0 -0
- data/test/fixtures/messages.yml +2 -2
- data/test/functional/admin_controller_test.rb +11 -11
- data/test/functional/ads_controller_test.rb +11 -11
- data/test/functional/albums_controller_test.rb +4 -4
- data/test/functional/categories_controller_test.rb +4 -4
- data/test/functional/clippings_controller_test.rb +4 -4
- data/test/functional/comments_controller_test.rb +20 -16
- data/test/functional/events_controller_test.rb +6 -6
- data/test/functional/forums_controller_test.rb +8 -8
- data/test/functional/friendships_controller_test.rb +13 -18
- data/test/functional/homepage_features_controller_test.rb +5 -5
- data/test/functional/messages_controller_test.rb +6 -2
- data/test/functional/metro_areas_controller_test.rb +7 -7
- data/test/functional/moderators_controller_test.rb +1 -1
- data/test/functional/pages_controller_test.rb +2 -2
- data/test/functional/password_reset_controller_test.rb +2 -2
- data/test/functional/photos_controller_test.rb +16 -15
- data/test/functional/posts_controller_test.rb +4 -4
- data/test/functional/rsvps_controller_test.rb +6 -6
- data/test/functional/sb_posts_controller_test.rb +53 -50
- data/test/functional/sessions_controller_test.rb +4 -1
- data/test/functional/tags_controller_test.rb +1 -1
- data/test/functional/topics_controller_test.rb +10 -10
- data/test/functional/users_controller_test.rb +32 -19
- data/test/functional/votes_controller_test.rb +1 -1
- data/test/test_helper.rb +3 -1
- data/test/testapp/config/application.rb +1 -9
- data/test/testapp/config/environments/development.rb +1 -2
- data/test/testapp/config/environments/production.rb +2 -0
- data/test/testapp/config/environments/test.rb +1 -2
- data/test/testapp/config/initializers/omniauth.rb +3 -3
- data/test/testapp/config/initializers/secret_token.rb +1 -0
- data/test/testapp/db/schema.rb +143 -152
- data/test/unit/category_test.rb +2 -2
- data/test/unit/comment_test.rb +64 -53
- data/test/unit/event_test.rb +4 -4
- data/test/unit/forum_test.rb +1 -1
- data/test/unit/message_test.rb +7 -1
- data/test/unit/page_test.rb +2 -2
- data/test/unit/post_test.rb +47 -47
- data/test/unit/sb_post_test.rb +24 -20
- data/test/unit/topic_test.rb +7 -6
- data/test/unit/user_test.rb +75 -52
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/javascripts/jcrop/jquery.Jcrop.js +1699 -0
- data/vendor/assets/javascripts/jcrop/jquery.color.js +661 -0
- data/vendor/assets/javascripts/tag-it/tag-it.js +597 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/assets/stylesheets/jcrop/Jcrop.gif +0 -0
- data/vendor/assets/stylesheets/jcrop/jquery.Jcrop.min.css +28 -0
- data/vendor/assets/stylesheets/tag-it/tag-it.css +69 -0
- data/vendor/assets/stylesheets/tag-it/tagit.ui-zendesk.css +107 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/acts_as_publishable/README +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/acts_as_publishable/Rakefile +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/acts_as_publishable/generators/publishing/publishing_generator.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/acts_as_publishable/generators/publishing/templates/migration.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/acts_as_publishable/install.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/acts_as_publishable/test/acts_as_publishable_test.rb +0 -0
- data/vendor/{plugins/activity_tracker → converted2.3plugins_to_lib_leftovers/acts_as_publishable}/uninstall.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/resource_feeder/README +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/resource_feeder/Rakefile +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/resource_feeder/test/atom_feed_test.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/resource_feeder/test/rss_feed_test.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/resource_feeder/test/test_helper.rb +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/white_list/README +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/white_list/Rakefile +0 -0
- data/vendor/{plugins → converted2.3plugins_to_lib_leftovers}/white_list/test/white_list_test.rb +0 -0
- metadata +348 -302
- data/app/assets/images/bg_h6btn.gif +0 -0
- data/app/assets/images/bg_navbar.gif +0 -0
- data/app/assets/images/clearbits/bg_rounded.gif +0 -0
- data/app/assets/images/clearbits/comment.gif +0 -0
- data/app/assets/images/clearbits/lock.gif +0 -0
- data/app/assets/images/clearbits/smile.gif +0 -0
- data/app/assets/images/close.gif +0 -0
- data/app/assets/images/cropper/marqueeHoriz.gif +0 -0
- data/app/assets/images/cropper/marqueeVert.gif +0 -0
- data/app/assets/images/feed.png +0 -0
- data/app/assets/images/icons/31.png +0 -0
- data/app/assets/images/icons/52.png +0 -0
- data/app/assets/images/icons/accept.png +0 -0
- data/app/assets/images/icons/activity_default.png +0 -0
- data/app/assets/images/icons/add.png +0 -0
- data/app/assets/images/icons/book.png +0 -0
- data/app/assets/images/icons/bullet_arrow_down.png +0 -0
- data/app/assets/images/icons/bullet_arrow_down_50.png +0 -0
- data/app/assets/images/icons/clipping.png +0 -0
- data/app/assets/images/icons/comment.png +0 -0
- data/app/assets/images/icons/comments.png +0 -0
- data/app/assets/images/icons/date.png +0 -0
- data/app/assets/images/icons/delete.png +0 -0
- data/app/assets/images/icons/email.png +0 -0
- data/app/assets/images/icons/email_edit.png +0 -0
- data/app/assets/images/icons/email_go.png +0 -0
- data/app/assets/images/icons/email_open.png +0 -0
- data/app/assets/images/icons/group_go.png +0 -0
- data/app/assets/images/icons/heart.png +0 -0
- data/app/assets/images/icons/heart_add.png +0 -0
- data/app/assets/images/icons/heart_off.png +0 -0
- data/app/assets/images/icons/page_white.png +0 -0
- data/app/assets/images/icons/page_white_magnify.png +0 -0
- data/app/assets/images/icons/picture.png +0 -0
- data/app/assets/images/icons/poll.png +0 -0
- data/app/assets/images/icons/post.png +0 -0
- data/app/assets/images/icons/printer.png +0 -0
- data/app/assets/images/icons/rss.png +0 -0
- data/app/assets/images/icons/slides.png +0 -0
- data/app/assets/images/icons/tag_blue.png +0 -0
- data/app/assets/images/icons/user.png +0 -0
- data/app/assets/images/icons/user_add.png +0 -0
- data/app/assets/images/icons/user_edit.png +0 -0
- data/app/assets/images/icons/user_go.png +0 -0
- data/app/assets/images/icons/vote.png +0 -0
- data/app/assets/images/icons/world.png +0 -0
- data/app/assets/images/icons/wrench.png +0 -0
- data/app/assets/images/logo.gif +0 -0
- data/app/assets/images/reply_background.png +0 -0
- data/app/assets/images/search.gif +0 -0
- data/app/assets/images/thumb.gif +0 -0
- data/app/assets/javascripts/builder.js +0 -136
- data/app/assets/javascripts/calendarview.js +0 -839
- data/app/assets/javascripts/lightbox.js +0 -151
- data/app/assets/javascripts/prototip-min.js +0 -27
- data/app/assets/javascripts/rails.js +0 -202
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/css/advimage.css +0 -84
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/editor_plugin.js +0 -52
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/editor_plugin_src.js +0 -45
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/image.htm +0 -180
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/img/sample.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/js/functions.js +0 -508
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/langs/en.js +0 -3
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/langs/en_dlg.js +0 -43
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/editor_plugin.js +0 -8
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/editor_plugin_src.js +0 -1001
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress10.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress11.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress12.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress2.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress3.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress4.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress5.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress6.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress7.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress8.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/progress9.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/restore.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/images/restore.png +0 -0
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/langs/da.js +0 -5
- data/app/assets/javascripts/tinymce/plugins/tinyautosave/langs/en.js +0 -5
- data/app/assets/stylesheets/community_engine.css +0 -6
- data/app/assets/stylesheets/forum.css +0 -605
- data/app/assets/stylesheets/prototip.css +0 -73
- data/app/assets/stylesheets/reset-fonts-grids.css +0 -8
- data/app/assets/stylesheets/screen.css +0 -977
- data/app/helpers/monitorships_helper.rb +0 -2
- data/app/views/activities/_icon.html.haml +0 -14
- data/app/views/activities/destroy.js.rjs +0 -1
- data/app/views/clippings/_meta.html.haml +0 -26
- data/app/views/clippings/load_images_from_uri.js.rjs +0 -1
- data/app/views/comments/create.js.rjs +0 -20
- data/app/views/comments/edit.js.rjs +0 -7
- data/app/views/comments/update.js.rjs +0 -9
- data/app/views/favorites/create.js.rjs +0 -17
- data/app/views/favorites/destroy.js.rjs +0 -14
- data/app/views/favorites/show.html.haml +0 -13
- data/app/views/friendships/_friendships.html.erb +0 -14
- data/app/views/friendships/index.html.erb +0 -3
- data/app/views/friendships/index.xml.builder +0 -29
- data/app/views/invitations/index.html.erb +0 -16
- data/app/views/moderators/_toggle.html.erb +0 -14
- data/app/views/moderators/create.js.rjs +0 -5
- data/app/views/moderators/destroy.js.rjs +0 -1
- data/app/views/monitorships/create.js.rjs +0 -4
- data/app/views/monitorships/destroy.js.rjs +0 -4
- data/app/views/photos/manage_photos.js.rjs +0 -5
- data/app/views/polls/_polls_sidebar.html.haml +0 -8
- data/app/views/posts/_send_to_friend.html.erb +0 -29
- data/app/views/sb_posts/_dummy_forum_post.html.erb +0 -13
- data/app/views/sb_posts/_edit.html.erb +0 -31
- data/app/views/sb_posts/create.js.rjs +0 -16
- data/app/views/sb_posts/edit.js.rjs +0 -6
- data/app/views/sb_posts/update.js.rjs +0 -5
- data/app/views/shared/_user_menu.html.haml +0 -21
- data/app/views/votes/create.js.rjs +0 -6
- data/db/migrate/090_add_comment_role.rb +0 -15
- data/vendor/plugins/activity_tracker/README +0 -4
- data/vendor/plugins/activity_tracker/Rakefile +0 -22
- data/vendor/plugins/activity_tracker/generators/activity_migration/USAGE +0 -13
- data/vendor/plugins/activity_tracker/generators/activity_migration/activity_migration_generator.rb +0 -11
- data/vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb +0 -17
- data/vendor/plugins/activity_tracker/init.rb +0 -1
- data/vendor/plugins/activity_tracker/install.rb +0 -1
- data/vendor/plugins/activity_tracker/tasks/activity_tracker_tasks.rake +0 -4
- data/vendor/plugins/activity_tracker/test/abstract_unit.rb +0 -47
- data/vendor/plugins/activity_tracker/test/activity_tracker_test.rb +0 -48
- data/vendor/plugins/activity_tracker/test/database.yml +0 -18
- data/vendor/plugins/activity_tracker/test/debug.log +0 -3329
- data/vendor/plugins/activity_tracker/test/fixtures/test_post.rb +0 -5
- data/vendor/plugins/activity_tracker/test/fixtures/test_posts.yml +0 -3
- data/vendor/plugins/activity_tracker/test/fixtures/test_user.rb +0 -4
- data/vendor/plugins/activity_tracker/test/fixtures/test_users.yml +0 -6
- data/vendor/plugins/activity_tracker/test/schema.rb +0 -21
- data/vendor/plugins/acts_as_list/README +0 -23
- data/vendor/plugins/acts_as_list/init.rb +0 -3
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +0 -256
- data/vendor/plugins/acts_as_list/test/list_test.rb +0 -332
- data/vendor/plugins/acts_as_publishable/uninstall.rb +0 -1
- data/vendor/plugins/auto_complete/README +0 -23
- data/vendor/plugins/auto_complete/Rakefile +0 -22
- data/vendor/plugins/auto_complete/init.rb +0 -2
- data/vendor/plugins/auto_complete/lib/auto_complete.rb +0 -47
- data/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +0 -143
- data/vendor/plugins/auto_complete/test/auto_complete_test.rb +0 -67
- data/vendor/plugins/enumerations_mixin/.gitignore +0 -1
- data/vendor/plugins/enumerations_mixin/Gemfile +0 -1
- data/vendor/plugins/enumerations_mixin/LICENSE +0 -20
- data/vendor/plugins/enumerations_mixin/README.md +0 -120
- data/vendor/plugins/enumerations_mixin/README_ENUMERATIONS +0 -163
- data/vendor/plugins/enumerations_mixin/Rakefile +0 -14
- data/vendor/plugins/enumerations_mixin/VERSION +0 -1
- data/vendor/plugins/enumerations_mixin/enumerations_mixin.gemspec +0 -44
- data/vendor/plugins/enumerations_mixin/examples/virtual_enumerations_sample.rb +0 -76
- data/vendor/plugins/enumerations_mixin/init.rb +0 -21
- data/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb +0 -180
- data/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb +0 -60
- data/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb +0 -68
- data/vendor/plugins/enumerations_mixin/lib/enumerations_mixin.rb +0 -12
- data/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb +0 -76
- data/vendor/plugins/prototype_legacy_helper/README.markdown +0 -13
- data/vendor/plugins/prototype_legacy_helper/init.rb +0 -1
- data/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +0 -432
- data/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +0 -297
- data/vendor/plugins/resource_feeder/init.rb +0 -2
- data/vendor/plugins/resource_feeder/lib/resource_feeder.rb +0 -2
- data/vendor/plugins/respond_to_parent/MIT-LICENSE +0 -20
- data/vendor/plugins/respond_to_parent/README +0 -47
- data/vendor/plugins/respond_to_parent/Rakefile +0 -22
- data/vendor/plugins/respond_to_parent/init.rb +0 -1
- data/vendor/plugins/respond_to_parent/install.rb +0 -1
- data/vendor/plugins/respond_to_parent/lib/responds_to_parent.rb +0 -70
- data/vendor/plugins/respond_to_parent/test/responds_to_parent_test.rb +0 -10
- data/vendor/plugins/respond_to_parent/test/test_helper.rb +0 -6
- data/vendor/plugins/respond_to_parent/uninstall.rb +0 -1
@@ -1,15 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
.form-group
|
2
|
+
%label.control-label{:for => 'poll_question'}
|
3
|
+
=:question.l
|
4
4
|
=text_field_tag 'poll[question]', poll.question, :class => 'text'
|
5
5
|
|
6
|
-
|
7
|
-
%label
|
8
|
-
|
6
|
+
.form-group
|
7
|
+
%label.control-label
|
8
|
+
=:choices.l
|
9
9
|
%ol#options
|
10
10
|
-poll.choices.each do |choice|
|
11
11
|
%li= text_field_tag "choices[]", choice.description, :class => 'text'
|
12
|
-
|
13
|
-
%br
|
14
|
-
%br
|
15
|
-
%hr
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
= link_to :vote_now.l, new_vote_path(:post_id => poll.post.id), {:title => 'Log in to vote', :class => 'vote'}
|
1
|
+
= fa_icon "signal"
|
2
|
+
= poll.question
|
3
|
+
= link_to :vote_now.l, new_vote_path(:post_id => poll.post.id), {:title => 'Log in to vote', :class => 'vote'}, :class => 'btn btn-xs btn-primary'
|
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
.form-group
|
2
|
+
%label.control-label{:for => 'poll_question'}
|
3
|
+
=:question.l
|
4
|
+
=text_field_tag 'poll[question]', nil, :class => 'text'
|
5
|
+
.form-group
|
6
|
+
%label.control-label
|
7
|
+
=:choices.l
|
8
|
+
%ul.list#options
|
9
|
+
-3.times do
|
10
|
+
%li= text_field_tag 'choices[]', nil, :class => 'text'
|
4
11
|
|
5
|
-
%label
|
6
|
-
=:choices.l
|
7
|
-
%ul.list#options
|
8
|
-
-3.times do
|
9
|
-
%li= text_field_tag 'choices[]', nil, :class => 'text'
|
10
|
-
|
@@ -1,37 +1,33 @@
|
|
1
|
-
.
|
2
|
-
.poll{:id => "poll_ui_#{poll.id}"}
|
3
|
-
- has_voted = logged_in? && poll.voted?(current_user)
|
1
|
+
- has_voted = logged_in? && poll.voted?(current_user)
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
.clearfix
|
4
|
+
%h2
|
5
|
+
= poll.question
|
6
|
+
%small
|
7
|
+
=:total_votes.l
|
8
|
+
%span.badge.badge-info
|
9
|
+
= poll.votes.size
|
10
|
+
|
11
|
+
%table.table.poll
|
12
|
+
-poll.choices.each do |choice|
|
14
13
|
%tr
|
14
|
+
|
15
15
|
-if @is_current_user || has_voted
|
16
|
-
%td
|
17
|
-
.
|
18
|
-
.bar{:style => "width:#{choice.votes_percentage}%"}
|
19
|
-
=
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
.clear
|
37
|
-
%br
|
16
|
+
%td
|
17
|
+
.progress
|
18
|
+
.progress-bar.progress-bar-success{:style => "width:#{choice.votes_percentage}%"}
|
19
|
+
=choice.votes_percentage
|
20
|
+
\%
|
21
|
+
-else
|
22
|
+
%td
|
23
|
+
- if logged_in? && !has_voted
|
24
|
+
= link_to :vote.l, votes_path(:choice_id => choice), :method => :post, :class => 'act-via-ajax'
|
25
|
+
- elsif !logged_in?
|
26
|
+
= link_to :vote.l, new_vote_path(:post_id => poll.post.id), {:title => :log_in_to_vote.l, :class => 'vote'}
|
27
|
+
%td= choice.description
|
28
|
+
-if !has_voted
|
29
|
+
%p
|
30
|
+
= :you_must_vote_to_see_the_results.l
|
31
|
+
-elsif logged_in?
|
32
|
+
%p
|
33
|
+
= :you_have_already_voted.l
|
@@ -1,21 +1,22 @@
|
|
1
|
-
-
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
-widget do
|
2
|
+
%h4
|
3
|
+
.small=:author.l
|
4
|
+
%ul.list-unstyled
|
5
|
+
%li
|
6
|
+
= link_to tag(:img, :src => user.avatar_photo_url(:medium), "alt"=>"#{user.login}", :class => "img-responsive"), user_path(user), :title => "#{user.login}'s"+ :profile.l
|
7
|
+
%li
|
7
8
|
= link_to user.login, user_path(user), :class => 'url'
|
8
9
|
-if user.featured_writer?
|
9
10
|
%small=:featured_writer.l
|
10
|
-
%
|
11
|
+
%li
|
11
12
|
- if user.description
|
12
13
|
= truncate_words( user.description, 12, '...')
|
13
|
-
%
|
14
|
+
%li
|
14
15
|
=:member_since.l+" #{I18n.l(user.created_at, :format => :short_published_date)}"
|
15
|
-
%
|
16
|
+
%li
|
16
17
|
- if user.posts.count == 1
|
17
18
|
= link_to :singular_posts.l(:count => user.posts.count), user_posts_path(user)
|
18
19
|
- else
|
19
20
|
= link_to :plural_posts.l(:count => user.posts.count), user_posts_path(user)
|
20
|
-
%
|
21
|
-
=link_to :rss_feed.l, user_posts_path(user, :format => :rss)
|
21
|
+
%li
|
22
|
+
=link_to fa_icon('rss', :text => :rss_feed.l), user_posts_path(user, :format => :rss)
|
@@ -1,10 +1,8 @@
|
|
1
|
-
|
2
|
-
.post
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
= truncate_words(post.post, 7, '...' )
|
10
|
-
= link_to( '<small>»'+:more.l+'</small>', user_post_path(post.user, post))
|
1
|
+
%h3
|
2
|
+
= link_to post.title, user_post_path(post.user, post)
|
3
|
+
%small= link_to :by.l(:login => post.user.login), user_path(post.user)
|
4
|
+
|
5
|
+
= link_to image_tag(post.image_for_excerpt), user_post_path(post.user, post)
|
6
|
+
%p
|
7
|
+
= truncate_words(post.post, 7, '...' )
|
8
|
+
= link_to :more.l, user_post_path(post.user, post))
|
@@ -0,0 +1,40 @@
|
|
1
|
+
-if @post.new_record?
|
2
|
+
-object = @post
|
3
|
+
-url = user_posts_path(@user)
|
4
|
+
-content_for :end_javascript do
|
5
|
+
:javascript
|
6
|
+
$(document).on('change', "#post_category_id", function(e){
|
7
|
+
$.post("#{categories_show_tips_path}?id="+$(this).val(), function(response) {
|
8
|
+
$("#category_tips").html(response);
|
9
|
+
$("#category_tips").effect('highlight', 500);
|
10
|
+
});
|
11
|
+
});
|
12
|
+
-else
|
13
|
+
-object = [@user, @post]
|
14
|
+
-url = user_post_path(@user, @post)
|
15
|
+
-content_for :end_javascript do
|
16
|
+
:javascript
|
17
|
+
$(document).on('change', "#post_category_id", function(e){
|
18
|
+
$.get("#{category_tips_update_user_post_path(@user, @post)}?post_category_id="+$(this).val(), function(response) {
|
19
|
+
$("#category_tips").html(response);
|
20
|
+
$("#category_tips").effect('highlight', 500);
|
21
|
+
});
|
22
|
+
});
|
23
|
+
|
24
|
+
= bootstrap_form_for(object, :url => url, :layout => :horizontal) do |f|
|
25
|
+
= f.text_field :title, :class => 'col-sm-6'
|
26
|
+
= f.collection_select(:category_id, Category.all, :id, :name, {}, {})
|
27
|
+
= f.text_area :raw_post, :rows => 15, :class => "rich_text_editor", :required => false
|
28
|
+
= f.text_field :tag_list, :autocomplete => "off", :label => :tags.l, :help => :optional_keywords_describing_this_post_separated_by_commas.l
|
29
|
+
|
30
|
+
-content_for :end_javascript do
|
31
|
+
= tag_auto_complete_field 'post_tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
|
32
|
+
|
33
|
+
= f.select :published_as, [[:published.l, 'live'], [:draft.l, 'draft']], :label => :save_post_as.l
|
34
|
+
|
35
|
+
= f.form_group :comments_group do
|
36
|
+
= f.check_box :send_comment_notifications
|
37
|
+
|
38
|
+
= f.form_group :submit_group do
|
39
|
+
= f.primary :save.l
|
40
|
+
|
@@ -1,29 +1,32 @@
|
|
1
|
-
.
|
2
|
-
%
|
1
|
+
.clearfix
|
2
|
+
%h3
|
3
3
|
= link_to post.title, user_post_path(post.user, post), :rel => 'bookmark'
|
4
4
|
|
5
|
-
.
|
6
|
-
|
7
|
-
%a{:href=>"#{user_post_path(post.user, post)}", :class=>"photo", :rel=>"bookmark"}
|
8
|
-
=image_tag(
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
%
|
13
|
-
|
14
|
-
|
15
|
-
%li.
|
5
|
+
.col-sm-3.pull-right.col-sm-offset-9
|
6
|
+
.list-group
|
7
|
+
%a{:href => "#{user_post_path(post.user, post)}", :class => "photo list-group-item", :rel => "bookmark"}
|
8
|
+
=image_tag (post.first_image_in_body || post.user.avatar_photo_url(:medium)), :class => 'img-responsive'
|
9
|
+
%a{:href => "#{user_path(post.user)}", :class => "list-group-item"}
|
10
|
+
=fa_icon "hand-o-right"
|
11
|
+
=post.user.login
|
12
|
+
%a{:href=>"#{user_post_path(post.user, post)}", :rel=>"bookmark", :class => "list-group-item"}
|
13
|
+
=fa_icon "calendar"
|
14
|
+
%abbr.published{:title=>"#{post.published_at}"}= post.published_at_display(:short_literal_date)
|
15
|
+
%li.list-group-item
|
16
|
+
=fa_icon "eye"
|
16
17
|
= :view_count.l
|
17
|
-
=
|
18
|
-
%
|
19
|
-
=
|
18
|
+
%span.badge=post.view_count
|
19
|
+
%a{:href => user_post_path(post.user, post)+'#comments', :class => "list-group-item"}
|
20
|
+
=fa_icon "comment"
|
21
|
+
=:comments.l
|
22
|
+
%span.badge.badge-info=post.comments.count
|
20
23
|
- if current_user and current_user.can_request_friendship_with(post.user)
|
21
|
-
|
24
|
+
.list-group-item
|
25
|
+
= add_friend_link(post.user)
|
26
|
+
|
27
|
+
= truncate_words(post.post, 75, '...' ).html_safe
|
28
|
+
%p
|
29
|
+
= render :partial => 'polls/excerpt', :locals => {:poll => post.poll} if post.poll
|
30
|
+
%p
|
31
|
+
= link_to :read_more.l, user_post_path(post.user, post), :rel=> 'bookmark'
|
22
32
|
|
23
|
-
.entry-content
|
24
|
-
= truncate_words(post.post, 75, '...' ).html_safe
|
25
|
-
|
26
|
-
= render :partial => 'polls/excerpt', :locals => {:poll => post.poll} if post.poll
|
27
|
-
|
28
|
-
%h6=link_to :read_more.l, user_post_path(post.user, post), :rel=> 'bookmark'
|
29
|
-
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.modal-dialog
|
2
|
+
.modal-content
|
3
|
+
= form_tag send_to_friend_user_post_path(:user_id => params[:user_id], :id => params[:id]), :class => 'form form-horizontal submit-via-ajax', :id => 'send_to_friend_form' do
|
4
|
+
.modal-header
|
5
|
+
%button.close{:type => 'button', 'data-dismiss' => 'modal'}
|
6
|
+
%span{'aria-hidden' => true}
|
7
|
+
×
|
8
|
+
%span.sr-only
|
9
|
+
Close
|
10
|
+
%h3= :send_this_story_to_friends.l
|
11
|
+
.modal-body
|
12
|
+
.form-group
|
13
|
+
%label.col-sm-4.control-label= :enter_a_message.l
|
14
|
+
.col-sm-5
|
15
|
+
= text_area_tag :message, :this_story_is_awesome.l, :class => "form-control"
|
16
|
+
.form-group
|
17
|
+
%label.col-sm-4.control-label=:enter_e_mail_addresses_comma_sep.l
|
18
|
+
.col-sm-5
|
19
|
+
= text_area_tag :emails, '', :class => "form-control"
|
20
|
+
.col-sm-3
|
21
|
+
%a{:href => '#', :onclick => "showPlaxoABChooser('emails', '/base/plaxo'); return false;"}
|
22
|
+
= image_tag "http://www.plaxo.com/images/abc/buttons/add_button.gif", :alt => :add_from_my_address_book.l
|
23
|
+
.modal-footer
|
24
|
+
= ajax_spinner_for 'send_to_friend_form'
|
25
|
+
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Close
|
26
|
+
= submit_tag :send.l, :class => 'btn btn-primary'
|
@@ -1,51 +1,14 @@
|
|
1
|
-
.
|
2
|
-
-box :id => 'category_tips' do
|
3
|
-
- if @post.category
|
4
|
-
= render :partial => "categories/tips", :locals => {:category => @post.category}
|
5
|
-
- else
|
6
|
-
= render :partial => "categories/tips", :locals => {:category => nil}
|
1
|
+
-@page_title = :editing_post.l
|
7
2
|
|
8
|
-
|
9
|
-
.
|
10
|
-
|
11
|
-
|
3
|
+
-widget :id => 'category_tips' do
|
4
|
+
- if @post.category
|
5
|
+
= render :partial => "categories/tips", :locals => {:category => @post.category}
|
6
|
+
- else
|
7
|
+
= render :partial => "categories/tips", :locals => {:category => nil}
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
%em= '('+:required.l+')'
|
18
|
-
= f.text_field :title
|
19
|
-
%label
|
20
|
-
=:category.l
|
21
|
-
\:
|
22
|
-
= f.collection_select(:category_id, Category.find(:all), :id, :name, {}, {})
|
23
|
-
%label
|
24
|
-
=:body_text.l
|
25
|
-
%em= '('+:required.l+')'
|
26
|
-
= f.text_area :raw_post, :size => "86x15", :class => "rich_text_editor"
|
27
|
-
%label
|
28
|
-
=:tags.l
|
29
|
-
%em="(#{:optional_keywords_describing_this_post_separated_by_commas.l})"
|
30
|
-
= text_field_tag 'tag_list', @post.tag_list.to_s, {:autocomplete => "off", :size => 35}
|
31
|
-
#tag_list_auto_complete.auto_complete
|
32
|
-
-content_for :end_javascript do
|
33
|
-
= auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
|
9
|
+
%p
|
10
|
+
=link_to :back.l, manage_user_posts_path(@post.user), :class => 'btn btn-default'
|
11
|
+
=link_to :show.l, user_post_path(@post.user, @post), :class => 'btn btn-primary'
|
12
|
+
=link_to :delete.l, user_post_path(@post.user, @post), :method => 'delete', data: { confirm: :are_you_sure.l }, :class => 'btn btn-danger'
|
34
13
|
|
35
|
-
|
36
|
-
= f.select(:published_as, [[:published.l, 'live'], [:draft.l, 'draft']])
|
37
|
-
|
38
|
-
%label
|
39
|
-
= f.check_box :send_comment_notifications
|
40
|
-
=:send_comment_notifications.l
|
41
|
-
|
42
|
-
|
43
|
-
%p
|
44
|
-
= submit_tag :update.l
|
45
|
-
= :or.l
|
46
|
-
=link_to :cancel.l, user_post_path(current_user, @post)
|
47
|
-
%p
|
48
|
-
=link_to "#{image_tag 'icons/delete.png', :plugin => :community_engine} #{:delete_this_post.l}".html_safe, user_post_path(current_user, @post), :method => :delete, :confirm => :are_you_sure_you_want_to_delete_this_post.l
|
49
|
-
|
50
|
-
-content_for :end_javascript do
|
51
|
-
= observe_field "post_category_id", {:url => {:action => 'category_tips_update'}, :method => :get, :with => "post_category_id", :update => "category_tips", :complete => visual_effect(:highlight, "category_tips", :duration => 0.5)}
|
14
|
+
= render 'form'
|
@@ -1,19 +1,14 @@
|
|
1
1
|
-@section = 'posts'
|
2
|
+
-@page_title = :featured_posts.l
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
-widget do
|
5
|
+
%h4
|
6
|
+
.small= :featured_writers.l
|
7
|
+
%ul.list-unstyled
|
7
8
|
- @featured_writers.each do |user|
|
8
9
|
= render :partial => "users/sidebar_user", :locals => {:user => user}
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
-box :class => "hfeed" do
|
13
|
-
%h3=:featured_posts.l
|
11
|
+
= render :partial => 'posts/post', :collection => @posts
|
12
|
+
= paginate @posts, :theme => 'bootstrap'
|
14
13
|
|
15
|
-
.pagination=paginating_links @posts if @posts.total_count > 1
|
16
14
|
|
17
|
-
= render :partial => 'posts/post', :collection => @posts
|
18
|
-
|
19
|
-
|
@@ -1,23 +1,19 @@
|
|
1
|
-
.
|
2
|
-
|
1
|
+
-@page_title = :users_blog.l(:user => @user.login)
|
2
|
+
= render :partial => 'author_profile', :locals => {:user => @user}
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
- unless @popular_posts.empty?
|
5
|
+
-widget :id => "posts" do
|
6
|
+
%h4
|
7
|
+
.small=:popular_posts.l
|
8
|
+
%ul.list-unstyled
|
9
|
+
- @popular_posts.each do |post|
|
10
|
+
%li= link_to truncate(post.title, :length => 75), user_post_path(@user, post)
|
10
11
|
|
11
|
-
|
12
|
-
.
|
13
|
-
-box :class => "posts hfeed" do
|
14
|
-
%h3
|
15
|
-
= link_to :users_blog.l(:user => @user.login), user_posts_path(@user)
|
16
|
-
= @category ? "» #{link_to(@category.name.upcase, users_posts_in_category_path(@user, @category.name))}".html_safe : ''
|
12
|
+
%h2
|
13
|
+
= @category ? "» #{link_to(@category.name.upcase, users_posts_in_category_path(@user, @category.name))}".html_safe : ''
|
17
14
|
|
18
|
-
|
19
|
-
%br
|
15
|
+
= link_to( :new_post.l, new_user_post_path(@user), {:class => "right"}) if @is_current_user
|
20
16
|
|
21
|
-
|
17
|
+
= render :partial => 'post', :collection => @posts
|
22
18
|
|
23
|
-
|
19
|
+
= paginate @posts, :theme => 'bootstrap'
|
@@ -1,66 +1,51 @@
|
|
1
|
-
.
|
2
|
-
-box do
|
3
|
-
%h3=:links.l
|
4
|
-
%ul.checks
|
5
|
-
%li=link_to :view_my_blog.l, user_posts_path(current_user)
|
6
|
-
%li=link_to :new_post.l, new_user_post_path(current_user)
|
7
|
-
|
8
|
-
-box do
|
9
|
-
%h3=:search.l
|
10
|
-
= form_for @search, :url => manage_user_posts_path(current_user), :html => {:class => "MainForm"} do |f|
|
11
|
-
|
12
|
-
%label= :title.l
|
13
|
-
= f.text_field :title_like
|
1
|
+
-@page_title = :manage_posts.l
|
14
2
|
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
-widget do
|
4
|
+
%h3=:search.l
|
5
|
+
= bootstrap_form_for @search, :url => manage_user_posts_path(current_user), :html => {:class => "form"} do |f|
|
6
|
+
= f.text_field :title_cont, :label => :title.l
|
18
7
|
|
19
|
-
|
20
|
-
|
21
|
-
= f.select :published_as_equals, [['Published','live'], ['Draft','draft']], :include_blank => true
|
8
|
+
= f.select :category_id_eq, Category.all.collect{|c| [c.name, c.id]}, :include_blank => true, :label => :category.l
|
9
|
+
= f.select :published_as_eq, [['Published','live'], ['Draft','draft']], :include_blank => true, :label => :status.l
|
22
10
|
|
23
|
-
|
24
|
-
|
25
|
-
|
11
|
+
.form-group
|
12
|
+
%label.control-label= :show.l
|
13
|
+
= select_tag :size, options_for_select([['10',10], ['20',20], ['100',100]], params[:size].to_i )
|
26
14
|
|
27
|
-
|
28
|
-
|
15
|
+
= f.primary :search.l
|
29
16
|
|
30
|
-
|
31
|
-
.yui-b
|
32
|
-
-box do
|
33
|
-
%h3
|
34
|
-
=:manage_posts.l
|
35
|
-
%p=:posts_saved_with_draft_status_wont_appear_in_your_blog_until_you_publish_them.l
|
36
|
-
|
17
|
+
%p=:posts_saved_with_draft_status_wont_appear_in_your_blog_until_you_publish_them.l
|
37
18
|
|
38
|
-
|
39
|
-
|
19
|
+
%table.table.table-bordered.table-striped
|
20
|
+
%tr
|
21
|
+
%th
|
22
|
+
=sort_link @search, :created_at, :date_created.l
|
23
|
+
%th
|
24
|
+
=sort_link @search, :published_at, :date_published.l
|
25
|
+
%th=:title.l
|
26
|
+
%th=:category.l
|
27
|
+
%th=:tags.l
|
28
|
+
%th=:comments.l
|
29
|
+
%th=:status.l
|
30
|
+
%th=:actions.l
|
31
|
+
- @posts.each do |post|
|
32
|
+
%tr
|
33
|
+
%td
|
34
|
+
%abbr{:title=>"#{post.created_at}"}= I18n.l(post.created_at, :format => :published_date)
|
35
|
+
%td
|
36
|
+
%abbr{:title=>"#{post.published_at}"}= post.published_at_display
|
37
|
+
%td
|
38
|
+
= link_to post.title, user_post_path(post.user, post)
|
39
|
+
%td= post.category ? post.category.name : :uncategorized.l
|
40
|
+
%td= post.tags.any? ? post.tag_list : :no_tags.l
|
41
|
+
%td= post.comments.count
|
42
|
+
%td= post.is_live? ? link_to(:published.l, user_post_path(post.user, post)) : :draft.l
|
43
|
+
%td
|
44
|
+
=link_to :show.l, user_post_path(post.user, post), :class => 'btn btn-default'
|
45
|
+
=link_to :edit.l, edit_user_post_path(post.user, post), :class => 'btn btn-warning'
|
46
|
+
=link_to :delete.l, user_post_path(post.user, post), :method => 'delete', data: { confirm: :are_you_sure.l }, :class => 'btn btn-danger'
|
47
|
+
|
48
|
+
= paginate @posts, :theme => 'bootstrap'
|
49
|
+
%p
|
50
|
+
=link_to :new_post.l, new_user_post_path(current_user), :class => 'btn btn-success'
|
40
51
|
|
41
|
-
%table{:border => 0, :width => '100%'}
|
42
|
-
%thead
|
43
|
-
%tr
|
44
|
-
%th
|
45
|
-
=sort_link @search, :created_at, :date_created.l
|
46
|
-
%th
|
47
|
-
=sort_link @search, :published_at, :date_published.l
|
48
|
-
%th=:title.l
|
49
|
-
%th=:category.l
|
50
|
-
%th=:tags.l
|
51
|
-
%th=:comments.l
|
52
|
-
%th=:status.l
|
53
|
-
%tbody
|
54
|
-
- @posts.each do |post|
|
55
|
-
%tr
|
56
|
-
%td
|
57
|
-
%abbr{:title=>"#{post.created_at}"}= I18n.l(post.created_at, :format => :published_date)
|
58
|
-
%td
|
59
|
-
%abbr{:title=>"#{post.published_at}"}= post.published_at_display
|
60
|
-
%td
|
61
|
-
= link_to post.title, edit_user_post_path(post.user, post)
|
62
|
-
= link_to("(#{:preview.l})", user_post_path(post.user, post), :target => '_blank') unless post.is_live?
|
63
|
-
%td= post.category ? post.category.name : :uncategorized.l
|
64
|
-
%td= post.tags.any? ? post.tag_list : :no_tags.l
|
65
|
-
%td= post.comments.count
|
66
|
-
%td= post.is_live? ? link_to(:published.l, user_post_path(post.user, post)) : :draft.l
|