thredded 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -17
- data/app/assets/images/thredded/three-dot-menu.svg +3 -0
- data/app/assets/stylesheets/thredded/base/_tables.scss +1 -0
- data/app/assets/stylesheets/thredded/base/_variables.scss +24 -1
- data/app/assets/stylesheets/thredded/components/_currently-online.scss +1 -0
- data/app/assets/stylesheets/thredded/components/_messageboard.scss +18 -10
- data/app/assets/stylesheets/thredded/components/_post.scss +84 -13
- data/app/assets/stylesheets/thredded/components/_topics.scss +7 -1
- data/app/assets/stylesheets/thredded/layout/_main-container.scss +1 -0
- data/app/assets/stylesheets/thredded/layout/_search-navigation.scss +15 -6
- data/app/controllers/thredded/application_controller.rb +6 -3
- data/app/controllers/thredded/moderation_controller.rb +1 -1
- data/app/controllers/thredded/posts_controller.rb +19 -22
- data/app/controllers/thredded/preferences_controller.rb +1 -2
- data/app/controllers/thredded/private_posts_controller.rb +77 -0
- data/app/controllers/thredded/private_topics_controller.rb +1 -1
- data/app/controllers/thredded/read_states_controller.rb +1 -1
- data/app/controllers/thredded/topics_controller.rb +1 -1
- data/app/forms/thredded/private_topic_form.rb +3 -3
- data/app/forms/thredded/topic_form.rb +1 -1
- data/app/helpers/thredded/application_helper.rb +12 -1
- data/app/helpers/thredded/render_helper.rb +14 -0
- data/app/helpers/thredded/urls_helper.rb +8 -0
- data/app/models/concerns/thredded/post_common.rb +20 -0
- data/app/models/concerns/thredded/user_topic_read_state_common.rb +6 -0
- data/app/models/thredded/null_user_topic_read_state.rb +4 -0
- data/app/policies/thredded/post_policy.rb +4 -0
- data/app/policies/thredded/private_post_policy.rb +4 -0
- data/app/view_hooks/thredded/all_view_hooks.rb +15 -0
- data/app/view_models/thredded/base_topic_view.rb +1 -1
- data/app/view_models/thredded/post_view.rb +23 -21
- data/app/view_models/thredded/posts_page_view.rb +4 -2
- data/app/view_models/thredded/topic_posts_page_view.rb +1 -1
- data/app/view_models/thredded/topic_view.rb +1 -1
- data/app/view_models/thredded/topics_page_view.rb +1 -0
- data/app/views/thredded/moderation/_post.html.erb +2 -2
- data/app/views/thredded/moderation/_user_post.html.erb +2 -2
- data/app/views/thredded/moderation/activity.html.erb +3 -1
- data/app/views/thredded/moderation/pending.html.erb +3 -1
- data/app/views/thredded/moderation/user.html.erb +3 -1
- data/app/views/thredded/posts/_content.html.erb +1 -0
- data/app/views/thredded/posts/_post.html.erb +11 -12
- data/app/views/thredded/posts/edit.html.erb +3 -4
- data/app/views/thredded/posts_common/_actions.html.erb +21 -8
- data/app/views/thredded/posts_common/actions/_delete.html.erb +4 -0
- data/app/views/thredded/posts_common/actions/_edit.html.erb +2 -0
- data/app/views/thredded/posts_common/actions/_mark_as_unread.html.erb +2 -0
- data/app/views/thredded/private_posts/_content.html.erb +1 -0
- data/app/views/thredded/private_posts/_private_post.html.erb +5 -6
- data/app/views/thredded/private_posts/edit.html.erb +18 -0
- data/app/views/thredded/private_topics/show.html.erb +3 -1
- data/app/views/thredded/shared/_nav.html.erb +1 -1
- data/app/views/thredded/shared/nav/_standalone.html.erb +1 -1
- data/app/views/thredded/topics/_sticky_topics_divider.html.erb +1 -0
- data/app/views/thredded/topics/_topic.html.erb +4 -0
- data/app/views/thredded/topics/index.html.erb +1 -1
- data/app/views/thredded/topics/show.html.erb +1 -1
- data/app/views/thredded/users/_post.html.erb +2 -2
- data/app/views/thredded/users/_posts.html.erb +1 -1
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- data/config/routes.rb +9 -4
- data/lib/generators/thredded/install/templates/initializer.rb +7 -0
- data/lib/thredded.rb +4 -0
- data/lib/thredded/collection_to_strings_with_cache_renderer.rb +62 -0
- data/lib/thredded/version.rb +1 -1
- metadata +15 -4
data/lib/thredded/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thredded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Oliveira
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pundit
|
@@ -465,14 +465,14 @@ dependencies:
|
|
465
465
|
requirements:
|
466
466
|
- - '='
|
467
467
|
- !ruby/object:Gem::Version
|
468
|
-
version: 0.
|
468
|
+
version: 0.46.0
|
469
469
|
type: :development
|
470
470
|
prerelease: false
|
471
471
|
version_requirements: !ruby/object:Gem::Requirement
|
472
472
|
requirements:
|
473
473
|
- - '='
|
474
474
|
- !ruby/object:Gem::Version
|
475
|
-
version: 0.
|
475
|
+
version: 0.46.0
|
476
476
|
- !ruby/object:Gem::Dependency
|
477
477
|
name: rails-i18n
|
478
478
|
requirement: !ruby/object:Gem::Requirement
|
@@ -672,6 +672,7 @@ files:
|
|
672
672
|
- app/assets/images/thredded/moderation.svg
|
673
673
|
- app/assets/images/thredded/private-messages.svg
|
674
674
|
- app/assets/images/thredded/settings.svg
|
675
|
+
- app/assets/images/thredded/three-dot-menu.svg
|
675
676
|
- app/assets/images/thredded/unfollow.svg
|
676
677
|
- app/assets/javascripts/thredded.es6
|
677
678
|
- app/assets/javascripts/thredded/components/currently_online.es6
|
@@ -756,6 +757,7 @@ files:
|
|
756
757
|
- app/controllers/thredded/preferences_controller.rb
|
757
758
|
- app/controllers/thredded/private_post_permalinks_controller.rb
|
758
759
|
- app/controllers/thredded/private_post_previews_controller.rb
|
760
|
+
- app/controllers/thredded/private_posts_controller.rb
|
759
761
|
- app/controllers/thredded/private_topic_previews_controller.rb
|
760
762
|
- app/controllers/thredded/private_topics_controller.rb
|
761
763
|
- app/controllers/thredded/read_states_controller.rb
|
@@ -768,6 +770,7 @@ files:
|
|
768
770
|
- app/forms/thredded/user_preferences_form.rb
|
769
771
|
- app/helpers/thredded/application_helper.rb
|
770
772
|
- app/helpers/thredded/nav_helper.rb
|
773
|
+
- app/helpers/thredded/render_helper.rb
|
771
774
|
- app/helpers/thredded/urls_helper.rb
|
772
775
|
- app/jobs/thredded/activity_updater_job.rb
|
773
776
|
- app/jobs/thredded/auto_follow_and_notify_job.rb
|
@@ -873,6 +876,7 @@ files:
|
|
873
876
|
- app/views/thredded/post_mailer/post_notification.text.erb
|
874
877
|
- app/views/thredded/post_previews/preview.html.erb
|
875
878
|
- app/views/thredded/post_previews/update.html.erb
|
879
|
+
- app/views/thredded/posts/_content.html.erb
|
876
880
|
- app/views/thredded/posts/_form.html.erb
|
877
881
|
- app/views/thredded/posts/_post.html.erb
|
878
882
|
- app/views/thredded/posts/_user.html.erb
|
@@ -883,6 +887,9 @@ files:
|
|
883
887
|
- app/views/thredded/posts_common/_header.html.erb
|
884
888
|
- app/views/thredded/posts_common/_header_with_topic.html.erb
|
885
889
|
- app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
|
890
|
+
- app/views/thredded/posts_common/actions/_delete.html.erb
|
891
|
+
- app/views/thredded/posts_common/actions/_edit.html.erb
|
892
|
+
- app/views/thredded/posts_common/actions/_mark_as_unread.html.erb
|
886
893
|
- app/views/thredded/posts_common/form/_after_content.html.erb
|
887
894
|
- app/views/thredded/posts_common/form/_before_content.html.erb
|
888
895
|
- app/views/thredded/posts_common/form/_content.html.erb
|
@@ -893,8 +900,10 @@ files:
|
|
893
900
|
- app/views/thredded/preferences/edit.html.erb
|
894
901
|
- app/views/thredded/private_post_previews/preview.html.erb
|
895
902
|
- app/views/thredded/private_post_previews/update.html.erb
|
903
|
+
- app/views/thredded/private_posts/_content.html.erb
|
896
904
|
- app/views/thredded/private_posts/_form.html.erb
|
897
905
|
- app/views/thredded/private_posts/_private_post.html.erb
|
906
|
+
- app/views/thredded/private_posts/edit.html.erb
|
898
907
|
- app/views/thredded/private_topic_mailer/message_notification.html.erb
|
899
908
|
- app/views/thredded/private_topic_mailer/message_notification.text.erb
|
900
909
|
- app/views/thredded/private_topic_previews/preview.html.erb
|
@@ -928,6 +937,7 @@ files:
|
|
928
937
|
- app/views/thredded/topics/_followers.html.erb
|
929
938
|
- app/views/thredded/topics/_form.html.erb
|
930
939
|
- app/views/thredded/topics/_header.html.erb
|
940
|
+
- app/views/thredded/topics/_sticky_topics_divider.html.erb
|
931
941
|
- app/views/thredded/topics/_topic.html.erb
|
932
942
|
- app/views/thredded/topics/_topic_form_admin_options.html.erb
|
933
943
|
- app/views/thredded/topics/edit.html.erb
|
@@ -960,6 +970,7 @@ files:
|
|
960
970
|
- lib/generators/thredded/install/templates/initializer.rb
|
961
971
|
- lib/tasks/thredded_tasks.rake
|
962
972
|
- lib/thredded.rb
|
973
|
+
- lib/thredded/collection_to_strings_with_cache_renderer.rb
|
963
974
|
- lib/thredded/content_formatter.rb
|
964
975
|
- lib/thredded/database_seeder.rb
|
965
976
|
- lib/thredded/db_tools.rb
|