community_engine 2.0.0.beta1
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.
- data/.gitignore +15 -0
- data/.gitmodules +0 -0
- data/.travis.yml +9 -0
- data/CHANGELOG +118 -0
- data/Gemfile +3 -0
- data/LICENSE +30 -0
- data/README.markdown +188 -0
- data/Rakefile +54 -0
- data/UPGRADING.markdown +93 -0
- data/about.yml +7 -0
- data/app/assets/images/auth/facebook_32.png +0 -0
- data/app/assets/images/auth/facebook_64.png +0 -0
- data/app/assets/images/auth/google_32.png +0 -0
- data/app/assets/images/auth/google_64.png +0 -0
- data/app/assets/images/auth/linked_in_32.png +0 -0
- data/app/assets/images/auth/linked_in_64.png +0 -0
- data/app/assets/images/auth/open_id_32.png +0 -0
- data/app/assets/images/auth/remove.png +0 -0
- data/app/assets/images/auth/twitter_32.png +0 -0
- data/app/assets/images/auth/twitter_64.png +0 -0
- 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/icon_missing_medium.gif +0 -0
- data/app/assets/images/icon_missing_thumb.gif +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/ical.gif +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/spinner.gif +0 -0
- data/app/assets/images/spinner_black.gif +0 -0
- data/app/assets/images/spinner_bounce.gif +0 -0
- data/app/assets/images/swf/choose.png +0 -0
- data/app/assets/images/swf/line_grapher.swf +0 -0
- data/app/assets/images/swf/swfupload.swf +0 -0
- data/app/assets/images/thumb.gif +0 -0
- data/app/assets/javascripts/builder.js +136 -0
- data/app/assets/javascripts/calendarview.js +839 -0
- data/app/assets/javascripts/community_engine.js +20 -0
- data/app/assets/javascripts/cropper.css +182 -0
- data/app/assets/javascripts/cropper.js +566 -0
- data/app/assets/javascripts/forum.js +73 -0
- data/app/assets/javascripts/lightbox.js +151 -0
- data/app/assets/javascripts/prototip-min.js +27 -0
- data/app/assets/javascripts/rails.js +202 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/css/advimage.css +84 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/editor_plugin.js +52 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/editor_plugin_src.js +45 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/image.htm +180 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/img/sample.gif +0 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/js/functions.js +508 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/langs/en.js +3 -0
- data/app/assets/javascripts/tinymce/plugins/curblyadvimage/langs/en_dlg.js +43 -0
- data/app/assets/stylesheets/community_engine.css +6 -0
- data/app/assets/stylesheets/forum.css +605 -0
- data/app/assets/stylesheets/lightbox.css +38 -0
- data/app/assets/stylesheets/prototip.css +73 -0
- data/app/assets/stylesheets/reset-fonts-grids.css +8 -0
- data/app/assets/stylesheets/screen.css +977 -0
- data/app/controllers/activities_controller.rb +38 -0
- data/app/controllers/admin_controller.rb +80 -0
- data/app/controllers/ads_controller.rb +85 -0
- data/app/controllers/albums_controller.rb +106 -0
- data/app/controllers/authorizations_controller.rb +41 -0
- data/app/controllers/base_controller.rb +151 -0
- data/app/controllers/categories_controller.rb +118 -0
- data/app/controllers/clippings_controller.rb +192 -0
- data/app/controllers/comment_sweeper.rb +35 -0
- data/app/controllers/comments_controller.rb +179 -0
- data/app/controllers/event_sweeper.rb +24 -0
- data/app/controllers/events_controller.rb +173 -0
- data/app/controllers/favorite_sweeper.rb +29 -0
- data/app/controllers/favorites_controller.rb +36 -0
- data/app/controllers/forums_controller.rb +71 -0
- data/app/controllers/friendships_controller.rb +126 -0
- data/app/controllers/homepage_features_controller.rb +68 -0
- data/app/controllers/invitations_controller.rb +46 -0
- data/app/controllers/messages_controller.rb +95 -0
- data/app/controllers/metro_areas_controller.rb +68 -0
- data/app/controllers/moderators_controller.rb +26 -0
- data/app/controllers/monitorships_controller.rb +20 -0
- data/app/controllers/page_sweeper.rb +33 -0
- data/app/controllers/pages_controller.rb +70 -0
- data/app/controllers/password_resets_controller.rb +52 -0
- data/app/controllers/photo_manager_controller.rb +11 -0
- data/app/controllers/photos_controller.rb +189 -0
- data/app/controllers/post_sweeper.rb +36 -0
- data/app/controllers/posts_controller.rb +252 -0
- data/app/controllers/rsvps_controller.rb +77 -0
- data/app/controllers/sb_posts_controller.rb +149 -0
- data/app/controllers/sessions_controller.rb +34 -0
- data/app/controllers/sitemap_controller.rb +21 -0
- data/app/controllers/statistics_controller.rb +34 -0
- data/app/controllers/taggable_sweeper.rb +38 -0
- data/app/controllers/tags_controller.rb +104 -0
- data/app/controllers/theme_controller.rb +60 -0
- data/app/controllers/topics_controller.rb +122 -0
- data/app/controllers/users_controller.rb +426 -0
- data/app/controllers/vote_sweeper.rb +16 -0
- data/app/controllers/votes_controller.rb +24 -0
- data/app/helpers/base_helper.rb +290 -0
- data/app/helpers/forums_helper.rb +31 -0
- data/app/helpers/friendships_helper.rb +16 -0
- data/app/helpers/monitorships_helper.rb +2 -0
- data/app/helpers/posts_helper.rb +17 -0
- data/app/helpers/sitemap_helper.rb +7 -0
- data/app/helpers/users_helper.rb +6 -0
- data/app/models/ad.rb +43 -0
- data/app/models/album.rb +12 -0
- data/app/models/asset.rb +3 -0
- data/app/models/authorization.rb +60 -0
- data/app/models/category.rb +20 -0
- data/app/models/choice.rb +13 -0
- data/app/models/clipping.rb +78 -0
- data/app/models/clipping_image.rb +9 -0
- data/app/models/comment.rb +122 -0
- data/app/models/country.rb +24 -0
- data/app/models/event.rb +61 -0
- data/app/models/facebook_profile.rb +32 -0
- data/app/models/facebook_publisher.rb +45 -0
- data/app/models/favorite.rb +47 -0
- data/app/models/forum.rb +22 -0
- data/app/models/friendship.rb +64 -0
- data/app/models/friendship_status.rb +3 -0
- data/app/models/homepage_feature.rb +15 -0
- data/app/models/invitation.rb +36 -0
- data/app/models/message.rb +84 -0
- data/app/models/message_thread.rb +33 -0
- data/app/models/metro_area.rb +16 -0
- data/app/models/moderatorship.rb +8 -0
- data/app/models/monitorship.rb +6 -0
- data/app/models/page.rb +8 -0
- data/app/models/photo.rb +83 -0
- data/app/models/poll.rb +39 -0
- data/app/models/post.rb +201 -0
- data/app/models/role.rb +5 -0
- data/app/models/rsvp.rb +24 -0
- data/app/models/sb_post.rb +67 -0
- data/app/models/state.rb +4 -0
- data/app/models/topic.rb +72 -0
- data/app/models/twitter_profile.rb +20 -0
- data/app/models/user.rb +483 -0
- data/app/models/user_notifier.rb +140 -0
- data/app/models/user_session.rb +14 -0
- data/app/models/vote.rb +19 -0
- data/app/views/activities/_activity.html.haml +56 -0
- data/app/views/activities/_icon.html.haml +14 -0
- data/app/views/activities/_unhandled_item.html.haml +1 -0
- data/app/views/activities/destroy.js.rjs +1 -0
- data/app/views/activities/index.html.haml +16 -0
- data/app/views/activities/network.html.haml +14 -0
- data/app/views/admin/comments.html.haml +71 -0
- data/app/views/admin/events.html.haml +33 -0
- data/app/views/admin/messages.html.haml +4 -0
- data/app/views/admin/users.html.haml +69 -0
- data/app/views/ads/edit.html.haml +46 -0
- data/app/views/ads/index.html.haml +43 -0
- data/app/views/ads/new.html.haml +44 -0
- data/app/views/ads/show.html.haml +36 -0
- data/app/views/albums/_form.html.haml +14 -0
- data/app/views/albums/edit.html.haml +16 -0
- data/app/views/albums/new.html.haml +15 -0
- data/app/views/albums/show.html.haml +32 -0
- data/app/views/base/_homepage_banner_message.html.haml +19 -0
- data/app/views/base/advertise.html.haml +8 -0
- data/app/views/base/plaxo.html.haml +5 -0
- data/app/views/base/site_index.html.haml +35 -0
- data/app/views/categories/_tips.html.haml +11 -0
- data/app/views/categories/edit.html.haml +34 -0
- data/app/views/categories/index.html.haml +30 -0
- data/app/views/categories/new.html.haml +9 -0
- data/app/views/categories/show.html.haml +45 -0
- data/app/views/clippings/_clipping.html.haml +18 -0
- data/app/views/clippings/_images.html.haml +3 -0
- data/app/views/clippings/_meta.html.haml +26 -0
- data/app/views/clippings/edit.html.haml +26 -0
- data/app/views/clippings/index.html.haml +35 -0
- data/app/views/clippings/load_images_from_uri.js.rjs +1 -0
- data/app/views/clippings/new.html.haml +29 -0
- data/app/views/clippings/new_clipping.html.haml +91 -0
- data/app/views/clippings/show.html.haml +56 -0
- data/app/views/clippings/site_index.html.haml +34 -0
- data/app/views/comments/_comment.html.haml +42 -0
- data/app/views/comments/_comment_form.html.haml +50 -0
- data/app/views/comments/_edit_form.html.haml +29 -0
- data/app/views/comments/create.js.rjs +20 -0
- data/app/views/comments/edit.js.rjs +7 -0
- data/app/views/comments/index.html.haml +23 -0
- data/app/views/comments/update.js.rjs +9 -0
- data/app/views/events/_event.html.haml +32 -0
- data/app/views/events/_subscribe.html.haml +7 -0
- data/app/views/events/edit.html.haml +34 -0
- data/app/views/events/index.html.haml +22 -0
- data/app/views/events/new.html.haml +32 -0
- data/app/views/events/show.html.haml +29 -0
- data/app/views/facebook/_fb_require.html.haml +11 -0
- data/app/views/favorites/_favorite.html.haml +5 -0
- data/app/views/favorites/create.js.rjs +17 -0
- data/app/views/favorites/destroy.js.rjs +14 -0
- data/app/views/favorites/index.html.haml +10 -0
- data/app/views/favorites/show.html.haml +13 -0
- data/app/views/forums/_form.html.haml +21 -0
- data/app/views/forums/edit.html.haml +11 -0
- data/app/views/forums/index.html.haml +70 -0
- data/app/views/forums/new.html.haml +9 -0
- data/app/views/forums/show.html.haml +85 -0
- data/app/views/friendships/_friendship.html.haml +16 -0
- data/app/views/friendships/_friendships.html.erb +14 -0
- data/app/views/friendships/accepted.html.haml +13 -0
- data/app/views/friendships/denied.html.haml +8 -0
- data/app/views/friendships/index.html.erb +3 -0
- data/app/views/friendships/index.xml.builder +29 -0
- data/app/views/friendships/pending.html.haml +7 -0
- data/app/views/friendships/show.html.haml +12 -0
- data/app/views/homepage_features/edit.html.haml +31 -0
- data/app/views/homepage_features/index.html.haml +30 -0
- data/app/views/homepage_features/new.html.haml +30 -0
- data/app/views/homepage_features/show.html.haml +29 -0
- data/app/views/invitations/index.html.erb +16 -0
- data/app/views/invitations/new.html.haml +33 -0
- data/app/views/layouts/application.html.haml +59 -0
- data/app/views/messages/_form.html.haml +24 -0
- data/app/views/messages/_inbox.html.haml +41 -0
- data/app/views/messages/_sent.html.haml +34 -0
- data/app/views/messages/_sidebar_nav.html.haml +9 -0
- data/app/views/messages/index.html.haml +8 -0
- data/app/views/messages/new.html.haml +10 -0
- data/app/views/messages/show.html.haml +40 -0
- data/app/views/metro_areas/edit.html.haml +16 -0
- data/app/views/metro_areas/index.html.haml +28 -0
- data/app/views/metro_areas/new.html.haml +16 -0
- data/app/views/metro_areas/show.html.haml +22 -0
- data/app/views/moderators/_toggle.html.erb +14 -0
- data/app/views/moderators/create.js.rjs +5 -0
- data/app/views/moderators/destroy.js.rjs +1 -0
- data/app/views/monitorships/create.js.rjs +4 -0
- data/app/views/monitorships/destroy.js.rjs +4 -0
- data/app/views/pages/_form.html.haml +25 -0
- data/app/views/pages/edit.html.haml +16 -0
- data/app/views/pages/edit.html.haml~ +16 -0
- data/app/views/pages/index.html.haml +34 -0
- data/app/views/pages/index.html.haml~ +28 -0
- data/app/views/pages/new.html.haml +14 -0
- data/app/views/pages/show.html.haml +8 -0
- data/app/views/pages/show.html.haml~ +6 -0
- data/app/views/password_resets/edit.html.haml +16 -0
- data/app/views/password_resets/new.html.haml +13 -0
- data/app/views/photo_manager/index.html.haml +49 -0
- data/app/views/photos/_manage_photos.html.haml +14 -0
- data/app/views/photos/_show_image_list.html.haml +24 -0
- data/app/views/photos/edit.html.haml +39 -0
- data/app/views/photos/index.html.haml +28 -0
- data/app/views/photos/index.xml.builder +9 -0
- data/app/views/photos/manage_photos.js.rjs +5 -0
- data/app/views/photos/new.html.haml +51 -0
- data/app/views/photos/recent.html.haml +8 -0
- data/app/views/photos/show.html.haml +53 -0
- data/app/views/polls/_edit.html.haml +15 -0
- data/app/views/polls/_excerpt.html.haml +4 -0
- data/app/views/polls/_new.html.haml +10 -0
- data/app/views/polls/_poll_ui.html.haml +37 -0
- data/app/views/polls/_polls_sidebar.html.haml +8 -0
- data/app/views/posts/_author_profile.html.haml +21 -0
- data/app/views/posts/_favorited_post.html.haml +10 -0
- data/app/views/posts/_post.html.haml +29 -0
- data/app/views/posts/_send_to_friend.html.erb +29 -0
- data/app/views/posts/_sidebar_post.html.haml +1 -0
- data/app/views/posts/edit.html.haml +48 -0
- data/app/views/posts/featured.html.haml +19 -0
- data/app/views/posts/index.html.haml +23 -0
- data/app/views/posts/manage.html.haml +66 -0
- data/app/views/posts/new.html.haml +67 -0
- data/app/views/posts/popular.html.haml +35 -0
- data/app/views/posts/preview.html.haml +27 -0
- data/app/views/posts/recent.html.haml +29 -0
- data/app/views/posts/show.html.haml +85 -0
- data/app/views/rsvps/edit.html.haml +9 -0
- data/app/views/rsvps/new.html.haml +9 -0
- data/app/views/sb_posts/_dummy_forum_post.html.erb +13 -0
- data/app/views/sb_posts/_edit.html.erb +31 -0
- data/app/views/sb_posts/_post.xml.builder +10 -0
- data/app/views/sb_posts/_reply_form.html.haml +37 -0
- data/app/views/sb_posts/_sb_post.html.haml +34 -0
- data/app/views/sb_posts/create.js.rjs +16 -0
- data/app/views/sb_posts/edit.html.erb +13 -0
- data/app/views/sb_posts/edit.js.rjs +6 -0
- data/app/views/sb_posts/index.html.haml +55 -0
- data/app/views/sb_posts/index.xml.builder +20 -0
- data/app/views/sb_posts/monitored.html.erb +55 -0
- data/app/views/sb_posts/monitored.xml.builder +15 -0
- data/app/views/sb_posts/update.js.rjs +5 -0
- data/app/views/sessions/new.html.haml +27 -0
- data/app/views/shared/_admin_nav.html.haml +19 -0
- data/app/views/shared/_bio_help.html.haml +4 -0
- data/app/views/shared/_box.html.haml +3 -0
- data/app/views/shared/_contact.html.haml +5 -0
- data/app/views/shared/_explore.html.haml +9 -0
- data/app/views/shared/_footer_content.html.haml +13 -0
- data/app/views/shared/_header.html.haml +42 -0
- data/app/views/shared/_location_chooser.html.haml +21 -0
- data/app/views/shared/_login_sidebar.html.haml +14 -0
- data/app/views/shared/_messages.html.haml +8 -0
- data/app/views/shared/_scripts_and_styles.html.haml +12 -0
- data/app/views/shared/_user_menu.html.haml +21 -0
- data/app/views/sitemap/index.html.haml +21 -0
- data/app/views/sitemap/index.xml.builder +28 -0
- data/app/views/statistics/activities.xml.builder +33 -0
- data/app/views/statistics/index.html.haml +56 -0
- data/app/views/tags/edit.html.haml +19 -0
- data/app/views/tags/index.html.haml +25 -0
- data/app/views/tags/manage.html.haml +37 -0
- data/app/views/tags/show.html.haml +65 -0
- data/app/views/topics/_form.html.haml +28 -0
- data/app/views/topics/_recent_topics_sidebar.haml +22 -0
- data/app/views/topics/edit.html.haml +10 -0
- data/app/views/topics/new.html.haml +21 -0
- data/app/views/topics/show.html.haml +107 -0
- data/app/views/topics/show.xml.builder +15 -0
- data/app/views/user_notifier/activation.text.erb +11 -0
- data/app/views/user_notifier/comment_notice.text.erb +8 -0
- data/app/views/user_notifier/follow_up_comment_notice.text.erb +15 -0
- data/app/views/user_notifier/follow_up_comment_notice_anonymous.text.erb +18 -0
- data/app/views/user_notifier/forgot_username.text.erb +8 -0
- data/app/views/user_notifier/friendship_accepted.text.erb +8 -0
- data/app/views/user_notifier/friendship_request.text.erb +8 -0
- data/app/views/user_notifier/message_notification.text.erb +14 -0
- data/app/views/user_notifier/new_forum_post_notice.text.erb +14 -0
- data/app/views/user_notifier/password_reset_instructions.text.erb +10 -0
- data/app/views/user_notifier/post_recommendation.text.erb +32 -0
- data/app/views/user_notifier/signup_invitation.text.erb +14 -0
- data/app/views/user_notifier/signup_notification.text.erb +16 -0
- data/app/views/users/_dashboard_nav.html.haml +40 -0
- data/app/views/users/_omniauth_connect.html.haml +21 -0
- data/app/views/users/_profile_completeness.html.haml +21 -0
- data/app/views/users/_profile_user_info_sidebar.html.haml +50 -0
- data/app/views/users/_search_options.html.haml +10 -0
- data/app/views/users/_sidebar_user.html.haml +8 -0
- data/app/views/users/_user.html.haml +31 -0
- data/app/views/users/crop_profile_photo.html.haml +40 -0
- data/app/views/users/dashboard.html.haml +44 -0
- data/app/views/users/edit.html.haml +75 -0
- data/app/views/users/edit_account.html.haml +64 -0
- data/app/views/users/forgot_username.html.haml +13 -0
- data/app/views/users/index.html.haml +18 -0
- data/app/views/users/invite.html.haml +31 -0
- data/app/views/users/new.html.haml +54 -0
- data/app/views/users/resend_activation.html.haml +13 -0
- data/app/views/users/show.html.haml +103 -0
- data/app/views/users/signup_completed.html.haml +8 -0
- data/app/views/users/statistics.html.haml +28 -0
- data/app/views/users/upload_profile_photo.html.haml +15 -0
- data/app/views/users/welcome_about.html.haml +66 -0
- data/app/views/users/welcome_invite.html.haml +33 -0
- data/app/views/users/welcome_photo.html.haml +29 -0
- data/app/views/votes/create.js.rjs +6 -0
- data/community_engine.gemspec +55 -0
- data/config/application_config.rb +162 -0
- data/config/initializers/cropper.rb +19 -0
- data/config/initializers/mce_options.rb +40 -0
- data/config/initializers/recaptcha_constants.rb +6 -0
- data/config/initializers/white_list.rb +7 -0
- data/config/locales/de-DE.yml +1271 -0
- data/config/locales/en.yml +1658 -0
- data/config/locales/es-AR.yml +758 -0
- data/config/locales/es-ES.yml +340 -0
- data/config/locales/es-MX.yml +672 -0
- data/config/locales/fr-FR.yml +1509 -0
- data/config/locales/ja-JP.yml +1321 -0
- data/config/locales/ru-RU.yml +97 -0
- data/config/locales/sr-CP.yml +89 -0
- data/config/locales/sv-SE.yml +1320 -0
- data/config/routes.rb +242 -0
- data/db/migrate/001_create_users.rb +26 -0
- data/db/migrate/002_add_activation_code_to_user.rb +11 -0
- data/db/migrate/003_create_photos.rb +22 -0
- data/db/migrate/004_add_tag_support.rb +21 -0
- data/db/migrate/005_create_friendships.rb +14 -0
- data/db/migrate/006_add_comments_tables.rb +18 -0
- data/db/migrate/007_create_friendship_statuses.rb +13 -0
- data/db/migrate/008_add_friendship_statuses.rb +14 -0
- data/db/migrate/009_create_clippings.rb +16 -0
- data/db/migrate/010_create_invitations.rb +14 -0
- data/db/migrate/011_create_homepage_features.rb +22 -0
- data/db/migrate/012_create_posts.rb +19 -0
- data/db/migrate/013_create_states.rb +13 -0
- data/db/migrate/014_add_states.rb +11 -0
- data/db/migrate/015_create_metro_areas.rb +15 -0
- data/db/migrate/016_add_metro_areas.rb +295 -0
- data/db/migrate/017_add_sessions_table.rb +20 -0
- data/db/migrate/018_create_categories.rb +11 -0
- data/db/migrate/019_change_comment_to_text_field.rb +10 -0
- data/db/migrate/020_create_login_slug.rb +9 -0
- data/db/migrate/021_add_category_names.rb +8 -0
- data/db/migrate/023_add_denied_friendship_status.rb +13 -0
- data/db/migrate/024_add_notification_preferences.rb +13 -0
- data/db/migrate/025_create_countries.rb +11 -0
- data/db/migrate/026_add_countries.rb +230 -0
- data/db/migrate/027_add_us_to_existing_metro_areas.rb +9 -0
- data/db/migrate/028_add_country_id_to_users.rb +9 -0
- data/db/migrate/029_add_us_to_users_with_states.rb +14 -0
- data/db/migrate/030_add_users_counter_cache.rb +9 -0
- data/db/migrate/031_news_to_talk.rb +10 -0
- data/db/migrate/033_featured_users.rb +9 -0
- data/db/migrate/034_add_last_login.rb +9 -0
- data/db/migrate/035_track_emailed.rb +9 -0
- data/db/migrate/036_create_skills.rb +11 -0
- data/db/migrate/037_create_offerings.rb +12 -0
- data/db/migrate/038_add_zag_to_users.rb +13 -0
- data/db/migrate/039_create_activities_table.rb +17 -0
- data/db/migrate/040_add_category_tips.rb +9 -0
- data/db/migrate/041_create_events_table.rb +19 -0
- data/db/migrate/042_add_privacy_to_users.rb +10 -0
- data/db/migrate/043_sql_session_store_setup.rb +39 -0
- data/db/migrate/044_category_improvements.rb +11 -0
- data/db/migrate/045_adding_indexes.rb +39 -0
- data/db/migrate/046_adding_ads.rb +20 -0
- data/db/migrate/047_add_polls.rb +30 -0
- data/db/migrate/049_add_activities_count.rb +9 -0
- data/db/migrate/050_create_initial_schema.rb +73 -0
- data/db/migrate/051_add_audience_limitation_to_ads.rb +9 -0
- data/db/migrate/052_create_assets.rb +21 -0
- data/db/migrate/053_create_favoritables.rb +23 -0
- data/db/migrate/054_add_published_as_to_posts.rb +13 -0
- data/db/migrate/055_add_published_at_to_posts.rb +15 -0
- data/db/migrate/056_create_roles.rb +28 -0
- data/db/migrate/057_add_more_indexes.rb +19 -0
- data/db/migrate/058_add_anonymous_commenting_fields.rb +15 -0
- data/db/migrate/059_create_messages.rb +16 -0
- data/db/migrate/060_still_more_indexes.rb +19 -0
- data/db/migrate/061_postgres_compatibility_changes.rb +9 -0
- data/db/migrate/062_add_notify_to_comments.rb +11 -0
- data/db/migrate/063_create_albums.rb +15 -0
- data/db/migrate/064_add_album_id_to_photos.rb +9 -0
- data/db/migrate/065_add_view_count_to_albums.rb +9 -0
- data/db/migrate/066_add_view_count_to_photos.rb +9 -0
- data/db/migrate/067_create_static_pages.rb +22 -0
- data/db/migrate/068_create_rsvps.rb +13 -0
- data/db/migrate/069_create_pages.rb +29 -0
- data/db/migrate/070_add_pages.rb +11 -0
- data/db/migrate/071_authlogic_compatibility_changes.rb +43 -0
- data/db/migrate/072_add_allow_rsvp_to_events.rb +9 -0
- data/db/migrate/073_add_taggings_count_to_tags.rb +9 -0
- data/db/migrate/074_add_threading_to_messages.rb +19 -0
- data/db/migrate/075_add_anonymous_forum_posting.rb +16 -0
- data/db/migrate/076_add_comment_notification_toggle.rb +9 -0
- data/db/migrate/077_paperclip_changes.rb +36 -0
- data/db/migrate/078_create_authorizations.rb +20 -0
- data/db/migrate/079_create_slugs.rb +18 -0
- data/db/sample/users.rb +55 -0
- data/generators/ce_plugin/USAGE +7 -0
- data/generators/ce_plugin/ce_plugin_generator.rb +25 -0
- data/generators/ce_plugin/templates/README +13 -0
- data/generators/ce_plugin/templates/desert_routes.rb +3 -0
- data/generators/ce_plugin/templates/init.rb +8 -0
- data/generators/ce_plugin/templates/plugin.rb +1 -0
- data/generators/plugin_migration/plugin_migration_generator.rb +101 -0
- data/generators/plugin_migration/templates/plugin_migration.erb +13 -0
- data/lang/TRANSLATION.markdown +32 -0
- data/lib/community_engine/authenticated_system.rb +167 -0
- data/lib/community_engine/authenticated_test_helper.rb +113 -0
- data/lib/community_engine/community_engine_sha1_crypto_method.rb +12 -0
- data/lib/community_engine/engine.rb +39 -0
- data/lib/community_engine/engines_extensions.rb +7 -0
- data/lib/community_engine/i18n_extensions.rb +31 -0
- data/lib/community_engine/localized_application.rb +83 -0
- data/lib/community_engine/rails_asset_extensions.rb +131 -0
- data/lib/community_engine/url_upload.rb +15 -0
- data/lib/community_engine/version.rb +10 -0
- data/lib/community_engine/viewable.rb +12 -0
- data/lib/community_engine.rb +34 -0
- data/lib/tag_hacks.rb +24 -0
- data/lib/tasks/community_engine_tasks.rake +87 -0
- data/public/favicon.ico +0 -0
- data/sample_files/s3.yml +17 -0
- data/test/fixtures/ads.yml +13 -0
- data/test/fixtures/albums.yml +16 -0
- data/test/fixtures/categories.yml +16 -0
- data/test/fixtures/clippings.yml +15 -0
- data/test/fixtures/comments.yml +55 -0
- data/test/fixtures/countries.yml +13 -0
- data/test/fixtures/events.yml +61 -0
- data/test/fixtures/files/Granite.bmp +0 -0
- data/test/fixtures/files/library.jpg +0 -0
- data/test/fixtures/forums.yml +10 -0
- data/test/fixtures/friendship_statuses.yml +10 -0
- data/test/fixtures/friendships.yml +15 -0
- data/test/fixtures/homepage_features.yml +13 -0
- data/test/fixtures/invitations.yml +5 -0
- data/test/fixtures/messages.yml +24 -0
- data/test/fixtures/metro_areas.yml +24 -0
- data/test/fixtures/moderatorships.yml +4 -0
- data/test/fixtures/monitorships.yml +10 -0
- data/test/fixtures/pages.yml +26 -0
- data/test/fixtures/photos.yml +29 -0
- data/test/fixtures/posts.yml +49 -0
- data/test/fixtures/roles.yml +9 -0
- data/test/fixtures/rsvps.yml +7 -0
- data/test/fixtures/sb_posts.yml +90 -0
- data/test/fixtures/states.yml +7 -0
- data/test/fixtures/taggings.yml +15 -0
- data/test/fixtures/tags.yml +11 -0
- data/test/fixtures/topics.yml +63 -0
- data/test/fixtures/users.yml +222 -0
- data/test/functional/activities_controller_test.rb +62 -0
- data/test/functional/admin_controller_test.rb +60 -0
- data/test/functional/ads_controller_test.rb +51 -0
- data/test/functional/albums_controller_test.rb +120 -0
- data/test/functional/base_controller_test.rb +27 -0
- data/test/functional/categories_controller_test.rb +51 -0
- data/test/functional/clippings_controller_test.rb +123 -0
- data/test/functional/comments_controller_test.rb +215 -0
- data/test/functional/events_controller_test.rb +104 -0
- data/test/functional/favorites_controller_test.rb +53 -0
- data/test/functional/forums_controller_test.rb +95 -0
- data/test/functional/friendships_controller_test.rb +98 -0
- data/test/functional/homepage_features_controller_test.rb +69 -0
- data/test/functional/invitations_controller_test.rb +45 -0
- data/test/functional/messages_controller_test.rb +154 -0
- data/test/functional/metro_areas_controller_test.rb +63 -0
- data/test/functional/moderators_controller_test.rb +22 -0
- data/test/functional/monitorships_controller_test.rb +72 -0
- data/test/functional/pages_controller_test.rb +95 -0
- data/test/functional/password_reset_controller_test.rb +34 -0
- data/test/functional/photo_manager_controller_test.rb +21 -0
- data/test/functional/photos_controller_test.rb +203 -0
- data/test/functional/posts_controller_test.rb +224 -0
- data/test/functional/rsvps_controller_test.rb +92 -0
- data/test/functional/sb_posts_controller_test.rb +193 -0
- data/test/functional/sessions_controller_test.rb +55 -0
- data/test/functional/sitemap_controller_test.rb +9 -0
- data/test/functional/statistics_controller_test.rb +18 -0
- data/test/functional/tags_controller_test.rb +52 -0
- data/test/functional/theme_controller_test.rb +11 -0
- data/test/functional/topics_controller_test.rb +201 -0
- data/test/functional/users_controller_test.rb +460 -0
- data/test/functional/votes_controller_test.rb +27 -0
- data/test/test_helper.rb +103 -0
- data/test/testapp/.gitignore +4 -0
- data/test/testapp/README +256 -0
- data/test/testapp/Rakefile +7 -0
- data/test/testapp/app/controllers/application_controller.rb +3 -0
- data/test/testapp/app/helpers/application_helper.rb +2 -0
- data/test/testapp/config/application.rb +45 -0
- data/test/testapp/config/application_config.rb +1 -0
- data/test/testapp/config/boot.rb +10 -0
- data/test/testapp/config/database.yml +22 -0
- data/test/testapp/config/environment.rb +6 -0
- data/test/testapp/config/environments/development.rb +25 -0
- data/test/testapp/config/environments/production.rb +49 -0
- data/test/testapp/config/environments/test.rb +35 -0
- data/test/testapp/config/initializers/backtrace_silencers.rb +7 -0
- data/test/testapp/config/initializers/inflections.rb +10 -0
- data/test/testapp/config/initializers/mime_types.rb +5 -0
- data/test/testapp/config/initializers/secret_token.rb +7 -0
- data/test/testapp/config/initializers/session_store.rb +8 -0
- data/test/testapp/config/locales/en.yml +5 -0
- data/test/testapp/config/routes.rb +3 -0
- data/test/testapp/config.ru +4 -0
- data/test/testapp/db/schema.rb +456 -0
- data/test/testapp/db/seeds.rb +7 -0
- data/test/testapp/doc/README_FOR_APP +2 -0
- data/test/testapp/lib/tasks/.gitkeep +0 -0
- data/test/testapp/public/404.html +26 -0
- data/test/testapp/public/422.html +26 -0
- data/test/testapp/public/500.html +26 -0
- data/test/testapp/public/favicon.ico +0 -0
- data/test/testapp/public/images/rails.png +0 -0
- data/test/testapp/public/robots.txt +5 -0
- data/test/testapp/script/rails +6 -0
- data/test/testapp/test/performance/browsing_test.rb +9 -0
- data/test/testapp/test/test_helper.rb +13 -0
- data/test/testapp/vendor/plugins/.gitkeep +0 -0
- data/test/unit/ad_test.rb +34 -0
- data/test/unit/asset_test.rb +15 -0
- data/test/unit/authorization_test.rb +55 -0
- data/test/unit/category_test.rb +22 -0
- data/test/unit/choice_test.rb +9 -0
- data/test/unit/clipping_image_test.rb +17 -0
- data/test/unit/clipping_test.rb +52 -0
- data/test/unit/comment_test.rb +107 -0
- data/test/unit/country_test.rb +15 -0
- data/test/unit/event_test.rb +75 -0
- data/test/unit/favorite_test.rb +71 -0
- data/test/unit/forum_test.rb +23 -0
- data/test/unit/friendship_status_test.rb +10 -0
- data/test/unit/friendship_test.rb +38 -0
- data/test/unit/homepage_feature_test.rb +10 -0
- data/test/unit/invitation_test.rb +27 -0
- data/test/unit/message_test.rb +49 -0
- data/test/unit/message_thread_test.rb +80 -0
- data/test/unit/metro_area_test.rb +10 -0
- data/test/unit/moderatorship_test.rb +30 -0
- data/test/unit/monitorships_test.rb +38 -0
- data/test/unit/page_test.rb +25 -0
- data/test/unit/photo_test.rb +42 -0
- data/test/unit/poll_test.rb +25 -0
- data/test/unit/post_test.rb +212 -0
- data/test/unit/rsvp_test.rb +33 -0
- data/test/unit/sb_post_test.rb +152 -0
- data/test/unit/state_test.rb +10 -0
- data/test/unit/tag_test.rb +22 -0
- data/test/unit/topic_test.rb +111 -0
- data/test/unit/user_notifier_test.rb +108 -0
- data/test/unit/user_test.rb +259 -0
- data/test/unit/vote_test.rb +9 -0
- data/vendor/plugins/activity_tracker/README +4 -0
- data/vendor/plugins/activity_tracker/Rakefile +22 -0
- data/vendor/plugins/activity_tracker/generators/activity_migration/USAGE +13 -0
- data/vendor/plugins/activity_tracker/generators/activity_migration/activity_migration_generator.rb +11 -0
- data/vendor/plugins/activity_tracker/generators/activity_migration/templates/migration.rb +17 -0
- data/vendor/plugins/activity_tracker/init.rb +1 -0
- data/vendor/plugins/activity_tracker/install.rb +1 -0
- data/vendor/plugins/activity_tracker/lib/activity.rb +40 -0
- data/vendor/plugins/activity_tracker/lib/activity_tracker.rb +80 -0
- data/vendor/plugins/activity_tracker/tasks/activity_tracker_tasks.rake +4 -0
- data/vendor/plugins/activity_tracker/test/abstract_unit.rb +47 -0
- data/vendor/plugins/activity_tracker/test/activity_tracker_test.rb +48 -0
- data/vendor/plugins/activity_tracker/test/database.yml +18 -0
- data/vendor/plugins/activity_tracker/test/debug.log +3329 -0
- data/vendor/plugins/activity_tracker/test/fixtures/test_post.rb +5 -0
- data/vendor/plugins/activity_tracker/test/fixtures/test_posts.yml +3 -0
- data/vendor/plugins/activity_tracker/test/fixtures/test_user.rb +4 -0
- data/vendor/plugins/activity_tracker/test/fixtures/test_users.yml +6 -0
- data/vendor/plugins/activity_tracker/test/schema.rb +21 -0
- data/vendor/plugins/activity_tracker/uninstall.rb +1 -0
- data/vendor/plugins/acts_as_list/README +23 -0
- data/vendor/plugins/acts_as_list/init.rb +3 -0
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
- data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
- data/vendor/plugins/acts_as_publishable/README +3 -0
- data/vendor/plugins/acts_as_publishable/Rakefile +22 -0
- data/vendor/plugins/acts_as_publishable/generators/publishing/publishing_generator.rb +34 -0
- data/vendor/plugins/acts_as_publishable/generators/publishing/templates/migration.rb +13 -0
- data/vendor/plugins/acts_as_publishable/init.rb +3 -0
- data/vendor/plugins/acts_as_publishable/install.rb +3 -0
- data/vendor/plugins/acts_as_publishable/lib/acts_as_publishable.rb +81 -0
- data/vendor/plugins/acts_as_publishable/test/acts_as_publishable_test.rb +8 -0
- data/vendor/plugins/acts_as_publishable/uninstall.rb +1 -0
- data/vendor/plugins/auto_complete/README +23 -0
- data/vendor/plugins/auto_complete/Rakefile +22 -0
- data/vendor/plugins/auto_complete/init.rb +2 -0
- data/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
- data/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
- data/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
- data/vendor/plugins/enumerations_mixin/LICENSE +20 -0
- data/vendor/plugins/enumerations_mixin/README_ENUMERATIONS +163 -0
- data/vendor/plugins/enumerations_mixin/init.rb +21 -0
- data/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb +177 -0
- data/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb +60 -0
- data/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb +68 -0
- data/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb +76 -0
- data/vendor/plugins/prototype_legacy_helper/README.markdown +13 -0
- data/vendor/plugins/prototype_legacy_helper/init.rb +1 -0
- data/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
- data/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
- data/vendor/plugins/resource_feeder/README +4 -0
- data/vendor/plugins/resource_feeder/Rakefile +22 -0
- data/vendor/plugins/resource_feeder/init.rb +2 -0
- data/vendor/plugins/resource_feeder/lib/resource_feeder/atom.rb +71 -0
- data/vendor/plugins/resource_feeder/lib/resource_feeder/rss.rb +71 -0
- data/vendor/plugins/resource_feeder/lib/resource_feeder.rb +2 -0
- data/vendor/plugins/resource_feeder/test/atom_feed_test.rb +85 -0
- data/vendor/plugins/resource_feeder/test/rss_feed_test.rb +61 -0
- data/vendor/plugins/resource_feeder/test/test_helper.rb +60 -0
- data/vendor/plugins/respond_to_parent/MIT-LICENSE +20 -0
- data/vendor/plugins/respond_to_parent/README +47 -0
- data/vendor/plugins/respond_to_parent/Rakefile +22 -0
- data/vendor/plugins/respond_to_parent/init.rb +1 -0
- data/vendor/plugins/respond_to_parent/install.rb +1 -0
- data/vendor/plugins/respond_to_parent/lib/responds_to_parent.rb +70 -0
- data/vendor/plugins/respond_to_parent/test/responds_to_parent_test.rb +10 -0
- data/vendor/plugins/respond_to_parent/test/test_helper.rb +6 -0
- data/vendor/plugins/respond_to_parent/uninstall.rb +1 -0
- data/vendor/plugins/tiny_mce/CHANGELOG_PLUGIN.rdoc +91 -0
- data/vendor/plugins/tiny_mce/CHANGELOG_TINYMCE +1226 -0
- data/vendor/plugins/tiny_mce/DEV_UPGRADE_NOTES.rdoc +12 -0
- data/vendor/plugins/tiny_mce/init.rb +2 -0
- data/vendor/plugins/tiny_mce/install.rb +18 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/base.rb +33 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/configuration.rb +114 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/exceptions.rb +14 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/helpers.rb +43 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/railtie.rb +13 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/spell_checker.rb +67 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/valid_tinymce_langs.yml +25 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce/valid_tinymce_options.yml +167 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce.rb +24 -0
- data/vendor/plugins/white_list/README +35 -0
- data/vendor/plugins/white_list/Rakefile +22 -0
- data/vendor/plugins/white_list/init.rb +35 -0
- data/vendor/plugins/white_list/lib/white_list_helper.rb +61 -0
- data/vendor/plugins/white_list/test/white_list_test.rb +120 -0
- metadata +1073 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#hd
|
|
2
|
+
%h1
|
|
3
|
+
%a{:href=>home_url, :title=>"#{configatron.community_name}"}= configatron.community_name
|
|
4
|
+
- if logged_in?
|
|
5
|
+
= render :partial => 'shared/user_menu'
|
|
6
|
+
- if current_user.unread_messages?
|
|
7
|
+
%h2#newmail
|
|
8
|
+
= link_to :unread_messages.l(:count => current_user.unread_message_count), user_messages_path(current_user)
|
|
9
|
+
- else
|
|
10
|
+
%h2
|
|
11
|
+
=:welcome_message.l(:login_link => link_to(:log_in.l, login_path), :signup_link => link_to(:sign_up.l, signup_path))
|
|
12
|
+
|
|
13
|
+
#NavBar
|
|
14
|
+
%ul
|
|
15
|
+
- Category.find(:all).each do |c|
|
|
16
|
+
= topnav_tab c.name, {:url => category_path(c), :section => [c.name]}
|
|
17
|
+
= topnav_tab :forums.l, { :url => forums_path, :section => ['forums'] }
|
|
18
|
+
= topnav_tab :popular.l, { :url => popular_path, :section => ['popular'] }
|
|
19
|
+
= topnav_tab :people.l, { :url => users_path, :section => ['users'] }
|
|
20
|
+
- if current_user
|
|
21
|
+
= topnav_tab :my_profile.l, { :url => user_path(current_user), :section => ['my_profile']}
|
|
22
|
+
- if @header_tabs.any?
|
|
23
|
+
- @header_tabs.each do |tab|
|
|
24
|
+
= topnav_tab tab[:name], {:url => tab[:url], :section => [tab[:section]] }
|
|
25
|
+
|
|
26
|
+
/ SiteSearch Google
|
|
27
|
+
%form{:method=>"get", :action=>"http://www.google.com/custom", :target=>"_top"}
|
|
28
|
+
%input{ :type=>"hidden", :name=>"domains", :value=>"#{home_url}"}
|
|
29
|
+
%label{ :for=>"search", :style=>"display: none"}
|
|
30
|
+
= :search.l+" #{configatron.community_name}"
|
|
31
|
+
%input{ :type=>"text",:name=>"q", :size=>"17", :maxlength=>"255", :id=>"search"}
|
|
32
|
+
%input{ :type=>"hidden", :name=>"sitesearch", :value=>"#{home_url}", :id=>"ss1"}
|
|
33
|
+
%input{ :type=>"hidden", :name=>"client", :value=>"pub-9113954708528841"}
|
|
34
|
+
%input{ :type=>"hidden", :name=>"forid", :value=>"1"}
|
|
35
|
+
%input{ :type=>"hidden", :name=>"channel", :value=>"1842224655"}
|
|
36
|
+
%input{ :type=>"hidden", :name=>"ie", :value=>"ISO-8859-1"}
|
|
37
|
+
%input{ :type=>"hidden", :name=>"oe", :value=>"ISO-8859-1"}
|
|
38
|
+
%input{ :type=>"hidden", :name=>"cof", :value=>"GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0066CC;LC:0066CC;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:90;S:http://#{home_url};FORID:1"}
|
|
39
|
+
%input{ :type=>"hidden", :name=>"hl", :value=>"en"}
|
|
40
|
+
|
|
41
|
+
/ NavBar
|
|
42
|
+
/ header
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#location_chooser
|
|
2
|
+
%label= :country.l
|
|
3
|
+
= select_tag(:country_id, options_from_collection_for_select(Country.find_countries_with_metros, "id", "name", selected_country))
|
|
4
|
+
|
|
5
|
+
%br
|
|
6
|
+
%label= :state.l
|
|
7
|
+
= select_tag(:state_id, options_from_collection_for_select(states, "id", "name", (selected_state rescue nil)), {:disabled => states.empty? })
|
|
8
|
+
|
|
9
|
+
= image_tag 'spinner.gif', :style => 'display:none;'
|
|
10
|
+
|
|
11
|
+
%br
|
|
12
|
+
%label= :metro_area.l
|
|
13
|
+
= select_tag(:metro_area_id, options_from_collection_for_select(metro_areas, "id", "name", (selected_metro_area rescue nil)), {:disabled => metro_areas.empty? })
|
|
14
|
+
|
|
15
|
+
= image_tag 'spinner.gif', :style => 'display:none;'
|
|
16
|
+
|
|
17
|
+
= observe_field("state_id", {:url => {:controller => 'users', :action => 'metro_area_update'}, :with => "'state_id=' + $('state_id').value + '&country_id=' + $('country_id').value", :loading => "$$('div#location_chooser img')[0].show();", 500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", :update => "location_chooser"})
|
|
18
|
+
|
|
19
|
+
%span
|
|
20
|
+
|
|
21
|
+
= observe_field("country_id", {:url => {:controller => 'users', :action => 'metro_area_update'}, :with => "country_id", :loading => "$$('div#location_chooser img')[0].show();", 500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", :update => "location_chooser"})
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
-box do
|
|
2
|
+
%h3=:help.l
|
|
3
|
+
%p
|
|
4
|
+
=:dont_have_an_account.l
|
|
5
|
+
%br/
|
|
6
|
+
= link_to :click_here_to_sign_up.l, "/signup"
|
|
7
|
+
%p
|
|
8
|
+
=:forgot_your_password.l
|
|
9
|
+
%br/
|
|
10
|
+
= link_to :click_here_to_retrieve_it.l, forgot_password_url
|
|
11
|
+
%p
|
|
12
|
+
=:forgot_your_username.l
|
|
13
|
+
%br/
|
|
14
|
+
= link_to :click_here_to_retrieve_it.l, forgot_username_url
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
= javascript_include_tag 'community_engine'
|
|
2
|
+
= stylesheet_link_tag 'community_engine'
|
|
3
|
+
|
|
4
|
+
= tiny_mce_init_if_needed
|
|
5
|
+
|
|
6
|
+
- if forum_page?
|
|
7
|
+
= javascript_include_tag 'forum'
|
|
8
|
+
= stylesheet_link_tag 'forum'
|
|
9
|
+
|
|
10
|
+
- unless @feed_icons.blank?
|
|
11
|
+
- @feed_icons.each do |feed|
|
|
12
|
+
= auto_discovery_link_tag :rss, feed[:url], :title => "Subscribe to '#{feed[:title]}'"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
%h2#user-menu
|
|
2
|
+
=:logged_in.l
|
|
3
|
+
= link_to current_user.login, dashboard_user_path(current_user)
|
|
4
|
+
#user-menu-tip
|
|
5
|
+
%ul
|
|
6
|
+
-if current_user.admin?
|
|
7
|
+
%li=link_to :admin_dashboard.l, admin_dashboard_path
|
|
8
|
+
%li= link_to :edit_profile.l, edit_user_path(current_user)
|
|
9
|
+
%li= link_to :edit_account.l, edit_account_user_path(current_user)
|
|
10
|
+
%li= link_to :manage_posts.l, manage_user_posts_path(current_user)
|
|
11
|
+
%li= link_to :inbox.l, user_messages_path(current_user)
|
|
12
|
+
|
|
13
|
+
%hr
|
|
14
|
+
%ul
|
|
15
|
+
%li= link_to :my_profile.l, user_path(current_user)
|
|
16
|
+
%li=link_to :my_blog.l, user_posts_path(current_user)
|
|
17
|
+
%li=link_to :photo_manager.l, user_photo_manager_index_path(current_user)
|
|
18
|
+
%li=link_to :my_clippings.l, user_clippings_path(current_user)
|
|
19
|
+
%li=link_to :my_friends.l, accepted_user_friendships_path(current_user)
|
|
20
|
+
%hr
|
|
21
|
+
=link_to :log_out.l, logout_path
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.col_full.sitemap
|
|
2
|
+
-box do
|
|
3
|
+
%h2= "#{configatron.community_name} Sitemap"
|
|
4
|
+
|
|
5
|
+
.yui-g
|
|
6
|
+
.yui-g.first
|
|
7
|
+
%h3 Categories
|
|
8
|
+
%ul
|
|
9
|
+
- @categories.each do |c|
|
|
10
|
+
%li= link_to c.name, category_path(c)
|
|
11
|
+
.yui-g
|
|
12
|
+
%h3= :pages.l
|
|
13
|
+
%ul
|
|
14
|
+
%li=link_to :home.l, '/'
|
|
15
|
+
%li= link_to t('sitemaps.index.users'), users_path
|
|
16
|
+
- Page.find(:all).each do |page|
|
|
17
|
+
- if (logged_in? || page.page_public)
|
|
18
|
+
%li= link_to page.title, pages_path(page)
|
|
19
|
+
%li=link_to :log_in.l, '/login'
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
xml.instruct!
|
|
2
|
+
|
|
3
|
+
xml.urlset "xmlns" => "http://www.google.com/schemas/sitemap/0.84" do
|
|
4
|
+
xml.url do
|
|
5
|
+
xml.loc "#{home_url}"
|
|
6
|
+
xml.lastmod w3c_date(Time.now)
|
|
7
|
+
xml.changefreq "hourly"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
@users.find_each do |user|
|
|
11
|
+
xml.url do
|
|
12
|
+
xml.loc "#{home_url}#{user.login_slug}"
|
|
13
|
+
xml.lastmod w3c_date(user.updated_at || Time.now)
|
|
14
|
+
xml.changefreq "weekly"
|
|
15
|
+
xml.priority 0.7
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
@posts.find_each do |post|
|
|
20
|
+
xml.url do
|
|
21
|
+
xml.loc user_post_url post['login_slug'], post.id
|
|
22
|
+
xml.lastmod w3c_date(post.published_at)
|
|
23
|
+
xml.changefreq "weekly"
|
|
24
|
+
xml.priority 0.6
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
|
|
2
|
+
xml.rsp 'status_code' => 0, 'status_message' => 'Success' do
|
|
3
|
+
xml.daily_counts 'type' => 'Logins' do
|
|
4
|
+
current = (Time.now.midnight) - 8.days
|
|
5
|
+
0.upto 7 do |i|
|
|
6
|
+
current += 1.day
|
|
7
|
+
xml.count @logins[current.to_date.iso8601].to_i, 'date' => current.to_s(:line_grapher)
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
xml.daily_counts 'type' => 'Comments' do
|
|
11
|
+
current = (Time.now.midnight) - 8.days
|
|
12
|
+
0.upto 7 do |i|
|
|
13
|
+
current += 1.day
|
|
14
|
+
xml.count @comments[current.to_date.iso8601].to_i, 'date' => current.to_s(:line_grapher)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
xml.daily_counts 'type' => 'Posts' do
|
|
18
|
+
current = (Time.now.midnight) - 8.days
|
|
19
|
+
0.upto 7 do |i|
|
|
20
|
+
current += 1.day
|
|
21
|
+
xml.count @posts[current.to_date.iso8601].to_i, 'date' => current.to_s(:line_grapher)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
xml.daily_counts 'type' => 'Photos' do
|
|
25
|
+
current = (Time.now.midnight) - 8.days
|
|
26
|
+
0.upto 7 do |i|
|
|
27
|
+
current += 1.day
|
|
28
|
+
xml.count @photos[current.to_date.iso8601].to_i, 'date' => current.to_s(:line_grapher)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.yui-b.sidebar= render :partial => 'shared/admin_nav'
|
|
2
|
+
|
|
3
|
+
#yui-main
|
|
4
|
+
-box :class => "yui-b main_column" do
|
|
5
|
+
%h3= :statistics.l
|
|
6
|
+
|
|
7
|
+
%h3
|
|
8
|
+
= :total_users.l+":"
|
|
9
|
+
= @total_users
|
|
10
|
+
|
|
11
|
+
%h3
|
|
12
|
+
= :unactivated_users.l+":"
|
|
13
|
+
= @unactivated_users
|
|
14
|
+
%h3
|
|
15
|
+
= :new_today.l+":"
|
|
16
|
+
= @today_new_users.size
|
|
17
|
+
%ul
|
|
18
|
+
- @today_new_users.each do |user|
|
|
19
|
+
%li= link_to user.login, user_path(user)
|
|
20
|
+
|
|
21
|
+
%h3
|
|
22
|
+
= :new_yesterday.l+":"
|
|
23
|
+
= @yesterday_new_users.size
|
|
24
|
+
%ul
|
|
25
|
+
- @yesterday_new_users.each do |user|
|
|
26
|
+
%li= link_to user.login, user_path(user)
|
|
27
|
+
|
|
28
|
+
%h3
|
|
29
|
+
= :active.l+":"
|
|
30
|
+
= pluralize @active_users_count, :user.l
|
|
31
|
+
(
|
|
32
|
+
= number_to_percentage((@active_users_count/@total_users.to_f)*100, :precision => 1)
|
|
33
|
+
=", 1 "+:month.l+")"
|
|
34
|
+
%h3
|
|
35
|
+
= :most_active_1_month.l
|
|
36
|
+
%ul
|
|
37
|
+
- @active_users.each do |user|
|
|
38
|
+
%li
|
|
39
|
+
= link_to user.login, user_path(user.id)
|
|
40
|
+
\(
|
|
41
|
+
= user.activities_count
|
|
42
|
+
\)
|
|
43
|
+
|
|
44
|
+
%h3
|
|
45
|
+
\% Reporting ZIP:
|
|
46
|
+
= number_to_percentage @percent_reporting_zip, :precision => 1
|
|
47
|
+
%h3
|
|
48
|
+
=:male.l+":"
|
|
49
|
+
= number_to_percentage @percent_male
|
|
50
|
+
=", "+:female.l+":"
|
|
51
|
+
= number_to_percentage @percent_female
|
|
52
|
+
%h3
|
|
53
|
+
= :featured_writer.l
|
|
54
|
+
%ul
|
|
55
|
+
- @featured_writers.each do |w|
|
|
56
|
+
%li= link_to w.login, statistics_user_path(w)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.yui-b.sidebar
|
|
2
|
+
= render :partial => 'shared/admin_nav'
|
|
3
|
+
|
|
4
|
+
#yui-main
|
|
5
|
+
-box :class => "yui-b" do
|
|
6
|
+
%h3=:editing_tag.l
|
|
7
|
+
= form_for(:tag, :url => tag_path(@tag), :html => { :method => :put, :class => "MainForm" }) do |f|
|
|
8
|
+
|
|
9
|
+
%label
|
|
10
|
+
=:name.l
|
|
11
|
+
\:
|
|
12
|
+
= f.text_field :name
|
|
13
|
+
|
|
14
|
+
%p
|
|
15
|
+
= submit_tag :update.l
|
|
16
|
+
|
|
17
|
+
= link_to :show.l, tag_path(@tag)
|
|
18
|
+
|
|
|
19
|
+
= link_to :back.l, admin_tags_path(:action=>:manage)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.yui-b
|
|
2
|
+
-box do
|
|
3
|
+
%h3= :what_are_tags.l
|
|
4
|
+
%p
|
|
5
|
+
%strong= :tags_are_one_word_descriptors_users_assign_to_blog_posts_pictures_and_clippings_on.l+" #{configatron.community_name}."
|
|
6
|
+
%p
|
|
7
|
+
%strong= :bigger_font_size_more_popular_tag.l
|
|
8
|
+
|
|
9
|
+
-box :class => "alt" do
|
|
10
|
+
%h3= :search.l
|
|
11
|
+
%form.MainForm{"action"=>"/search/tags/", "method"=>"get"}
|
|
12
|
+
%label= :tag_name.l+":"
|
|
13
|
+
= text_field_tag 'id', params[:id], :autocomplete => "off"
|
|
14
|
+
#id_auto_complete.auto_complete{"class"=>"auto_complete", "id"=>"id_auto_complete"}
|
|
15
|
+
= auto_complete_field 'id', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
|
|
16
|
+
%p
|
|
17
|
+
%input{"type"=>"submit", "value"=>:go.l}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
#yui-main
|
|
21
|
+
.yui-b
|
|
22
|
+
-box do
|
|
23
|
+
%h3= :browse_content_by_tags.l
|
|
24
|
+
-tag_cloud @tags, %w(css1 css2 css3 css4) do |tag, css_class|
|
|
25
|
+
=link_to tag.name, tag_url(URI.escape(tag.name.to_s, /[\/.?#]/)), :class => css_class
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.yui-b.sidebar
|
|
2
|
+
= render :partial => 'shared/admin_nav'
|
|
3
|
+
|
|
4
|
+
-box do
|
|
5
|
+
%h3=:search.l
|
|
6
|
+
= form_for @search, :html => {:class => "MainForm"} do |f|
|
|
7
|
+
|
|
8
|
+
= f.label :name.l
|
|
9
|
+
= f.text_field :name_starts_with
|
|
10
|
+
|
|
11
|
+
%p= f.submit :search.l
|
|
12
|
+
|
|
13
|
+
#yui-main
|
|
14
|
+
.yui-b
|
|
15
|
+
-box do
|
|
16
|
+
%h3=:tags.l
|
|
17
|
+
|
|
18
|
+
%table{:width=>"100%"}
|
|
19
|
+
%tr
|
|
20
|
+
%th
|
|
21
|
+
=sort_link @search, :by => :name, :as => :name.l
|
|
22
|
+
%th
|
|
23
|
+
=sort_link @search, :by => :taggings_count, :as => :taggings.l
|
|
24
|
+
%th=:actions.l
|
|
25
|
+
|
|
26
|
+
- for tag in @tags
|
|
27
|
+
%tr
|
|
28
|
+
%td= tag.name
|
|
29
|
+
%td= tag.taggings.size
|
|
30
|
+
%td
|
|
31
|
+
= link_to :show.l, tag_path(tag)
|
|
32
|
+
|
|
|
33
|
+
= link_to :edit.l, edit_tag_path(tag)
|
|
34
|
+
|
|
|
35
|
+
= link_to :destroy.l, tag_path(tag), :confirm => :are_you_sure.l, :method => :delete
|
|
36
|
+
.pagination=paginating_links @tags if @tags.total_count > 1
|
|
37
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.yui-b.sidebar
|
|
2
|
+
.yui-u
|
|
3
|
+
-box :class => "alt first_alt" do
|
|
4
|
+
%h3
|
|
5
|
+
- if params[:type]
|
|
6
|
+
= (params[:type].downcase.pluralize + '_tagged').l
|
|
7
|
+
- else
|
|
8
|
+
= :items_tagged.l
|
|
9
|
+
- @tags.each do |tag|
|
|
10
|
+
= link_to h(tag.name), tag_path(tag)
|
|
11
|
+
|
|
12
|
+
-if @related_tags.to_a.size > 0
|
|
13
|
+
-box do
|
|
14
|
+
%h3.tags=:related_tags.l
|
|
15
|
+
-tag_cloud @related_tags, %w(css1 css2 css3 css4) do |tag, css_class|
|
|
16
|
+
=link_to h(tag.name), tag_path(tag), :class => css_class
|
|
17
|
+
|
|
18
|
+
%h6.all= link_to :all_tags.l, tags_path
|
|
19
|
+
|
|
20
|
+
= Ad.display(:new_sidebar_3, logged_in?) #REDESIGN-FIX
|
|
21
|
+
|
|
22
|
+
#yui-main
|
|
23
|
+
.yui-b
|
|
24
|
+
- if @posts.any?
|
|
25
|
+
-unless params[:type]
|
|
26
|
+
#posts
|
|
27
|
+
%h3=:posts.l
|
|
28
|
+
%ul.list.page
|
|
29
|
+
- @posts.each do |post|
|
|
30
|
+
%li
|
|
31
|
+
= link_to( truncate(post.display_title, :length => 75), user_post_path(post.user, post), :title => :by.l(:login => post.user.login) )
|
|
32
|
+
%p.post_excerpt= truncate_words(post.post, 35, '...' )
|
|
33
|
+
%h6.all= link_to :all_posts_tagged.l(:tag_name => @tags_raw), show_tag_type_path(:id => @tags_raw, :type => 'Post') unless params[:type]
|
|
34
|
+
-else
|
|
35
|
+
-box :class => 'first_alt hfeed' do
|
|
36
|
+
= render :partial => 'posts/post', :collection => @posts
|
|
37
|
+
- if @pages
|
|
38
|
+
= paginate @pages
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- if @photos.any?
|
|
42
|
+
%br.clear
|
|
43
|
+
%h3=:photos.l(:count => @photos.size)
|
|
44
|
+
- @photos.each do |photo|
|
|
45
|
+
= link_to image_tag(photo.photo.url(:thumb), :title => "#{photo.description} ("+:uploaded_by.l+" #{photo.user.login})", :class => "polaroid"), user_photo_path(photo.user, photo)
|
|
46
|
+
%h6.all= link_to :all_photos_tagged.l(:tag_name => @tags_raw), show_tag_type_path(:id => @tags_raw, :type => 'Photo') unless params[:type]
|
|
47
|
+
|
|
48
|
+
- if @users.any?
|
|
49
|
+
.user
|
|
50
|
+
%h3= t('tags.show.users')
|
|
51
|
+
- @users.each do |user|
|
|
52
|
+
= link_to image_tag(user.avatar_photo_url(:thumb), :class => "polaroid"), user_path(user), :title => user.login
|
|
53
|
+
%h6.all= link_to :all_users_tagged.l(:tag_name => @tags_raw), show_tag_type_path(:id => @tags_raw, :type => 'User') unless params[:type]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- unless @clippings.empty?
|
|
57
|
+
.blog
|
|
58
|
+
%h3= :clippings.l
|
|
59
|
+
- @clippings.each do |clipping|
|
|
60
|
+
%a{"href"=>"#{h user_clipping_url(clipping.user, clipping) }"}
|
|
61
|
+
%img.polaroid.clipping{"src"=>"#{h clipping.image_uri}", "style"=>"width:108px"}
|
|
62
|
+
%h6.all= link_to :all_clippings_tagged.l(:tag_name => @tags_raw), show_tag_type_path(:id => @tags_raw, :type => 'Clipping') unless params[:type]
|
|
63
|
+
|
|
64
|
+
- if @pages && !params[:type].eql?('Post')
|
|
65
|
+
= paginate @pages
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
%label{"for"=>"topic_title"}= :title.l
|
|
2
|
+
= form.text_field :title, :class => "primary"
|
|
3
|
+
|
|
4
|
+
- if admin? or current_user.moderator_of?(@topic.forum)
|
|
5
|
+
%fieldset
|
|
6
|
+
%label
|
|
7
|
+
= form.check_box :sticky
|
|
8
|
+
= :sticky.l
|
|
9
|
+
%label
|
|
10
|
+
= form.check_box :locked
|
|
11
|
+
= :locked.l
|
|
12
|
+
|
|
13
|
+
%label
|
|
14
|
+
= :tags.l
|
|
15
|
+
%em="(#{:optional_keywords_describing_this_topic_separated_by_commas.l})"
|
|
16
|
+
= text_field_tag 'tag_list', @topic.tag_list, {:autocomplete => "off", :size => 35}
|
|
17
|
+
#tag_list_auto_complete.auto_complete
|
|
18
|
+
= auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [','] }
|
|
19
|
+
|
|
20
|
+
- if @topic.new_record?
|
|
21
|
+
|
|
22
|
+
%label{"for"=>"topic_body"}= :body_text.l
|
|
23
|
+
= form.text_area :body, :rows => 12, :class => 'rich_text_editor'
|
|
24
|
+
|
|
25
|
+
- if admin? and not @topic.new_record?
|
|
26
|
+
%p#topic_forum_id
|
|
27
|
+
%label{"for"=>"topic_forum_id"}= :forum.l
|
|
28
|
+
= form.select :forum_id, Forum.find(:all, :order => "position").map {|x| [x.name, x.id] }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
%h2= :in_the_forums.l
|
|
2
|
+
%table{:width => '100%'}
|
|
3
|
+
%thead
|
|
4
|
+
%tr
|
|
5
|
+
%th.quiet
|
|
6
|
+
=:topic.l
|
|
7
|
+
%th.quiet.centered
|
|
8
|
+
=:posts.l
|
|
9
|
+
%tbody
|
|
10
|
+
-@topics.each do |topic|
|
|
11
|
+
%tr
|
|
12
|
+
%td
|
|
13
|
+
=link_to truncate(strip_tags(topic.title), :length => 45), forum_topic_path(:forum_id => topic.forum, :id => topic.sb_posts.last.topic.id, :page => topic.last_page, :anchor => topic.sb_posts.last.dom_id)
|
|
14
|
+
%br
|
|
15
|
+
%p.small.quiet
|
|
16
|
+
= "in #{link_to topic.forum.name, forum_path(topic.forum)} by <strong>#{topic.sb_posts.last.user.login}</strong>:".html_safe
|
|
17
|
+
%br
|
|
18
|
+
=h truncate(strip_tags(topic.sb_posts.last.body), :length => 45)
|
|
19
|
+
|
|
20
|
+
%td.post_count
|
|
21
|
+
%strong= topic.sb_posts_count
|
|
22
|
+
=link_to :go_to_the_forums.l, forums_path, :class => 'right small'
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-box do
|
|
2
|
+
%h3= :edit_topic.l
|
|
3
|
+
|
|
4
|
+
= error_messages_for :topic
|
|
5
|
+
= form_for :topic,:url => forum_topic_path(@forum, @topic), :html => { :method => :put, :class => "MainForm" } do |f|
|
|
6
|
+
= render :partial => "form", :object => f
|
|
7
|
+
%p
|
|
8
|
+
= submit_tag :save_changes.l
|
|
9
|
+
= :or.l
|
|
10
|
+
= link_to(:cancel.l, forum_topic_path(@forum, @topic))
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
-box :class => 'alt first_alt' do
|
|
2
|
+
= link_to :forums.l, forum_home_path
|
|
3
|
+
%span.arrow →
|
|
4
|
+
= link_to h(@forum.name), forum_path(@forum)
|
|
5
|
+
%span.arrow →
|
|
6
|
+
= :new_topic.l
|
|
7
|
+
|
|
8
|
+
-box do
|
|
9
|
+
%h3#new_topic= :new_topic.l
|
|
10
|
+
%p.subtitle
|
|
11
|
+
= :by.l :login => current_user.display_name
|
|
12
|
+
|
|
13
|
+
= error_messages_for :topic
|
|
14
|
+
= form_for :topic, :url => forum_topics_path(@forum), :html => {:class => "MainForm"} do |f|
|
|
15
|
+
= render :partial => "form", :object => f
|
|
16
|
+
%p
|
|
17
|
+
= submit_tag :post_topic.l
|
|
18
|
+
= :or.l
|
|
19
|
+
= link_to(:cancel.l, forum_path(@forum))
|
|
20
|
+
|
|
21
|
+
= javascript_tag "$('topic_title').focus();"
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
- @meta = { :description => "#{@topic.title.capitalize} discussion.",:keywords => "#{@topic.tags.join(', ') if @topic.tags}", :robots => configatron.robots_meta_show_content}
|
|
2
|
+
- @section = 'forums'
|
|
3
|
+
- @page_title = @topic.title
|
|
4
|
+
- @monitoring = logged_in? && current_user.monitoring_topic?(@topic)
|
|
5
|
+
|
|
6
|
+
%script{:type => 'text/javascript'}
|
|
7
|
+
function monitor_click(checkbox){
|
|
8
|
+
if (checkbox.checked) {
|
|
9
|
+
= remote_function :url => forum_topic_monitorship_path(@forum, @topic)
|
|
10
|
+
} else {
|
|
11
|
+
= remote_function :url => forum_topic_monitorship_path(@forum, @topic), :method => :delete
|
|
12
|
+
}}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
-box :class => "alt first_alt" do
|
|
16
|
+
- if logged_in?
|
|
17
|
+
= form_tag forum_topic_monitorship_path(@forum, @topic), :style => 'margin-top:0em; float:right;' do
|
|
18
|
+
#monitor_topic
|
|
19
|
+
%input#monitor_checkbox{:type=>"checkbox", :checked=> @monitoring, :onclick=>"monitor_click(this);"}
|
|
20
|
+
%label#monitor_label{"for"=>"monitor_checkbox"}
|
|
21
|
+
= @monitoring ? :watching_topic.l : :watch_topic.l
|
|
22
|
+
= hidden_field_tag '_method', 'delete' if @monitoring
|
|
23
|
+
= submit_tag :Set, :id => 'monitor_submit', :style => "display:none"
|
|
24
|
+
|
|
25
|
+
= link_to :forums.l, forum_home_path
|
|
26
|
+
%span.arrow →
|
|
27
|
+
= link_to h(@topic.forum.name), forum_path(@topic.forum)
|
|
28
|
+
%span.arrow →
|
|
29
|
+
= h @topic.title
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
-box :class => "forum" do
|
|
34
|
+
%h3#topic-title
|
|
35
|
+
= h @topic.title
|
|
36
|
+
- if @topic.locked?
|
|
37
|
+
%span= :locked2.l
|
|
38
|
+
- if logged_in?
|
|
39
|
+
%span#topic_mod{"style"=>"display:none;"}
|
|
40
|
+
- if @topic.editable_by?(current_user)
|
|
41
|
+
= link_to(:edit.l, edit_forum_topic_path(@forum, @topic), :class => "utility")
|
|
42
|
+
|
|
|
43
|
+
= link_to(:delete.l, forum_topic_path(@forum, @topic), :class => "utility", :method => :delete, :confirm => :delete_this_topic_forever.l)
|
|
44
|
+
%script{:type => "text/javascript"}
|
|
45
|
+
$('topic-title').observe('mouseover', function(){ $('topic_mod').show()});
|
|
46
|
+
$('topic-title').observe('mouseout', function(){ $('topic_mod').hide()});
|
|
47
|
+
|
|
48
|
+
%p.subtitle
|
|
49
|
+
= feed_icon_tag @topic.title, forum_topic_path(@forum, @topic, :format => :rss)
|
|
50
|
+
= "#{pluralize @topic.sb_posts.count, :post.l}, #{pluralize @topic.voices, :voice.l}"
|
|
51
|
+
= ", #{:tags.l} : #{@topic.tags.collect{|t| link_to( h(t.name), tag_url(t), :class => 'tag') }.join(" ")}" unless @topic.tags.empty?
|
|
52
|
+
|
|
53
|
+
%ul.flat.talking
|
|
54
|
+
%li.label= :voices.l + ":"
|
|
55
|
+
- @voices.each do |user|
|
|
56
|
+
%li= link_to h(user.display_name), user_path(user)
|
|
57
|
+
|
|
58
|
+
- if logged_in? || configatron.allow_anonymous_forum_posting
|
|
59
|
+
%h6.all.right= link_to_function :reply_to_topic.l, "ReplyForm.init()", :class => "utility"
|
|
60
|
+
-else
|
|
61
|
+
%h6.all.right= link_to :reply_to_topic.l, new_forum_topic_sb_post_path(@topic.forum, @topic), :class => "utility"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- if @posts.total_count > 1
|
|
65
|
+
.pagination.clear= paginating_links @posts
|
|
66
|
+
|
|
67
|
+
%a{"name"=>"#{@posts.to_a.first.dom_id}", "id"=>"#{@posts.to_a.first.dom_id}"}
|
|
68
|
+
%br.clear
|
|
69
|
+
%br
|
|
70
|
+
%table#posts.wide{"cellspacing"=>"0", "border"=>"0", "cellpadding"=>"0"}
|
|
71
|
+
- for post in @posts do
|
|
72
|
+
=render :partial => 'sb_posts/sb_post', :locals => {:post => post}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
- if @posts.total_count > 1
|
|
76
|
+
.pagination= paginating_links @posts
|
|
77
|
+
|
|
78
|
+
- if logged_in? || configatron.allow_anonymous_forum_posting
|
|
79
|
+
#edit
|
|
80
|
+
- if @topic.locked?
|
|
81
|
+
%p
|
|
82
|
+
= image_tag "clearbits/lock.gif", :class => "icon grey", :title => :topic_locked.l
|
|
83
|
+
%label= :this_topic_is_locked.l
|
|
84
|
+
- else
|
|
85
|
+
%h6.all.right= link_to_function :reply_to_topic.l, "ReplyForm.init()", :class => "utility"
|
|
86
|
+
#reply.editbox
|
|
87
|
+
.container
|
|
88
|
+
=render :partial => 'sb_posts/reply_form'
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
= javascript_tag "$('reply').hide();"
|
|
92
|
+
- else
|
|
93
|
+
%p= link_to :log_in_to_reply_to_this_topic.l, new_forum_topic_sb_post_path(@topic.forum, @topic), :class => "utility"
|
|
94
|
+
|
|
95
|
+
-box :class => "alt" do
|
|
96
|
+
= link_to :forums.l, forum_home_path
|
|
97
|
+
%span.arrow →
|
|
98
|
+
= link_to h(@topic.forum.name), forum_path(@topic.forum)
|
|
99
|
+
%span.arrow →
|
|
100
|
+
= h @topic.title
|
|
101
|
+
|
|
102
|
+
%script{"type"=>"text/javascript", "charset"=>"utf-8"}
|
|
103
|
+
Event.observe(window, 'load', function(){
|
|
104
|
+
if(document.location.href.include('#reply-form')){
|
|
105
|
+
ReplyForm.init();
|
|
106
|
+
}
|
|
107
|
+
})
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
|
|
2
|
+
|
|
3
|
+
xml.rss "version" => "2.0",
|
|
4
|
+
'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
|
|
5
|
+
'xmlns:atom' => "http://www.w3.org/2005/Atom" do
|
|
6
|
+
xml.channel do
|
|
7
|
+
xml.title "Recent Posts in '#{@topic.title}'"
|
|
8
|
+
xml.link forum_topic_url(@forum, @topic)
|
|
9
|
+
xml.language "en-us"
|
|
10
|
+
xml.ttl "60"
|
|
11
|
+
xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "http://#{request.host_with_port}/open_search.xml"
|
|
12
|
+
xml.description @topic.body
|
|
13
|
+
render :partial => "sb_posts/post.xml", :collection => @topic.sb_posts, :locals => {:xm => xml}
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Hi <%= @user.login %>,
|
|
2
|
+
Just a quick note to let you know your <%= configatron.community_name %> account has been activated. There's always a lot going on at <%= configatron.community_name %>, so come check out what's new:
|
|
3
|
+
|
|
4
|
+
<%= @url %>
|
|
5
|
+
|
|
6
|
+
* As a <%= configatron.community_name %> member, you'll receive occasional e-mails from us (with news, contest announcements, and updates on the site). If you don't want them, you can change your e-mail preferences here:
|
|
7
|
+
|
|
8
|
+
<%= edit_account_user_url(@user.to_param) %>
|
|
9
|
+
|
|
10
|
+
Thanks for joining <%= configatron.community_name %>!
|
|
11
|
+
The <%= configatron.community_name %> Team
|