community_engine 2.3.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,76 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
= link_to "» ".html_safe + :edit_your_account_settings_instead.l, edit_account_user_path(@user)
|
|
5
|
-
|
|
6
|
-
= error_messages_for :user
|
|
1
|
+
-widget do
|
|
2
|
+
%p=:you_are_editing_your_profile.l
|
|
3
|
+
%p= link_to :edit_your_account_settings_instead.l, edit_account_user_path(@user)
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
= image_tag( @user.avatar_photo_url(:medium), :class => "polaroid" )
|
|
14
|
-
= f.fields_for :avatar, @avatar do |avatar_form|
|
|
15
|
-
%label=:choose_a_photo_for_your_profile.l
|
|
16
|
-
= avatar_form.file_field :photo, :size => '15'
|
|
17
|
-
|
|
18
|
-
%h3= :location.l
|
|
19
|
-
= render :partial => 'shared/location_chooser', :locals => {:selected_country => @user.country_id, :selected_state => @user.state_id, :selected_metro_area => @user.metro_area_id, :states => @states, :metro_areas => @metro_areas}
|
|
5
|
+
-widget do
|
|
6
|
+
%h4
|
|
7
|
+
.small=:tips.l
|
|
8
|
+
= render :partial => 'shared/bio_help'
|
|
9
|
+
=:feel_free_to_embed_images_or_videos.l
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
=:zippostal_code.l
|
|
23
|
-
= text_field :user, :zip, :style=>"width:90px"
|
|
11
|
+
= bootstrap_form_for @user, :layout => :horizontal, :html => {:multipart =>true} do |f|
|
|
24
12
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
=:male.l
|
|
32
|
-
%label
|
|
33
|
-
= radio_button :user, :gender, User::FEMALE
|
|
34
|
-
=:female.l
|
|
13
|
+
%h2=:profile_photo.l
|
|
14
|
+
= @user.vendor ? "<div class='right_corner'><div class='community_pro'></div></div>" : ''
|
|
15
|
+
= image_tag( @user.avatar_photo_url(:medium), :class => "thumbnail" )
|
|
16
|
+
= f.fields_for :avatar, @avatar do |avatar_form|
|
|
17
|
+
%label=:choose_a_photo_for_your_profile.l
|
|
18
|
+
= avatar_form.file_field :photo, :size => '15'
|
|
35
19
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
= date_select :user, :birthday, {:start_year => 1926, :end_year => Time.now.year - 1}
|
|
40
|
-
|
|
41
|
-
#yui-main
|
|
42
|
-
.yui-b
|
|
43
|
-
-box do
|
|
44
|
-
%h3=:about_me.l
|
|
45
|
-
= text_area :user, :description, :class => "rich_text_editor", :style => "width:100%"
|
|
46
|
-
|
|
47
|
-
-box :class => "alt" do
|
|
48
|
-
=:tips.l
|
|
49
|
-
= render :partial => 'shared/bio_help'
|
|
50
|
-
=:feel_free_to_embed_images_or_videos.l
|
|
51
|
-
|
|
52
|
-
-box do
|
|
53
|
-
%h3= :tags.l
|
|
54
|
-
#user_tags
|
|
55
|
-
= text_field_tag 'tag_list', @user.tag_list.join.to_s, {:autocomplete => "off"}
|
|
56
|
-
#tag_list_auto_complete.auto_complete
|
|
57
|
-
-content_for :end_javascript do
|
|
58
|
-
= auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
|
|
59
|
-
|
|
60
|
-
%label
|
|
61
|
-
%em
|
|
62
|
-
=:you_could_tag_yourself.l
|
|
63
|
-
- if @user.vendor?
|
|
64
|
-
=:custom_friendly_local.l
|
|
65
|
-
- else
|
|
66
|
-
= configatron.meta_keywords.split(",")[0..3].join(", ")
|
|
67
|
-
%br
|
|
68
|
-
=:tags_are_comma_separated_keywords_that_describe_you.l
|
|
69
|
-
%br
|
|
70
|
-
=:you_can_browse_all_content_and_users_on.l
|
|
71
|
-
= configatron.community_name
|
|
72
|
-
=:by_looking_at_the.l
|
|
73
|
-
= link_to :tags_page.l, tags_path
|
|
20
|
+
%h2= :location.l
|
|
21
|
+
= f.form_group :location, label: { :text => :location.l } do
|
|
22
|
+
= render :partial => 'shared/location_chooser', :locals => {:selected_country => @user.country_id, :selected_state => @user.state_id, :selected_metro_area => @user.metro_area_id, :states => @states, :metro_areas => @metro_areas}
|
|
74
23
|
|
|
75
|
-
|
|
76
|
-
|
|
24
|
+
%label= :zippostal_code.l
|
|
25
|
+
= f.text_field :zip, :hide_label => true
|
|
26
|
+
|
|
27
|
+
%h2=:birthday_gender.l
|
|
28
|
+
= f.form_group :birthday_gender, label: { :text => :gender.l } do
|
|
29
|
+
= f.radio_button :gender, User::MALE, :label => :male.l, :inline => true
|
|
30
|
+
= f.radio_button :gender, User::FEMALE, :label => :female.l, :inline => true
|
|
31
|
+
|
|
32
|
+
= f.date_select :birthday, {:start_year => 1926, :end_year => Time.now.year - 1}
|
|
33
|
+
|
|
34
|
+
%h2=:about_me.l
|
|
35
|
+
= f.text_area :description, :class => "rich_text_editor"
|
|
36
|
+
|
|
37
|
+
%h2= :tags.l
|
|
38
|
+
#user_tags
|
|
39
|
+
= f.text_field :tag_list, {:autocomplete => "off"}
|
|
40
|
+
= f.form_group :tag_list_group do
|
|
41
|
+
.help-block
|
|
42
|
+
=:you_could_tag_yourself.l
|
|
43
|
+
- if @user.vendor?
|
|
44
|
+
=:custom_friendly_local.l
|
|
45
|
+
- else
|
|
46
|
+
= configatron.meta_keywords.split(",")[0..3].join(", ")
|
|
47
|
+
%br
|
|
48
|
+
=:tags_are_comma_separated_keywords_that_describe_you.l
|
|
49
|
+
%br
|
|
50
|
+
=:you_can_browse_all_content_and_users_on.l
|
|
51
|
+
= configatron.community_name
|
|
52
|
+
=:by_looking_at_the.l
|
|
53
|
+
= link_to :tags_page.l, tags_path
|
|
54
|
+
-content_for :end_javascript do
|
|
55
|
+
= tag_auto_complete_field 'user_tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
|
|
56
|
+
|
|
57
|
+
= f.form_group :save_group do
|
|
58
|
+
= f.primary :save_changes.l
|
|
@@ -1,64 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
=
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
%h3=:profile_privacy.l
|
|
46
|
-
|
|
47
|
-
%fieldset
|
|
48
|
-
%label
|
|
49
|
-
= check_box :user, :profile_public
|
|
50
|
-
=:make_my_profile_public.l
|
|
51
|
-
%br
|
|
52
|
-
%em
|
|
53
|
-
=:when_checked_your_profile_will_be_visible_to_anyone.l
|
|
54
|
-
%br
|
|
55
|
-
%em
|
|
56
|
-
=:when_unchecked_your_profile_will_only_be_visible_to_people_who_are_logged_in_to.l
|
|
57
|
-
= "#{configatron.community_name}."
|
|
58
|
-
%p= submit_tag :save_changes.l
|
|
59
|
-
|
|
60
|
-
%p
|
|
61
|
-
=link_to :deactivate_link.l, deactivate_user_path(@user), :method => :put, :confirm => :deactivate_confirmation.l
|
|
62
|
-
%br
|
|
63
|
-
%label
|
|
64
|
-
%em= :deactivate_tip.l
|
|
1
|
+
-widget do
|
|
2
|
+
%p=:you_are_editing_your_account.l
|
|
3
|
+
%p= link_to :edit_your_user_profile.l, edit_user_path(@user)
|
|
4
|
+
|
|
5
|
+
-widget do
|
|
6
|
+
= render :partial => "omniauth_connect"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
= bootstrap_form_for @user, :method => 'put', :layout => :horizontal, :label_col => "col-sm-2", :control_col => "col-sm-4", :html => {:multipart => true} do |f|
|
|
10
|
+
|
|
11
|
+
= f.text_field :login, :label => :username.l
|
|
12
|
+
|
|
13
|
+
= f.text_field :email, :label => :e_mail_address.l
|
|
14
|
+
|
|
15
|
+
= f.password_field :password
|
|
16
|
+
|
|
17
|
+
= f.password_field :password_confirmation, :label => :confirm_password.l
|
|
18
|
+
|
|
19
|
+
%h2=:e_mail_notification.l
|
|
20
|
+
|
|
21
|
+
= f.form_group :notifications_group do
|
|
22
|
+
=f.check_box :notify_friend_requests, :label => :notify_of_friend_requests.l(:site => configatron.community_name)
|
|
23
|
+
|
|
24
|
+
=f.check_box :notify_comments, :label => :notify_of_comments.l(:site => configatron.community_name)
|
|
25
|
+
|
|
26
|
+
=f.check_box :notify_community_news, :label => :notify_email_updates.l(:site => configatron.community_name)
|
|
27
|
+
|
|
28
|
+
%h2=:profile_privacy.l
|
|
29
|
+
|
|
30
|
+
= f.form_group :location do
|
|
31
|
+
=f.check_box :profile_public, :label => :make_my_profile_public.l
|
|
32
|
+
.help-block
|
|
33
|
+
%p=:when_checked_your_profile_will_be_visible_to_anyone.l
|
|
34
|
+
%p=:when_unchecked_your_profile_will_only_be_visible_to_people_who_are_logged_in_to.l(configatron.community_name)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
.well
|
|
38
|
+
=f.primary :save_changes.l
|
|
39
|
+
|
|
40
|
+
.well
|
|
41
|
+
=link_to :deactivate_link.l, deactivate_user_path(@user), :method => :patch, data: { confirm: :deactivate_confirmation.l }, :class => 'btn btn-danger'
|
|
42
|
+
%br
|
|
43
|
+
%label
|
|
44
|
+
%em= :deactivate_tip.l
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
-@page_title=:forgot_your_username.l
|
|
2
|
+
=render :partial => 'shared/login_sidebar'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
= form_tag forgot_username_url, :class => 'MainForm' do
|
|
10
|
-
%label{"for"=>"email"}=:enter_your_email_address.l+":"
|
|
11
|
-
= text_field_tag 'email', nil, :size => 35
|
|
12
|
-
%p
|
|
13
|
-
= submit_tag :send_me_my_username.l
|
|
4
|
+
= bootstrap_form_tag :url => forgot_username_path, :layout => :horizontal do |f|
|
|
5
|
+
= f.email_field :email, :label => :enter_your_email_address.l
|
|
6
|
+
= f.form_group :submit_group do
|
|
7
|
+
= f.primary :send_me_my_username.l
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
+
-@page_title=:site_members.l :site => configatron.community_name
|
|
1
2
|
- @section = (params[:metro_area_id] ? 'metro_area' : 'users')
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
= render :partial => 'users/search_options'
|
|
4
|
+
= render :partial => 'users/search_options'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
.yui-b
|
|
8
|
-
-box :class => "user_list" do
|
|
9
|
-
%h3=:site_members.l :site => configatron.community_name
|
|
6
|
+
= render :partial => "users/user", :collection => @users
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
%br.clear
|
|
14
|
-
|
|
15
|
-
= render :partial => "users/user", :collection => @users
|
|
16
|
-
|
|
17
|
-
%br.clear
|
|
18
|
-
= paginate @users
|
|
8
|
+
= paginate @users, :theme => 'bootstrap'
|
|
@@ -1,31 +1,20 @@
|
|
|
1
|
+
-@page_title=:invite_your_friends_to_join.l
|
|
2
|
+
|
|
1
3
|
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/util.js"}
|
|
2
4
|
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/basic.js"}
|
|
3
5
|
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/abc_launcher.js"}
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
%p
|
|
11
|
-
=:people_who_sign_up_using_your_invitation_will_automatically_be_added_as_your_friends.l
|
|
7
|
+
-widget do
|
|
8
|
+
%h4
|
|
9
|
+
.small=:spread_the_word.l
|
|
10
|
+
%p=:invite_message.l(:site => configatron.community_name)
|
|
11
|
+
%p=:people_who_sign_up_using_your_invitation_will_automatically_be_added_as_your_friends.l
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
%
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
%a{"href"=>"#", "onclick"=>"showPlaxoABChooser('invitation_email_addresses', '/base/plaxo'); return false;"}
|
|
20
|
-
%img{"src"=>"http://www.plaxo.com/images/abc/buttons/add_button.gif", "alt"=>:add_from_my_address_book.l}/
|
|
21
|
-
%label{"for"=>"email_addresses"}
|
|
22
|
-
=:enter_e_mail_addresses.l
|
|
23
|
-
%em= :comma_separated.l
|
|
24
|
-
= f.text_area :email_addresses , :rows => "5"
|
|
25
|
-
%label{"for"=>"message"}= :write_a_message.l
|
|
26
|
-
= f.text_area :message, :rows => "5"
|
|
13
|
+
= bootstrap_form_for :invitation, :url => user_invitations_path(:user_id => @user.id ), :layout => :horizontal do |f|
|
|
14
|
+
.pull-right
|
|
15
|
+
%a{"href"=>"#", "onclick"=>"showPlaxoABChooser('invitation_email_addresses', '/base/plaxo'); return false;"}
|
|
16
|
+
%img{"src"=>"http://www.plaxo.com/images/abc/buttons/add_button.gif", "alt"=>:add_from_my_address_book.l}
|
|
17
|
+
= f.text_area :email_addresses , :rows => "5", :label => :enter_e_mail_addresses.l
|
|
18
|
+
= f.text_area :message, :rows => "5", :label => :write_a_message.l
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
= submit_tag :send_invitations.l
|
|
30
|
-
=:or.l
|
|
31
|
-
= link_to :cancel.l, user_path(@user)
|
|
20
|
+
= f.primary :send_invitations.l
|
|
@@ -1,54 +1,33 @@
|
|
|
1
|
-
.
|
|
2
|
-
-box do
|
|
3
|
-
%h3
|
|
4
|
-
=:why_sign_up.l
|
|
5
|
-
%ul.list.checks
|
|
6
|
-
%li
|
|
7
|
-
= :sign_up_reason_1.l
|
|
8
|
-
%li
|
|
9
|
-
= :sign_up_reason_2.l
|
|
1
|
+
-@page_title=:sign_up.l
|
|
10
2
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
=:click_the_activation_link_in_the_e_mail_to_log_in.l
|
|
17
|
-
%p= link_to :already_have_an_account.l, "/login"
|
|
3
|
+
-widget do
|
|
4
|
+
%h4
|
|
5
|
+
.small=:why_sign_up.l
|
|
6
|
+
%p= :sign_up_reason_1.l
|
|
7
|
+
%p= :sign_up_reason_2.l
|
|
18
8
|
|
|
19
|
-
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
=:username.l
|
|
27
|
-
\:
|
|
28
|
-
%em=:required_your_username_must_not_contain_numerals_spaces_or_special_characters.l
|
|
29
|
-
= f.text_field :login
|
|
9
|
+
-widget do
|
|
10
|
+
%h3=:tips.l
|
|
11
|
+
%p
|
|
12
|
+
=:after_signing_up_youll_receive_an_e_mail_confirmation_message.l
|
|
13
|
+
%p
|
|
14
|
+
=:click_the_activation_link_in_the_e_mail_to_log_in.l
|
|
15
|
+
%p= link_to :already_have_an_account.l, "/login"
|
|
30
16
|
|
|
31
|
-
%label{"for"=>"user_email"}
|
|
32
|
-
=:e_mail_address.l
|
|
33
|
-
\:
|
|
34
|
-
%em=:required_we_will_send_a_confirmation_e_mail_to_the_address_you_enter.l
|
|
35
|
-
= f.text_field :email
|
|
36
17
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
= date_select :user, :birthday, {:start_year => (Time.now.year - configatron.max_age), :end_year => (Time.now.year - configatron.min_age)}
|
|
18
|
+
= bootstrap_form_for @user, :layout => :horizontal do |f|
|
|
19
|
+
= f.text_field :login, :label => :username.l, :help => :required_your_username_must_not_contain_numerals_spaces_or_special_characters.l
|
|
20
|
+
= f.text_field :email, :label => :e_mail_address.l, :help => :required_we_will_send_a_confirmation_e_mail_to_the_address_you_enter.l
|
|
21
|
+
= f.date_select :birthday, {:start_year => (Time.now.year - configatron.max_age), :end_year => (Time.now.year - configatron.min_age)}, :help => :required_you_must_be_at_least_years_old_to_sign_up.l_with_args(:min_age => configatron.min_age)
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
= f.password_field :password
|
|
24
|
+
= f.password_field :password_confirmation, :help => :re_type_your_password_to_confirm.l
|
|
25
|
+
= hidden_field_tag :inviter_id, params[:inviter_id]
|
|
26
|
+
= hidden_field_tag :inviter_code, params[:inviter_code]
|
|
45
27
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
= hidden_field_tag :inviter_id, params[:inviter_id]
|
|
53
|
-
= hidden_field_tag :inviter_code, params[:inviter_code]
|
|
54
|
-
%p= submit_tag :sign_up.l
|
|
28
|
+
-if configatron.require_captcha_on_signup
|
|
29
|
+
= f.form_group do
|
|
30
|
+
= recaptcha_tags
|
|
31
|
+
|
|
32
|
+
= f.form_group :submit_group do
|
|
33
|
+
= f.primary :sign_up.l
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
-@page_title=:resend_your_activation_e_mail.l
|
|
2
|
+
=render :partial => 'shared/login_sidebar'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
= form_tag resend_activation_url, :class => 'MainForm' do
|
|
10
|
-
%label{"for"=>"email"}=:enter_your_email_address.l
|
|
11
|
-
= text_field_tag 'email', nil, :size => 35
|
|
12
|
-
%p
|
|
13
|
-
= submit_tag :resend_my_activation_e_mail.l
|
|
4
|
+
= bootstrap_form_tag :url => resend_activation_url, :layout => :horizontal do
|
|
5
|
+
.form-group
|
|
6
|
+
%label.control-label{"for"=>"email"}=:enter_your_email_address.l
|
|
7
|
+
= text_field_tag 'email', nil
|
|
8
|
+
= submit_tag :resend_my_activation_e_mail.l, :class => 'btn btn-primary'
|
|
@@ -2,102 +2,100 @@
|
|
|
2
2
|
- @section = @user.eql?(current_user) ? 'my_profile' : 'users'
|
|
3
3
|
- @sidebar_left = true
|
|
4
4
|
|
|
5
|
+
-widget :id => 'friends' do
|
|
6
|
+
%h4
|
|
7
|
+
.small=:my_friends.l
|
|
8
|
+
%ul.list-unstyled
|
|
9
|
+
%li= link_to "(#{@friend_count})", accepted_user_friendships_path(@user) if @friend_count > 5
|
|
10
|
+
%li= link_to "#{:invite_a_friend.l :site => configatron.community_name}", invite_user_path(@user) if @is_current_user
|
|
11
|
+
%li= link_to "#{:view_all_my_friend_requests.l} (#{@pending_friendships_count})", pending_user_friendships_path(@user) if @is_current_user
|
|
12
|
+
- @accepted_friendships.each do |user|
|
|
13
|
+
=render :partial => "users/sidebar_user", :locals => {:user => user}
|
|
14
|
+
-if @accepted_friendships.size > 4
|
|
15
|
+
%li
|
|
16
|
+
=link_to fa_icon('plus-circle', :text => :see_all.l), accepted_user_friendships_path(@user)
|
|
17
|
+
|
|
18
|
+
- if @photos.empty? and @recent_posts.empty?
|
|
19
|
+
-widget do
|
|
20
|
+
%h4= :small_profile.l :user => @user.login
|
|
5
21
|
|
|
6
22
|
- if @is_current_user and @user.vendor? and @user.description.nil?
|
|
7
|
-
|
|
8
|
-
|
|
23
|
+
.alert.alert-info
|
|
24
|
+
Hey, you're a
|
|
9
25
|
= configatron.community_name
|
|
10
26
|
Pro! You should
|
|
11
27
|
= link_to :update_your_profile.l, edit_user_path(@user)
|
|
12
28
|
\! Add your contact info and Web site.
|
|
13
29
|
|
|
14
30
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
= render :partial => 'profile_user_info_sidebar', :locals => {:user => @user}
|
|
32
|
+
|
|
33
|
+
- unless @user.description.blank?
|
|
34
|
+
-box :id => "about_me" do
|
|
35
|
+
%h2
|
|
36
|
+
=:about_me.l
|
|
37
|
+
%p= @user.description.html_safe
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- unless @users_comments.empty?
|
|
42
|
+
.clearfix
|
|
43
|
+
%h2=:my_recent_comments.l
|
|
44
|
+
- @users_comments.each do |comment|
|
|
45
|
+
.clearfix
|
|
46
|
+
.pull-left
|
|
47
|
+
- if comment.recipient
|
|
48
|
+
= link_to image_tag(comment.recipient.avatar_photo_url(:thumb), :alt => "#{comment.recipient.login}"), commentable_url(comment), :class => 'thumbnail'
|
|
49
|
+
%h3
|
|
50
|
+
- if comment.commentable.eql?(comment.recipient)
|
|
51
|
+
= :to.l + ": #{link_to comment.recipient.login, commentable_url(comment)}".html_safe
|
|
52
|
+
- else
|
|
53
|
+
= :on_commentable.l + ": #{link_to comment.commentable_name, commentable_url(comment)} (#{comment.commentable_type.l})".html_safe
|
|
54
|
+
%p= truncate_words( comment.comment, 10, '...').html_safe
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
- unless @photo_comments.empty?
|
|
58
|
+
.clearfix
|
|
59
|
+
%h2=:photo_comments.l
|
|
60
|
+
- @photo_comments.each do |comment|
|
|
61
|
+
%dl.vcard
|
|
62
|
+
%dt.photo
|
|
63
|
+
= link_to(image_tag((comment.user && comment.user.avatar_photo_url(:thumb) || configatron.photo.missing_thumb), :width => '50', :height => '50'), user_photo_path(@user, comment.commentable))
|
|
64
|
+
%dd.fn= "#{comment.username}" + " " + :says.l + ":"
|
|
65
|
+
%dd
|
|
66
|
+
= truncate_words(comment.comment, 10).html_safe
|
|
67
|
+
%br
|
|
68
|
+
= link_to "» ".html_safe + :view_comment.l, user_photo_path(@user, comment.commentable) + "#comment_#{comment.id}"
|
|
69
|
+
|
|
70
|
+
- unless @photos.empty?
|
|
71
|
+
.clearfix
|
|
72
|
+
%h2=:my_photos.l
|
|
73
|
+
%ul.list-unstyled.thumbnails
|
|
74
|
+
- @photos.each do |photo|
|
|
75
|
+
%li.col-lg-3
|
|
76
|
+
= link_to image_tag( photo.photo.url(:medium)), user_photo_path(@user, photo), :class => "thumbnail"
|
|
29
77
|
%p
|
|
30
|
-
= link_to
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- unless @photo_comments.empty?
|
|
56
|
-
-box :class => 'yui-g alt', :id => 'photo_comments' do
|
|
57
|
-
%h3=:photo_comments.l
|
|
58
|
-
- @photo_comments.each do |comment|
|
|
59
|
-
%dl.vcard
|
|
60
|
-
%dt.photo
|
|
61
|
-
= link_to(image_tag((comment.user && comment.user.avatar_photo_url(:thumb) || configatron.photo.missing_thumb), :width => '50', :height => '50'), user_photo_path(@user, comment.commentable))
|
|
62
|
-
%dd.fn= "#{comment.username}" + " " + :says.l + ":"
|
|
63
|
-
%dd
|
|
64
|
-
= truncate_words(comment.comment, 10).html_safe
|
|
65
|
-
%br
|
|
66
|
-
= link_to "» ".html_safe + :view_comment.l, user_photo_path(@user, comment.commentable) + "#comment_#{comment.id}"
|
|
67
|
-
|
|
68
|
-
#yui-main
|
|
69
|
-
.yui-b
|
|
70
|
-
- if @photos.empty? and @recent_posts.empty?
|
|
71
|
-
-box :class => "alt first_alt" do
|
|
72
|
-
%h3= :small_profile.l :user => @user.login
|
|
73
|
-
|
|
74
|
-
- unless @photos.empty?
|
|
75
|
-
-box :id => "photos" do
|
|
76
|
-
%h3=:my_photos.l
|
|
77
|
-
- @photos.each do |photo|
|
|
78
|
-
= link_to image_tag( photo.photo.url(:thumb), :class => "polaroid"), user_photo_path(@user, photo)
|
|
79
|
-
|
|
80
|
-
%h6.all.right= link_to :view_all_my_photos.l, user_photos_path(@user)
|
|
81
|
-
=link_to(:add_a_photo.l, new_user_photo_path(@user)) if @is_current_user
|
|
82
|
-
|
|
83
|
-
- unless @recent_posts.empty?
|
|
84
|
-
-box :id => "posts" do
|
|
85
|
-
%h3=:recent_blog_posts.l
|
|
86
|
-
= render :partial => 'posts/post', :collection => @recent_posts
|
|
87
|
-
%h6.right.all= link_to :view_my_blog.l, user_posts_path(@user)
|
|
88
|
-
|
|
89
|
-
- unless @clippings.empty?
|
|
90
|
-
-box :id => "clippings" do
|
|
91
|
-
%h3=:my_clippings.l
|
|
92
|
-
- @clippings.each do |clipping|
|
|
93
|
-
%a{"href"=>"#{h user_clipping_url(@user, clipping)}"}
|
|
94
|
-
%img.clipping.polaroid{"src"=>"#{h clipping.image_uri(:thumb)}", :width => '100', :height => '100'}
|
|
95
|
-
%h6.all.right= link_to :view_all_my_clippings.l, user_clippings_path(@user)
|
|
96
|
-
|
|
97
|
-
-box :class => 'hfeed comments', :id => 'comments' do
|
|
98
|
-
%h3=:profile_comments.l
|
|
99
|
-
%h2=:add_your_comment.l
|
|
100
|
-
= render :partial => 'comments/comment_form', :locals => {:commentable => @user}
|
|
101
|
-
%a#newest_comment
|
|
102
|
-
= render :partial => 'comments/comment', :collection => @comments
|
|
103
|
-
%span#more_comments_links= more_comments_links(@user)
|
|
78
|
+
= link_to fa_icon('plus-circle', :text => :view_all_my_photos.l), user_photos_path(@user)
|
|
79
|
+
%p=link_to(:add_a_photo.l, new_user_photo_path(@user)) if @is_current_user
|
|
80
|
+
|
|
81
|
+
- unless @recent_posts.empty?
|
|
82
|
+
.clearfix
|
|
83
|
+
%h2=:recent_blog_posts.l
|
|
84
|
+
= render :partial => 'posts/post', :collection => @recent_posts
|
|
85
|
+
%h6.right.all= link_to :view_my_blog.l, user_posts_path(@user)
|
|
86
|
+
|
|
87
|
+
- unless @clippings.empty?
|
|
88
|
+
.clearfix
|
|
89
|
+
%h2=:my_clippings.l
|
|
90
|
+
%ul.list-unstyled.thumbnails
|
|
91
|
+
- @clippings.each do |clipping|
|
|
92
|
+
%li.col-sm-3=render :partial => 'clippings/clipping', :locals => {:clipping => clipping}
|
|
93
|
+
= link_to fa_icon('plus-circle', :text => :view_all_my_clippings.l), user_clippings_path(@user)
|
|
94
|
+
|
|
95
|
+
.clearfix
|
|
96
|
+
%h2=:profile_comments.l
|
|
97
|
+
%h3=:add_your_comment.l
|
|
98
|
+
= render :partial => 'comments/comment_form', :locals => {:commentable => @user}
|
|
99
|
+
%a#newest_comment
|
|
100
|
+
= render :partial => 'comments/comment', :collection => @comments
|
|
101
|
+
%span#more_comments_links= more_comments_links(@user)
|