threddedDANIEL 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +744 -0
- data/app/assets/images/favicons/README.md +3 -0
- data/app/assets/images/favicons/amazon.png +0 -0
- data/app/assets/images/favicons/github.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_calendar_128px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_docs_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_drive_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_forms_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_sheets_48px.png +0 -0
- data/app/assets/images/favicons/google_branding/logo_slides_48px.png +0 -0
- data/app/assets/images/favicons/stackexchange.png +0 -0
- data/app/assets/images/favicons/twitter.png +0 -0
- data/app/assets/images/favicons/wikipedia.png +0 -0
- data/app/assets/images/thredded/breadcrumb-chevron.svg +1 -0
- data/app/assets/images/thredded/follow.svg +1 -0
- data/app/assets/images/thredded/lock.svg +1 -0
- data/app/assets/images/thredded/moderation.svg +1 -0
- data/app/assets/images/thredded/private-messages.svg +1 -0
- data/app/assets/images/thredded/settings.svg +1 -0
- data/app/assets/images/thredded/three-dot-menu.svg +3 -0
- data/app/assets/images/thredded/unfollow.svg +1 -0
- data/app/assets/javascripts/thredded.es6 +2 -0
- data/app/assets/javascripts/thredded/components/currently_online.es6 +32 -0
- data/app/assets/javascripts/thredded/components/flash_messages.es6 +9 -0
- data/app/assets/javascripts/thredded/components/mention_autocompletion.es6 +40 -0
- data/app/assets/javascripts/thredded/components/post_form.es6 +37 -0
- data/app/assets/javascripts/thredded/components/preview_area.es6 +56 -0
- data/app/assets/javascripts/thredded/components/quote_post.es6 +49 -0
- data/app/assets/javascripts/thredded/components/time_stamps.es6 +25 -0
- data/app/assets/javascripts/thredded/components/topic_form.es6 +94 -0
- data/app/assets/javascripts/thredded/components/topics.es6 +46 -0
- data/app/assets/javascripts/thredded/components/turboforms.es6 +25 -0
- data/app/assets/javascripts/thredded/components/user_preferences_form.es6 +66 -0
- data/app/assets/javascripts/thredded/components/user_textcomplete.es6 +50 -0
- data/app/assets/javascripts/thredded/components/users_select.es6 +122 -0
- data/app/assets/javascripts/thredded/core/csrf_tokens.es6 +9 -0
- data/app/assets/javascripts/thredded/core/debounce.es6 +32 -0
- data/app/assets/javascripts/thredded/core/escape_html.es6 +7 -0
- data/app/assets/javascripts/thredded/core/hide_soft_keyboard.es6 +7 -0
- data/app/assets/javascripts/thredded/core/on_page_load.es6 +54 -0
- data/app/assets/javascripts/thredded/core/serialize_form.es6 +9 -0
- data/app/assets/javascripts/thredded/core/thredded.es6 +1 -0
- data/app/assets/javascripts/thredded/dependencies.js +8 -0
- data/app/assets/javascripts/thredded/dependencies/autosize.js +1 -0
- data/app/assets/javascripts/thredded/dependencies/textcomplete.js +1 -0
- data/app/assets/javascripts/thredded/dependencies/timeago.js +1 -0
- data/app/assets/javascripts/thredded/dependencies/ujs.js +1 -0
- data/app/assets/javascripts/thredded/thredded.es6 +2 -0
- data/app/assets/stylesheets/thredded.scss +3 -0
- data/app/assets/stylesheets/thredded/_base.scss +13 -0
- data/app/assets/stylesheets/thredded/_dependencies.scss +0 -0
- data/app/assets/stylesheets/thredded/_email.scss +51 -0
- data/app/assets/stylesheets/thredded/_thredded.scss +33 -0
- data/app/assets/stylesheets/thredded/base/_alerts.scss +44 -0
- data/app/assets/stylesheets/thredded/base/_buttons.scss +73 -0
- data/app/assets/stylesheets/thredded/base/_dropdown-menu.scss +83 -0
- data/app/assets/stylesheets/thredded/base/_forms.scss +84 -0
- data/app/assets/stylesheets/thredded/base/_grid.scss +58 -0
- data/app/assets/stylesheets/thredded/base/_lists.scss +31 -0
- data/app/assets/stylesheets/thredded/base/_nav.scss +67 -0
- data/app/assets/stylesheets/thredded/base/_tables.scss +17 -0
- data/app/assets/stylesheets/thredded/base/_typography.scss +72 -0
- data/app/assets/stylesheets/thredded/base/_variables.scss +141 -0
- data/app/assets/stylesheets/thredded/components/_alerts.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_base.scss +25 -0
- data/app/assets/stylesheets/thredded/components/_currently-online.scss +54 -0
- data/app/assets/stylesheets/thredded/components/_empty.scss +11 -0
- data/app/assets/stylesheets/thredded/components/_flash-message.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_following.scss +14 -0
- data/app/assets/stylesheets/thredded/components/_form-list.scss +39 -0
- data/app/assets/stylesheets/thredded/components/_icons.scss +3 -0
- data/app/assets/stylesheets/thredded/components/_main-section.scss +9 -0
- data/app/assets/stylesheets/thredded/components/_mention-autocomplete.scss +57 -0
- data/app/assets/stylesheets/thredded/components/_messageboard.scss +155 -0
- data/app/assets/stylesheets/thredded/components/_onebox.scss +275 -0
- data/app/assets/stylesheets/thredded/components/_pagination.scss +35 -0
- data/app/assets/stylesheets/thredded/components/_post-form.scss +27 -0
- data/app/assets/stylesheets/thredded/components/_post.scss +138 -0
- data/app/assets/stylesheets/thredded/components/_preferences.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_preview_area.scss +11 -0
- data/app/assets/stylesheets/thredded/components/_topic-delete.scss +8 -0
- data/app/assets/stylesheets/thredded/components/_topic-header.scss +111 -0
- data/app/assets/stylesheets/thredded/components/_topics.scss +186 -0
- data/app/assets/stylesheets/thredded/layout/_main-container.scss +16 -0
- data/app/assets/stylesheets/thredded/layout/_main-navigation.scss +79 -0
- data/app/assets/stylesheets/thredded/layout/_moderation.scss +97 -0
- data/app/assets/stylesheets/thredded/layout/_navigation.scss +87 -0
- data/app/assets/stylesheets/thredded/layout/_search-navigation.scss +126 -0
- data/app/assets/stylesheets/thredded/layout/_user-navigation.scss +20 -0
- data/app/assets/stylesheets/thredded/layout/_user.scss +10 -0
- data/app/assets/stylesheets/thredded/utilities/_is-compact.scss +26 -0
- data/app/assets/stylesheets/thredded/utilities/_is-expanded.scss +16 -0
- data/app/commands/thredded/at_notification_extractor.rb +23 -0
- data/app/commands/thredded/autofollow_users.rb +62 -0
- data/app/commands/thredded/create_messageboard.rb +42 -0
- data/app/commands/thredded/mark_all_read.rb +22 -0
- data/app/commands/thredded/moderate_post.rb +48 -0
- data/app/commands/thredded/notify_following_users.rb +78 -0
- data/app/commands/thredded/notify_private_topic_users.rb +34 -0
- data/app/controllers/concerns/thredded/new_post_params.rb +21 -0
- data/app/controllers/concerns/thredded/new_private_post_params.rb +21 -0
- data/app/controllers/concerns/thredded/new_private_topic_params.rb +25 -0
- data/app/controllers/concerns/thredded/new_topic_params.rb +19 -0
- data/app/controllers/concerns/thredded/render_preview.rb +16 -0
- data/app/controllers/thredded/application_controller.rb +145 -0
- data/app/controllers/thredded/autocomplete_users_controller.rb +52 -0
- data/app/controllers/thredded/messageboard_groups_controller.rb +31 -0
- data/app/controllers/thredded/messageboards_controller.rb +53 -0
- data/app/controllers/thredded/moderation_controller.rb +103 -0
- data/app/controllers/thredded/post_permalinks_controller.rb +11 -0
- data/app/controllers/thredded/post_previews_controller.rb +29 -0
- data/app/controllers/thredded/posts_controller.rb +97 -0
- data/app/controllers/thredded/preferences_controller.rb +42 -0
- data/app/controllers/thredded/private_post_permalinks_controller.rb +12 -0
- data/app/controllers/thredded/private_post_previews_controller.rb +29 -0
- data/app/controllers/thredded/private_posts_controller.rb +96 -0
- data/app/controllers/thredded/private_topic_previews_controller.rb +15 -0
- data/app/controllers/thredded/private_topics_controller.rb +102 -0
- data/app/controllers/thredded/read_states_controller.rb +13 -0
- data/app/controllers/thredded/theme_previews_controller.rb +34 -0
- data/app/controllers/thredded/topic_previews_controller.rb +15 -0
- data/app/controllers/thredded/topics_controller.rb +205 -0
- data/app/forms/thredded/edit_topic_form.rb +51 -0
- data/app/forms/thredded/post_form.rb +54 -0
- data/app/forms/thredded/private_post_form.rb +50 -0
- data/app/forms/thredded/private_topic_form.rb +160 -0
- data/app/forms/thredded/topic_form.rb +95 -0
- data/app/forms/thredded/user_preferences_form.rb +110 -0
- data/app/helpers/thredded/application_helper.rb +129 -0
- data/app/helpers/thredded/nav_helper.rb +42 -0
- data/app/helpers/thredded/render_helper.rb +15 -0
- data/app/helpers/thredded/urls_helper.rb +134 -0
- data/app/jobs/thredded/activity_updater_job.rb +21 -0
- data/app/jobs/thredded/auto_follow_and_notify_job.rb +14 -0
- data/app/jobs/thredded/notify_private_topic_users_job.rb +12 -0
- data/app/mailer_previews/thredded/base_mailer_preview.rb +118 -0
- data/app/mailer_previews/thredded/post_mailer_preview.rb +13 -0
- data/app/mailer_previews/thredded/private_topic_mailer_preview.rb +13 -0
- data/app/mailers/thredded/base_mailer.rb +18 -0
- data/app/mailers/thredded/post_mailer.rb +21 -0
- data/app/mailers/thredded/private_topic_mailer.rb +21 -0
- data/app/models/concerns/thredded/content_moderation_state.rb +67 -0
- data/app/models/concerns/thredded/friendly_id_reserved_words_and_pagination.rb +17 -0
- data/app/models/concerns/thredded/moderation_state.rb +14 -0
- data/app/models/concerns/thredded/notifier_preference.rb +19 -0
- data/app/models/concerns/thredded/post_common.rb +76 -0
- data/app/models/concerns/thredded/search_parser.rb +41 -0
- data/app/models/concerns/thredded/topic_common.rb +94 -0
- data/app/models/concerns/thredded/topics_search.rb +67 -0
- data/app/models/concerns/thredded/user_topic_read_state_common.rb +42 -0
- data/app/models/thredded/category.rb +18 -0
- data/app/models/thredded/messageboard.rb +120 -0
- data/app/models/thredded/messageboard_group.rb +19 -0
- data/app/models/thredded/messageboard_notifications_for_followed_topics.rb +30 -0
- data/app/models/thredded/messageboard_user.rb +14 -0
- data/app/models/thredded/notifications_for_followed_topics.rb +25 -0
- data/app/models/thredded/notifications_for_private_topics.rb +22 -0
- data/app/models/thredded/null_user.rb +51 -0
- data/app/models/thredded/null_user_topic_read_state.rb +17 -0
- data/app/models/thredded/post.rb +77 -0
- data/app/models/thredded/post_moderation_record.rb +56 -0
- data/app/models/thredded/private_post.rb +63 -0
- data/app/models/thredded/private_topic.rb +89 -0
- data/app/models/thredded/private_user.rb +8 -0
- data/app/models/thredded/stats.rb +25 -0
- data/app/models/thredded/topic.rb +179 -0
- data/app/models/thredded/topic_category.rb +8 -0
- data/app/models/thredded/user_detail.rb +27 -0
- data/app/models/thredded/user_extender.rb +75 -0
- data/app/models/thredded/user_messageboard_preference.rb +45 -0
- data/app/models/thredded/user_permissions/admin/if_admin_column_true.rb +14 -0
- data/app/models/thredded/user_permissions/admin/none.rb +14 -0
- data/app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb +15 -0
- data/app/models/thredded/user_permissions/moderate/if_moderator_column_true.rb +16 -0
- data/app/models/thredded/user_permissions/moderate/none.rb +16 -0
- data/app/models/thredded/user_permissions/read/all.rb +27 -0
- data/app/models/thredded/user_permissions/write/all.rb +16 -0
- data/app/models/thredded/user_permissions/write/none.rb +16 -0
- data/app/models/thredded/user_post_notification.rb +29 -0
- data/app/models/thredded/user_preference.rb +26 -0
- data/app/models/thredded/user_private_topic_read_state.rb +13 -0
- data/app/models/thredded/user_topic_follow.rb +34 -0
- data/app/models/thredded/user_topic_read_state.rb +13 -0
- data/app/notifiers/thredded/email_notifier.rb +25 -0
- data/app/policies/thredded/messageboard_group_policy.rb +16 -0
- data/app/policies/thredded/messageboard_policy.rb +49 -0
- data/app/policies/thredded/post_policy.rb +64 -0
- data/app/policies/thredded/private_post_policy.rb +38 -0
- data/app/policies/thredded/private_topic_policy.rb +24 -0
- data/app/policies/thredded/topic_policy.rb +49 -0
- data/app/view_hooks/thredded/all_view_hooks.rb +125 -0
- data/app/view_models/thredded/base_topic_view.rb +43 -0
- data/app/view_models/thredded/messageboard_group_view.rb +27 -0
- data/app/view_models/thredded/post_view.rb +89 -0
- data/app/view_models/thredded/posts_page_view.rb +27 -0
- data/app/view_models/thredded/private_topic_view.rb +20 -0
- data/app/view_models/thredded/private_topics_page_view.rb +31 -0
- data/app/view_models/thredded/topic_email_view.rb +18 -0
- data/app/view_models/thredded/topic_posts_page_view.rb +17 -0
- data/app/view_models/thredded/topic_view.rb +68 -0
- data/app/view_models/thredded/topics_page_view.rb +38 -0
- data/app/views/layouts/thredded/application.html.erb +18 -0
- data/app/views/thredded/categories/_category.html.erb +1 -0
- data/app/views/thredded/error_pages/forbidden.html.erb +6 -0
- data/app/views/thredded/error_pages/not_found.html.erb +6 -0
- data/app/views/thredded/kaminari/_first_page.html.erb +11 -0
- data/app/views/thredded/kaminari/_gap.html.erb +8 -0
- data/app/views/thredded/kaminari/_last_page.html.erb +11 -0
- data/app/views/thredded/kaminari/_next_page.html.erb +11 -0
- data/app/views/thredded/kaminari/_page.html.erb +12 -0
- data/app/views/thredded/kaminari/_paginator.html.erb +23 -0
- data/app/views/thredded/kaminari/_prev_page.html.erb +11 -0
- data/app/views/thredded/messageboard_groups/new.html.erb +28 -0
- data/app/views/thredded/messageboards/_form.html.erb +30 -0
- data/app/views/thredded/messageboards/_messageboard.html.erb +20 -0
- data/app/views/thredded/messageboards/_messageboard_meta.html.erb +13 -0
- data/app/views/thredded/messageboards/edit.html.erb +15 -0
- data/app/views/thredded/messageboards/index.html.erb +34 -0
- data/app/views/thredded/messageboards/new.html.erb +15 -0
- data/app/views/thredded/moderation/_nav.html.erb +19 -0
- data/app/views/thredded/moderation/_post.html.erb +19 -0
- data/app/views/thredded/moderation/_post_moderation_actions.html.erb +12 -0
- data/app/views/thredded/moderation/_post_moderation_record.html.erb +46 -0
- data/app/views/thredded/moderation/_user_moderation_state.html.erb +3 -0
- data/app/views/thredded/moderation/_user_post.html.erb +12 -0
- data/app/views/thredded/moderation/_users_search_form.html.erb +13 -0
- data/app/views/thredded/moderation/activity.html.erb +20 -0
- data/app/views/thredded/moderation/history.html.erb +13 -0
- data/app/views/thredded/moderation/pending.html.erb +24 -0
- data/app/views/thredded/moderation/user.html.erb +54 -0
- data/app/views/thredded/moderation/users.html.erb +41 -0
- data/app/views/thredded/post_mailer/post_notification.html.erb +26 -0
- data/app/views/thredded/post_mailer/post_notification.text.erb +14 -0
- data/app/views/thredded/post_previews/preview.html.erb +1 -0
- data/app/views/thredded/post_previews/update.html.erb +1 -0
- data/app/views/thredded/posts/_content.html.erb +1 -0
- data/app/views/thredded/posts/_form.html.erb +5 -0
- data/app/views/thredded/posts/_post.html.erb +13 -0
- data/app/views/thredded/posts/_user.html.erb +3 -0
- data/app/views/thredded/posts/edit.html.erb +16 -0
- data/app/views/thredded/posts/new.html.erb +15 -0
- data/app/views/thredded/posts_common/_actions.html.erb +28 -0
- data/app/views/thredded/posts_common/_content.html.erb +3 -0
- data/app/views/thredded/posts_common/_form.html.erb +22 -0
- data/app/views/thredded/posts_common/_header.html.erb +8 -0
- data/app/views/thredded/posts_common/_header_with_topic.html.erb +15 -0
- data/app/views/thredded/posts_common/_header_with_user_and_topic.html.erb +18 -0
- data/app/views/thredded/posts_common/actions/_delete.html.erb +4 -0
- data/app/views/thredded/posts_common/actions/_edit.html.erb +3 -0
- data/app/views/thredded/posts_common/actions/_mark_as_unread.html.erb +2 -0
- data/app/views/thredded/posts_common/actions/_quote.html.erb +4 -0
- data/app/views/thredded/posts_common/form/_after_content.html.erb +8 -0
- data/app/views/thredded/posts_common/form/_before_content.html.erb +8 -0
- data/app/views/thredded/posts_common/form/_content.html.erb +7 -0
- data/app/views/thredded/posts_common/form/_content_field.html.erb +8 -0
- data/app/views/thredded/posts_common/form/_preview_area.html.erb +16 -0
- data/app/views/thredded/preferences/_form.html.erb +95 -0
- data/app/views/thredded/preferences/_messageboards_nav.html.erb +8 -0
- data/app/views/thredded/preferences/_messageboards_nav_item.html.erb +2 -0
- data/app/views/thredded/preferences/edit.html.erb +20 -0
- data/app/views/thredded/private_post_previews/preview.html.erb +1 -0
- data/app/views/thredded/private_post_previews/update.html.erb +1 -0
- data/app/views/thredded/private_posts/_content.html.erb +1 -0
- data/app/views/thredded/private_posts/_form.html.erb +6 -0
- data/app/views/thredded/private_posts/_private_post.html.erb +6 -0
- data/app/views/thredded/private_posts/edit.html.erb +16 -0
- data/app/views/thredded/private_posts/new.html.erb +11 -0
- data/app/views/thredded/private_topic_mailer/message_notification.html.erb +26 -0
- data/app/views/thredded/private_topic_mailer/message_notification.text.erb +15 -0
- data/app/views/thredded/private_topic_previews/preview.html.erb +1 -0
- data/app/views/thredded/private_topics/_breadcrumbs.html.erb +4 -0
- data/app/views/thredded/private_topics/_form.html.erb +39 -0
- data/app/views/thredded/private_topics/_header.html.erb +17 -0
- data/app/views/thredded/private_topics/_no_private_topics.html.erb +6 -0
- data/app/views/thredded/private_topics/_private_topic.html.erb +23 -0
- data/app/views/thredded/private_topics/edit.html.erb +35 -0
- data/app/views/thredded/private_topics/header/_participant.html.erb +1 -0
- data/app/views/thredded/private_topics/index.html.erb +32 -0
- data/app/views/thredded/private_topics/new.html.erb +11 -0
- data/app/views/thredded/private_topics/private_topic/_participant.html.erb +1 -0
- data/app/views/thredded/private_topics/show.html.erb +28 -0
- data/app/views/thredded/search/_form.html.erb +13 -0
- data/app/views/thredded/shared/_breadcrumbs.html.erb +6 -0
- data/app/views/thredded/shared/_content_moderation_blocked_state.html.erb +8 -0
- data/app/views/thredded/shared/_currently_online.html.erb +6 -0
- data/app/views/thredded/shared/_flash_messages.html.erb +7 -0
- data/app/views/thredded/shared/_header.html.erb +3 -0
- data/app/views/thredded/shared/_nav.html.erb +19 -0
- data/app/views/thredded/shared/_page.html.erb +15 -0
- data/app/views/thredded/shared/currently_online/_header.html.erb +5 -0
- data/app/views/thredded/shared/currently_online/_user_list.html.erb +3 -0
- data/app/views/thredded/shared/currently_online/_user_list_item.html.erb +6 -0
- data/app/views/thredded/shared/nav/_moderation.html.erb +14 -0
- data/app/views/thredded/shared/nav/_notification_preferences.html.erb +8 -0
- data/app/views/thredded/shared/nav/_private_topics.html.erb +12 -0
- data/app/views/thredded/shared/nav/_standalone.html.erb +12 -0
- data/app/views/thredded/shared/nav/_standalone_profile.html.erb +3 -0
- data/app/views/thredded/shared/preview.html.erb +10 -0
- data/app/views/thredded/theme_previews/_section_title.html.erb +3 -0
- data/app/views/thredded/theme_previews/show.html.erb +99 -0
- data/app/views/thredded/topic_previews/preview.html.erb +1 -0
- data/app/views/thredded/topics/_followers.html.erb +12 -0
- data/app/views/thredded/topics/_form.html.erb +32 -0
- data/app/views/thredded/topics/_header.html.erb +32 -0
- data/app/views/thredded/topics/_sticky_topics_divider.html.erb +1 -0
- data/app/views/thredded/topics/_topic.html.erb +47 -0
- data/app/views/thredded/topics/_topic_form_admin_options.html.erb +12 -0
- data/app/views/thredded/topics/edit.html.erb +50 -0
- data/app/views/thredded/topics/index.html.erb +35 -0
- data/app/views/thredded/topics/new.html.erb +12 -0
- data/app/views/thredded/topics/search.html.erb +39 -0
- data/app/views/thredded/topics/show.html.erb +46 -0
- data/app/views/thredded/users/_link.html.erb +14 -0
- data/app/views/thredded/users/_post.html.erb +6 -0
- data/app/views/thredded/users/_posts.html.erb +7 -0
- data/bin/rails +6 -0
- data/config/i18n-tasks.yml +16 -0
- data/config/locales/de.yml +257 -0
- data/config/locales/en.yml +253 -0
- data/config/locales/es.yml +257 -0
- data/config/locales/fr.yml +255 -0
- data/config/locales/it.yml +257 -0
- data/config/locales/pl.yml +257 -0
- data/config/locales/pt-BR.yml +258 -0
- data/config/locales/ru.yml +255 -0
- data/config/locales/zh-CN.yml +246 -0
- data/config/routes.rb +87 -0
- data/db/migrate/20160329231848_create_thredded.rb +257 -0
- data/db/seeds.rb +4 -0
- data/db/upgrade_migrations/20160611094616_upgrade_v0_5_to_v0_6.rb +28 -0
- data/db/upgrade_migrations/20160723012349_upgrade_v0_6_to_v0_7.rb +46 -0
- data/db/upgrade_migrations/20161019150201_upgrade_v0_7_to_v0_8.rb +34 -0
- data/db/upgrade_migrations/20161113161801_upgrade_v0_8_to_v0_9.rb +60 -0
- data/db/upgrade_migrations/20170125033319_upgrade_v0_9_to_v0_10.rb +36 -0
- data/db/upgrade_migrations/20170312131417_upgrade_thredded_v0_10_to_v0_11.rb +23 -0
- data/db/upgrade_migrations/20170420163138_upgrade_thredded_v0_11_to_v0_12.rb +28 -0
- data/db/upgrade_migrations/20170811090735_upgrade_thredded_v0_13_to_v_014.rb +21 -0
- data/lib/generators/thredded/install/USAGE +8 -0
- data/lib/generators/thredded/install/install_generator.rb +20 -0
- data/lib/generators/thredded/install/templates/initializer.rb +160 -0
- data/lib/tasks/thredded_tasks.rake +14 -0
- data/lib/thredded.rb +190 -0
- data/lib/thredded/base_migration.rb +14 -0
- data/lib/thredded/base_notifier.rb +28 -0
- data/lib/thredded/collection_to_strings_with_cache_renderer.rb +86 -0
- data/lib/thredded/content_formatter.rb +129 -0
- data/lib/thredded/database_seeder.rb +290 -0
- data/lib/thredded/db_tools.rb +103 -0
- data/lib/thredded/email_transformer.rb +22 -0
- data/lib/thredded/email_transformer/base.rb +47 -0
- data/lib/thredded/email_transformer/onebox.rb +21 -0
- data/lib/thredded/engine.rb +28 -0
- data/lib/thredded/errors.rb +68 -0
- data/lib/thredded/formatting_demo_content.rb +30 -0
- data/lib/thredded/html_pipeline/at_mention_filter.rb +78 -0
- data/lib/thredded/html_pipeline/autolink_filter.rb +15 -0
- data/lib/thredded/html_pipeline/kramdown_filter.rb +39 -0
- data/lib/thredded/html_pipeline/onebox_filter.rb +143 -0
- data/lib/thredded/html_pipeline/wrap_iframes_filter.rb +13 -0
- data/lib/thredded/version.rb +5 -0
- data/lib/thredded/view_hooks/config.rb +37 -0
- data/lib/thredded/view_hooks/renderer.rb +30 -0
- data/vendor/assets/javascripts/autosize.min.js +6 -0
- data/vendor/assets/javascripts/textcomplete.min.js +2 -0
- metadata +1035 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
<% content_for :thredded_page_title, t('thredded.nav.edit_post') %>
|
2
|
+
<% content_for :thredded_page_id, 'thredded--edit-post' %>
|
3
|
+
<% content_for :thredded_breadcrumbs do %>
|
4
|
+
<ul class="thredded--navigation-breadcrumbs">
|
5
|
+
<li><%= link_to t('thredded.nav.edit_post'), edit_post_path(@post_form.post) %></li>
|
6
|
+
</ul>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= thredded_page do %>
|
10
|
+
<section class="thredded--main-section">
|
11
|
+
<%= render 'thredded/posts/form',
|
12
|
+
post: @post_form,
|
13
|
+
button_text: t('thredded.posts.form.update_btn'),
|
14
|
+
button_submitting_text: t('thredded.posts.form.update_btn_submitting')%>
|
15
|
+
</section>
|
16
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% content_for :thredded_page_title, @post_form.topic.title %>
|
2
|
+
<% content_for :thredded_page_id, 'thredded--topic--new-post' %>
|
3
|
+
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>
|
4
|
+
|
5
|
+
<%= thredded_page do %>
|
6
|
+
<section class="thredded--main-section">
|
7
|
+
<div class="thredded--post-form--wrapper">
|
8
|
+
<h3 class="thredded--post-form--title"><%= t('thredded.posts.form.title_label') %></h3>
|
9
|
+
<%= render 'thredded/posts/form',
|
10
|
+
post: @post_form,
|
11
|
+
button_text: t('thredded.posts.form.create_btn'),
|
12
|
+
button_submitting_text: t('thredded.posts.form.create_btn_submitting') %>
|
13
|
+
</div>
|
14
|
+
</section>
|
15
|
+
<% end %>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<% actions ||= {} %>
|
2
|
+
<% actions_html = capture do %>
|
3
|
+
<%= view_hooks.post_common.actions.render self, post: post do %>
|
4
|
+
<% if actions[:quote] && post.can_reply? %>
|
5
|
+
<%= render 'thredded/posts_common/actions/quote', post: post %>
|
6
|
+
<% end %>
|
7
|
+
<% if post.can_update? %>
|
8
|
+
<%= render 'thredded/posts_common/actions/edit', post: post %>
|
9
|
+
<% end %>
|
10
|
+
<% if post.can_destroy? %>
|
11
|
+
<%= render 'thredded/posts_common/actions/delete', post: post %>
|
12
|
+
<% end %>
|
13
|
+
<% if post.read_state %>
|
14
|
+
<%= view_hooks.post_common.mark_as_unread.render self, post: post do %>
|
15
|
+
<%= render 'thredded/posts_common/actions/mark_as_unread', post: post %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<%- if actions_html.present? %>
|
22
|
+
<div class='thredded--post--dropdown'>
|
23
|
+
<%= inline_svg 'thredded/three-dot-menu.svg', class: 'thredded--post--dropdown--toggle' %>
|
24
|
+
<div class='thredded--post--dropdown--actions'>
|
25
|
+
<%= actions_html %>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%# locals: post, content_label, button_text, button_submitting_text. %>
|
2
|
+
<%= form_for post,
|
3
|
+
url: post.submit_path,
|
4
|
+
as: :post,
|
5
|
+
html: {
|
6
|
+
class: 'thredded--form thredded--post-form',
|
7
|
+
'data-thredded-post-form' => true,
|
8
|
+
'data-autocomplete-url' => autocomplete_users_path,
|
9
|
+
'data-autocomplete-min-length' => Thredded.autocomplete_min_length,
|
10
|
+
} do |form| %>
|
11
|
+
<ul class="thredded--form-list">
|
12
|
+
<%= render 'thredded/posts_common/form/content',
|
13
|
+
form: form, content_label: content_label, preview_url: post.preview_path %>
|
14
|
+
<li>
|
15
|
+
<% button_submitting_text ||=
|
16
|
+
post.persisted? ? t('thredded.form.update_btn_submitting') : t('thredded.form.create_btn_submitting') %>
|
17
|
+
<button type="submit" class="thredded--form--submit" data-disable-with="<%= button_submitting_text %>">
|
18
|
+
<%= button_text %>
|
19
|
+
</button>
|
20
|
+
</li>
|
21
|
+
</ul>
|
22
|
+
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%# @param post [Thredded::PostView] %>
|
2
|
+
<header>
|
3
|
+
<%= image_tag post.avatar_url, class: 'thredded--post--avatar' if post.user %>
|
4
|
+
<h2 class="thredded--post--user"><%= user_link post.user %></h2>
|
5
|
+
<a href="<%= post.permalink_path %>" rel="nofollow" class="thredded--link thredded--post--created-at">
|
6
|
+
<%= time_ago post.created_at %>
|
7
|
+
</a>
|
8
|
+
</header>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%# @param post [Thredded::PostView] %>
|
2
|
+
<% topic = post.to_model.postable %>
|
3
|
+
<header>
|
4
|
+
<h2 class="thredded--post--topic">
|
5
|
+
<%=
|
6
|
+
topic_link = link_to(topic.title, post.permalink_path)
|
7
|
+
if topic.first_post == post.to_model
|
8
|
+
t 'thredded.users.started_topic_html', topic_link: topic_link
|
9
|
+
else
|
10
|
+
t 'thredded.users.posted_in_topic_html', topic_link: topic_link
|
11
|
+
end
|
12
|
+
%>
|
13
|
+
</h2>
|
14
|
+
<p class="thredded--post--created-at"><%= time_ago post.created_at %></p>
|
15
|
+
</header>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<%# @param post [Thredded::PostView] %>
|
2
|
+
<%# @param post_user_link [String] optional %>
|
3
|
+
<% topic = post.to_model.postable %>
|
4
|
+
<% post_user_link ||= user_link(post.user) %>
|
5
|
+
<header>
|
6
|
+
<%= image_tag post.avatar_url, class: 'thredded--post--avatar' if post.user %>
|
7
|
+
<h2 class="thredded--post--user-and-topic">
|
8
|
+
<%=
|
9
|
+
topic_link = link_to(topic.title, post.permalink_path)
|
10
|
+
if topic.first_post == post.to_model
|
11
|
+
t 'thredded.users.user_started_topic_html', user_link: post_user_link, topic_link: topic_link
|
12
|
+
else
|
13
|
+
t 'thredded.users.user_posted_in_topic_html', user_link: post_user_link, topic_link: topic_link
|
14
|
+
end
|
15
|
+
%>
|
16
|
+
</h2>
|
17
|
+
<p class="thredded--post--created-at"><%= time_ago post.created_at %></p>
|
18
|
+
</header>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%#
|
2
|
+
# This partial is deprecated. Add a view hook to the initializer instead, for example:
|
3
|
+
|
4
|
+
Thredded.view_hooks.post_form.content_text_area.config.after do
|
5
|
+
# This is rendered in the Thredded view context, so all Thredded helpers and URLs are accessible here directly.
|
6
|
+
render partial: 'my_partial'
|
7
|
+
end
|
8
|
+
%>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%#
|
2
|
+
# This partial is deprecated. Add a view hook to the initializer instead, for example:
|
3
|
+
|
4
|
+
Thredded.view_hooks.post_form.content_text_area.config.before do
|
5
|
+
# This is rendered in the Thredded view context, so all Thredded helpers and URLs are accessible here directly.
|
6
|
+
render partial: 'my_partial'
|
7
|
+
end
|
8
|
+
%>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<li>
|
2
|
+
<%= form.label :content, content_label %>
|
3
|
+
<%= view_hooks.post_form.content_text_area.render self, form: form, content_label: content_label do %>
|
4
|
+
<%= render 'thredded/posts_common/form/before_content', form: form %>
|
5
|
+
<%= form.text_area :content, {rows: 5, required: true} %>
|
6
|
+
<%= render 'thredded/posts_common/form/after_content', form: form %>
|
7
|
+
<% end %>
|
8
|
+
</li>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= view_hooks.post_form.preview_area.render self, form: form, preview_url: preview_url do %>
|
2
|
+
<li>
|
3
|
+
<noscript>
|
4
|
+
<button type="submit" class="thredded--button thredded--post--preview-btn"
|
5
|
+
formtarget="_blank" formaction="<%= preview_url %>">
|
6
|
+
<%= t 'thredded.form.preview' %>
|
7
|
+
</button>
|
8
|
+
</noscript>
|
9
|
+
|
10
|
+
<div class="thredded--preview-area"
|
11
|
+
data-thredded-preview-area data-thredded-preview-url="<%= preview_url %>">
|
12
|
+
<h4 class="thredded--preview-area--title"><%= t 'thredded.form.preview' %></h4>
|
13
|
+
<div class="thredded--preview-area--post thredded--post--content" data-thredded-preview-area-post></div>
|
14
|
+
</div>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<%# @type preferences [Thredded::UserPreferencesForm] %>
|
2
|
+
<%= form_for(preferences, method: :patch, url: preferences.update_path, html: {
|
3
|
+
class: 'thredded--form thredded--notification-preferences-form',
|
4
|
+
'data-thredded-user-preferences-form' => true
|
5
|
+
}) do |f| %>
|
6
|
+
<ul class="thredded--form-list thredded--user-preferences-global">
|
7
|
+
<li class="thredded--user-preferences--auto-follow-topics">
|
8
|
+
<%= f.label :auto_follow_topics do %>
|
9
|
+
<%= f.check_box :auto_follow_topics,
|
10
|
+
'data-thredded-update-checkbox-on-change' =>
|
11
|
+
'user_preferences_form[messageboard_auto_follow_topics]' %>
|
12
|
+
<%= t 'thredded.preferences.form.auto_follow_topics.label' %>
|
13
|
+
<p class="thredded--form-list--hint">
|
14
|
+
<%= t 'thredded.preferences.form.auto_follow_topics.hint' %>
|
15
|
+
</p>
|
16
|
+
<% end %>
|
17
|
+
</li>
|
18
|
+
<li class="thredded--user-preferences--follow-topics-on-mention">
|
19
|
+
<%= f.label :follow_topics_on_mention do %>
|
20
|
+
<%= f.check_box :follow_topics_on_mention, 'data-thredded-bound-messageboard-pref' => 'user_preferences_form[messageboard_follow_topics_on_mention]' %>
|
21
|
+
<%= t 'thredded.preferences.form.follow_topics_on_mention.label' %>
|
22
|
+
<p class="thredded--form-list--hint">
|
23
|
+
<%= t 'thredded.preferences.form.follow_topics_on_mention.hint' %>
|
24
|
+
</p>
|
25
|
+
<% end %>
|
26
|
+
</li>
|
27
|
+
<% if Thredded.notifiers.present? %>
|
28
|
+
<li class="thredded--user-preferences--notifications-for-followed-topics">
|
29
|
+
<label><%= t 'thredded.preferences.form.notifications_for_followed_topics.label' %></label>
|
30
|
+
<%= f.fields_for :notifications_for_followed_topics, preferences.notifications_for_followed_topics do |fn| %>
|
31
|
+
<%= fn.label :enabled do %>
|
32
|
+
<%= fn.hidden_field :notifier_key %>
|
33
|
+
<%= fn.check_box :enabled,
|
34
|
+
'data-thredded-bound-messageboard-pref' =>
|
35
|
+
"user_preferences_form[messageboard_notifications_for_followed_topics_attributes][#{fn.index}][enabled]" %>
|
36
|
+
<%= fn.object.notifier_human_name %>
|
37
|
+
<%- end %>
|
38
|
+
<%- end %>
|
39
|
+
</li>
|
40
|
+
<li class="thredded--user-preferences--notifications-for-private-topics">
|
41
|
+
<label><%= t 'thredded.preferences.form.notifications_for_private_topics.label' %></label>
|
42
|
+
<%= f.fields_for :notifications_for_private_topics, preferences.notifications_for_private_topics do |fn| %>
|
43
|
+
<%= fn.label :enabled do %>
|
44
|
+
<%= fn.hidden_field :notifier_key %>
|
45
|
+
<%= fn.check_box :enabled %>
|
46
|
+
<%= fn.object.notifier_human_name %>
|
47
|
+
<% end %>
|
48
|
+
<% end %>
|
49
|
+
</li>
|
50
|
+
<% end %>
|
51
|
+
</ul>
|
52
|
+
<% if preferences.messageboard %>
|
53
|
+
<h2 class="thredded--preferences--title">
|
54
|
+
<%= t 'thredded.preferences.messageboard_preferences_title_html', messageboard: messageboard.name %>
|
55
|
+
</h2>
|
56
|
+
<ul class="thredded--form-list thredded--user-preferences-messageboard" data-thredded-user-preferences-form-messageboard-fields>
|
57
|
+
<li class="thredded--user-preferences--auto-follow-topics">
|
58
|
+
<%= f.label :messageboard_auto_follow_topics do %>
|
59
|
+
<%= f.check_box :messageboard_auto_follow_topics %>
|
60
|
+
<%= t 'thredded.preferences.form.messageboard_auto_follow_topics.label' %>
|
61
|
+
<p class="thredded--form-list--hint">
|
62
|
+
<%= t 'thredded.preferences.form.messageboard_auto_follow_topics.hint' %>
|
63
|
+
</p>
|
64
|
+
<% end %>
|
65
|
+
</li>
|
66
|
+
<li class="thredded--user-preferences--follow-topics-on-mention">
|
67
|
+
<%= f.label :messageboard_follow_topics_on_mention do %>
|
68
|
+
<%= f.check_box :messageboard_follow_topics_on_mention %>
|
69
|
+
<%= t 'thredded.preferences.form.messageboard_follow_topics_on_mention.label' %>
|
70
|
+
<p class="thredded--form-list--hint">
|
71
|
+
<%= t 'thredded.preferences.form.messageboard_follow_topics_on_mention.hint' %>
|
72
|
+
</p>
|
73
|
+
<% end %>
|
74
|
+
</li>
|
75
|
+
<% if Thredded.notifiers.present? %>
|
76
|
+
<li class="thredded--user-preferences--notifications-for-followed-topics">
|
77
|
+
<label><%= t 'thredded.preferences.form.messageboard_notifications_for_followed_topics.label' %></label>
|
78
|
+
<%= f.fields_for :messageboard_notifications_for_followed_topics,
|
79
|
+
preferences.messageboard_notifications_for_followed_topics do |fn| %>
|
80
|
+
<%= fn.label :enabled do %>
|
81
|
+
<%= fn.hidden_field :notifier_key %>
|
82
|
+
<%= fn.hidden_field :messageboard_id %>
|
83
|
+
<%= fn.check_box :enabled %>
|
84
|
+
<%= fn.object.notifier_human_name %>
|
85
|
+
<% end %>
|
86
|
+
<%- end %>
|
87
|
+
</li>
|
88
|
+
<% end %>
|
89
|
+
</ul>
|
90
|
+
<% end %>
|
91
|
+
<button type="submit" class="thredded--form--submit"
|
92
|
+
data-disable-with="<%= t 'thredded.preferences.form.update_btn_submitting' %>">
|
93
|
+
<%= t 'thredded.preferences.form.submit_btn' %>
|
94
|
+
</button>
|
95
|
+
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<% preferences.messageboard_groups.each do |group| %>
|
2
|
+
<h3 class="thredded--messageboards-group--title"><%= group.name %></h3>
|
3
|
+
<div class="thredded--messageboards-group">
|
4
|
+
<%= render partial: 'thredded/preferences/messageboards_nav_item',
|
5
|
+
collection: group.messageboards,
|
6
|
+
as: :messageboard %>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<% content_for :thredded_page_title, t('thredded.preferences.edit.page_title') %>
|
2
|
+
<% content_for :thredded_page_id, 'thredded--preferences' %>
|
3
|
+
<% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>
|
4
|
+
|
5
|
+
<%= thredded_page do %>
|
6
|
+
<section class="thredded--main-section thredded--preferences">
|
7
|
+
<section class="thredded--preferences--form">
|
8
|
+
<h2 class="thredded--preferences--title"><%= t 'thredded.preferences.global_preferences_title' %></h2>
|
9
|
+
<%= render 'thredded/preferences/form', preferences: @preferences %>
|
10
|
+
</section>
|
11
|
+
<% unless preferences.messageboard %>
|
12
|
+
<section class="thredded--preferences--messageboards-nav">
|
13
|
+
<h2 class="thredded--preferences--title">
|
14
|
+
<%= t 'thredded.preferences.messageboard_preferences_nav_title' %>
|
15
|
+
</h2>
|
16
|
+
<%= render 'thredded/preferences/messageboards_nav', preferences: @preferences %>
|
17
|
+
</section>
|
18
|
+
<% end %>
|
19
|
+
</section>
|
20
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= @private_post.filtered_content(self) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= @private_post.filtered_content(self) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'thredded/posts_common/content', post: post, options: local_assigns[:options] || {} %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<%# TODO: For private topics, only autocomplete users in this private topic %>
|
2
|
+
<%= render 'thredded/posts_common/form',
|
3
|
+
post: post,
|
4
|
+
button_text: t('thredded.private_posts.form.create_btn'),
|
5
|
+
button_submitting_text: t('thredded.private_posts.form.create_btn_submitting'),
|
6
|
+
content_label: t('thredded.private_posts.form.content_label') %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<% private_post, content = post_and_content if local_assigns.key?(:post_and_content) %>
|
2
|
+
<%= content_tag :article, id: dom_id(private_post), class: 'thredded--post' do %>
|
3
|
+
<%= render 'thredded/posts_common/actions', post: private_post, actions: local_assigns[:actions] %>
|
4
|
+
<%= render 'thredded/posts_common/header', post: private_post %>
|
5
|
+
<%= content || render('thredded/private_posts/content', post: post) %>
|
6
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<% content_for :thredded_page_title, t('thredded.nav.edit_post') %>
|
2
|
+
<% content_for :thredded_page_id, 'thredded--edit-post' %>
|
3
|
+
<% content_for :thredded_breadcrumbs do %>
|
4
|
+
<ul class="thredded--navigation-breadcrumbs">
|
5
|
+
<li><%= link_to t('thredded.nav.edit_post'), edit_post_path(@post_form.post) %></li>
|
6
|
+
</ul>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= thredded_page do %>
|
10
|
+
<section class="thredded--main-section">
|
11
|
+
<%= render 'thredded/posts/form',
|
12
|
+
post: @post_form,
|
13
|
+
button_text: t('thredded.posts.form.update_btn'),
|
14
|
+
button_submitting_text: t('thredded.posts.form.update_btn_submitting')%>
|
15
|
+
</section>
|
16
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% private_topic = @post_form.topic %>
|
2
|
+
<% content_for :thredded_page_title, private_topic.title %>
|
3
|
+
<% content_for :thredded_page_id, 'thredded--private-topic--new_post' %>
|
4
|
+
<% content_for :thredded_breadcrumbs, render('thredded/private_topics/breadcrumbs') %>
|
5
|
+
|
6
|
+
<%= thredded_page do %>
|
7
|
+
<section class="thredded--main-section">
|
8
|
+
<%= render 'thredded/private_posts/form',
|
9
|
+
post: @post_form %>
|
10
|
+
</section>
|
11
|
+
<% end %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<div class="thredded--email">
|
2
|
+
<figure class="thredded--email-post">
|
3
|
+
<figcaption class="thredded--email-post--author">
|
4
|
+
<%= t 'thredded.emails.message_notification.html.post_lead_html',
|
5
|
+
user: @post.user.thredded_display_name,
|
6
|
+
post_url: private_post_permalink_url(@post.id),
|
7
|
+
topic_title: @post.postable.title %>
|
8
|
+
</figcaption>
|
9
|
+
<% cache [@post, 'content-onebox-placeholders'] do %>
|
10
|
+
<%= render partial: 'thredded/private_posts/content',
|
11
|
+
locals: { post: @post, options: {onebox_placeholders: true} } %>
|
12
|
+
<% end %>
|
13
|
+
</figure>
|
14
|
+
<hr/>
|
15
|
+
<p>
|
16
|
+
<%= t 'thredded.emails.message_notification.html.email_sent_reason_html',
|
17
|
+
user: @post.postable.user.thredded_display_name,
|
18
|
+
post_url: private_post_permalink_url(@post.id),
|
19
|
+
topic_title: @post.postable.title %>
|
20
|
+
</p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<%= t 'thredded.emails.message_notification.html.unsubscribe_instructions_html',
|
24
|
+
preferences_url: edit_preferences_url %>
|
25
|
+
</p>
|
26
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= t 'thredded.emails.message_notification.text.post_lead',
|
2
|
+
user: @post.user.thredded_display_name,
|
3
|
+
topic_title: @post.postable.title %>
|
4
|
+
|
5
|
+
<%= @post.content %>
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
<%= t 'thredded.emails.message_notification.text.email_sent_reason',
|
10
|
+
user: @post.postable.user.thredded_display_name,
|
11
|
+
topic_title: @post.postable.title,
|
12
|
+
post_url: private_post_permalink_url(@post.id) %>
|
13
|
+
|
14
|
+
<%= t 'thredded.emails.message_notification.text.unsubscribe_instructions',
|
15
|
+
unsubscribe_url: edit_preferences_url %>
|