thredded 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -5
  3. data/app/assets/javascripts/thredded/components/post_form.es6 +4 -4
  4. data/app/assets/javascripts/thredded/components/quote_post.es6 +45 -0
  5. data/app/assets/javascripts/thredded/components/topic_form.es6 +4 -4
  6. data/app/assets/javascripts/thredded/core/on_page_load.es6 +8 -0
  7. data/app/assets/javascripts/thredded/dependencies.js +1 -1
  8. data/app/assets/stylesheets/thredded/_email.scss +2 -3
  9. data/app/assets/stylesheets/thredded/components/_preferences.scss +17 -4
  10. data/app/controllers/concerns/thredded/new_post_params.rb +20 -0
  11. data/app/controllers/concerns/thredded/new_private_post_params.rb +20 -0
  12. data/app/controllers/thredded/posts_controller.rb +22 -13
  13. data/app/controllers/thredded/preferences_controller.rb +1 -0
  14. data/app/controllers/thredded/private_posts_controller.rb +24 -12
  15. data/app/controllers/thredded/private_topics_controller.rb +4 -1
  16. data/app/controllers/thredded/theme_previews_controller.rb +4 -2
  17. data/app/controllers/thredded/topics_controller.rb +13 -2
  18. data/app/forms/thredded/post_form.rb +52 -0
  19. data/app/forms/thredded/private_post_form.rb +48 -0
  20. data/app/forms/thredded/private_topic_form.rb +8 -0
  21. data/app/forms/thredded/topic_form.rb +8 -0
  22. data/app/forms/thredded/user_preferences_form.rb +7 -1
  23. data/app/helpers/thredded/urls_helper.rb +18 -0
  24. data/app/models/thredded/topic.rb +3 -3
  25. data/app/policies/thredded/private_topic_policy.rb +1 -1
  26. data/app/view_models/thredded/messageboard_group_view.rb +1 -1
  27. data/app/view_models/thredded/post_view.rb +19 -3
  28. data/app/view_models/thredded/private_topic_view.rb +0 -4
  29. data/app/view_models/thredded/topic_view.rb +0 -4
  30. data/app/views/thredded/posts/_form.html.erb +0 -2
  31. data/app/views/thredded/posts/edit.html.erb +2 -5
  32. data/app/views/thredded/posts/new.html.erb +15 -0
  33. data/app/views/thredded/posts_common/_actions.html.erb +3 -0
  34. data/app/views/thredded/posts_common/_form.html.erb +5 -3
  35. data/app/views/thredded/posts_common/_header.html.erb +3 -1
  36. data/app/views/thredded/posts_common/actions/_quote.html.erb +4 -0
  37. data/app/views/thredded/preferences/_form.html.erb +3 -5
  38. data/app/views/thredded/preferences/_messageboards_nav.html.erb +8 -0
  39. data/app/views/thredded/preferences/_messageboards_nav_item.html.erb +2 -0
  40. data/app/views/thredded/preferences/edit.html.erb +13 -3
  41. data/app/views/thredded/private_posts/_form.html.erb +0 -2
  42. data/app/views/thredded/private_posts/edit.html.erb +2 -4
  43. data/app/views/thredded/private_posts/new.html.erb +11 -0
  44. data/app/views/thredded/private_topics/_form.html.erb +2 -2
  45. data/app/views/thredded/private_topics/index.html.erb +1 -2
  46. data/app/views/thredded/private_topics/new.html.erb +0 -1
  47. data/app/views/thredded/private_topics/show.html.erb +5 -3
  48. data/app/views/thredded/shared/_nav.html.erb +1 -7
  49. data/app/views/thredded/shared/nav/_standalone.html.erb +3 -3
  50. data/app/views/thredded/shared/nav/_standalone_profile.html.erb +3 -0
  51. data/app/views/thredded/theme_previews/show.html.erb +3 -17
  52. data/app/views/thredded/topics/_form.html.erb +3 -2
  53. data/app/views/thredded/topics/index.html.erb +0 -2
  54. data/app/views/thredded/topics/new.html.erb +0 -2
  55. data/app/views/thredded/topics/show.html.erb +1 -3
  56. data/config/locales/en.yml +4 -3
  57. data/config/locales/es.yml +4 -3
  58. data/config/locales/pl.yml +4 -3
  59. data/config/locales/pt-BR.yml +4 -3
  60. data/config/locales/ru.yml +12 -7
  61. data/config/routes.rb +2 -0
  62. data/db/migrate/20160329231848_create_thredded.rb +1 -1
  63. data/db/upgrade_migrations/20170420163138_upgrade_thredded_v0_11_to_v0_12.rb +25 -0
  64. data/lib/thredded.rb +0 -1
  65. data/lib/thredded/content_formatter.rb +11 -0
  66. data/lib/thredded/version.rb +1 -1
  67. data/vendor/assets/javascripts/autosize.js +290 -0
  68. metadata +15 -17
  69. data/app/views/thredded/preferences/_header.html.erb +0 -1
@@ -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,2 @@
1
+ <%= link_to messageboard.name, edit_messageboard_preferences_path(messageboard),
2
+ class: 'thredded--preferences--messageboards-nav--item thredded--messageboard' %>
@@ -3,8 +3,18 @@
3
3
  <% content_for :thredded_breadcrumbs, render('thredded/shared/breadcrumbs') %>
4
4
 
5
5
  <%= thredded_page do %>
6
- <section class="thredded--main-section preferences">
7
- <%= render 'thredded/preferences/header' %>
8
- <%= render 'thredded/preferences/form', preferences: @preferences %>
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 %>
9
19
  </section>
10
20
  <% end %>
@@ -1,8 +1,6 @@
1
1
  <%# TODO: For private topics, only autocomplete users in this private topic %>
2
2
  <%= render 'thredded/posts_common/form',
3
- topic: topic,
4
3
  post: post,
5
- preview_url: preview_url,
6
4
  button_text: t('thredded.private_posts.form.create_btn'),
7
5
  button_submitting_text: t('thredded.private_posts.form.create_btn_submitting'),
8
6
  content_label: t('thredded.private_posts.form.content_label') %>
@@ -2,16 +2,14 @@
2
2
  <% content_for :thredded_page_id, 'thredded--edit-post' %>
3
3
  <% content_for :thredded_breadcrumbs do %>
4
4
  <ul class="thredded--navigation-breadcrumbs">
5
- <li><%= link_to t('thredded.nav.edit_post'), edit_post_path(@post) %></li>
5
+ <li><%= link_to t('thredded.nav.edit_post'), edit_post_path(@post_form.post) %></li>
6
6
  </ul>
7
7
  <% end %>
8
8
 
9
9
  <%= thredded_page do %>
10
10
  <section class="thredded--main-section">
11
11
  <%= render 'thredded/posts/form',
12
- topic: topic,
13
- post: @post,
14
- preview_url: private_topic_private_post_preview_path(@post.postable, @post),
12
+ post: @post_form,
15
13
  button_text: t('thredded.posts.form.update_btn'),
16
14
  button_submitting_text: t('thredded.posts.form.update_btn_submitting')%>
17
15
  </section>
@@ -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 %>
@@ -1,5 +1,5 @@
1
1
  <%= form_for private_topic,
2
- url: private_topics_path(@private_topic),
2
+ url: private_topic.submit_path,
3
3
  html: {
4
4
  class: "thredded--form thredded--new-private-topic-form #{local_assigns[:css_class]}",
5
5
  'data-thredded-topic-form' => true,
@@ -25,7 +25,7 @@
25
25
  <%= render 'thredded/posts_common/form/content',
26
26
  form: form,
27
27
  content_label: t('thredded.private_topics.form.content_label'),
28
- preview_url: preview_url %>
28
+ preview_url: private_topic.preview_path %>
29
29
 
30
30
  <li>
31
31
  <button type="submit" class="thredded--form--submit"
@@ -12,9 +12,8 @@
12
12
  <% else -%>
13
13
  <%= render 'thredded/private_topics/form',
14
14
  private_topic: @new_private_topic,
15
- preview_url: preview_new_private_topic_path,
16
15
  css_class: 'thredded--is-compact',
17
- placeholder: t('thredded.private_topics.form.title_placeholder_start') %>
16
+ placeholder: t('thredded.private_topics.form.title_placeholder_start') if @new_private_topic %>
18
17
 
19
18
  <%= render @private_topics %>
20
19
 
@@ -6,7 +6,6 @@
6
6
  <section class="thredded--main-section">
7
7
  <%= render 'thredded/private_topics/form',
8
8
  private_topic: @private_topic,
9
- preview_url: preview_new_private_topic_path,
10
9
  placeholder: t('thredded.private_topics.form.title_placeholder_new') if @private_topic %>
11
10
  </section>
12
11
  <% end %>
@@ -17,9 +17,11 @@
17
17
  <%= view_hooks.posts_common.pagination_bottom.render(self, posts: @posts) do %>
18
18
  <footer class="thredded--pagination-bottom"><%= paginate @posts %></footer>
19
19
  <% end %>
20
- <%= render 'thredded/private_posts/form',
20
+
21
+ <% if policy(@new_post.post).create? %>
22
+ <%= render 'thredded/private_posts/form',
21
23
  topic: private_topic,
22
- post: @post,
23
- preview_url: private_topic.new_post_preview_path %>
24
+ post: @new_post %>
25
+ <% end %>
24
26
  <% end %>
25
27
  <% end %>
@@ -1,16 +1,10 @@
1
1
  <nav class="thredded--navigation">
2
2
  <ul class="thredded--user-navigation<%= ' thredded--user-navigation-standalone' if Thredded.standalone_layout? %>">
3
- <% if thredded_signed_in? && Thredded.standalone_layout? %>
4
- <li class="thredded--user-navigation--profile thredded--user-navigation--item">
5
- <%= link_to thredded_current_user.thredded_display_name, user_path(thredded_current_user) %>
6
- </li>
7
- <% end %>
8
-
9
3
  <%= render 'thredded/shared/nav/moderation' %>
10
4
  <%= render 'thredded/shared/nav/notification_preferences', messageboard: messageboard_or_nil %>
11
5
  <%= render 'thredded/shared/nav/private_topics' %>
12
-
13
6
  <% if Thredded.standalone_layout? %>
7
+ <%= render 'thredded/shared/nav/standalone_profile' if thredded_signed_in? %>
14
8
  <%= render 'thredded/shared/nav/standalone' %>
15
9
  <% end %>
16
10
  </ul>
@@ -1,12 +1,12 @@
1
- <li class="thredded--user-navigation--standalone thredded--user-navigation--item">
1
+ <li class="thredded--user-navigation--standalone--session thredded--user-navigation--item">
2
2
  <% resource_name = Thredded.user_class_name.underscore %>
3
3
  <% if thredded_signed_in? %>
4
4
  <%= link_to main_app.send(:"destroy_#{resource_name}_session_path"), method: :delete do %>
5
- <span>Sign Out</span>
5
+ Sign Out
6
6
  <% end %>
7
7
  <% else %>
8
8
  <%= link_to main_app.send(:"new_#{resource_name}_session_path") do %>
9
- <span>Sign In / Register</span>
9
+ Sign In / Register
10
10
  <% end %>
11
11
  <% end %>
12
12
  </li>
@@ -0,0 +1,3 @@
1
+ <li class="thredded--user-navigation--standalone--profile thredded--user-navigation--item">
2
+ <%= link_to thredded_current_user.thredded_display_name, user_path(thredded_current_user) %>
3
+ </li>
@@ -19,9 +19,7 @@
19
19
  <%= render 'section_title', label: 'topics#index', href: messageboard_topics_path(@messageboard) %>
20
20
  <%= content_tag :section, class: 'thredded--thredded--main-section topics' do %>
21
21
  <%= render 'thredded/topics/form',
22
- messageboard: @messageboard,
23
22
  topic: @new_topic,
24
- preview_url: preview_new_messageboard_topic_path(@messageboard),
25
23
  css_class: 'thredded--is-compact',
26
24
  placeholder: 'Start a New Topic' %>
27
25
  <%= render @topics %>
@@ -37,19 +35,14 @@
37
35
  <%= render 'thredded/topics/header', topic: @topic %>
38
36
  <%= render @posts %>
39
37
  <%= render 'thredded/posts/form',
40
- messageboard: @messageboard,
41
- topic: @topic,
42
38
  post: @new_post,
43
- preview_url: @topic.new_post_preview_path,
44
39
  button_text: t('thredded.posts.form.create_btn')
45
40
  %>
46
41
  <% end %>
47
42
 
48
43
  <%= render 'section_title', label: 'topics#new', href: new_messageboard_topic_path(@messageboard) %>
49
44
  <%= render 'thredded/topics/form',
50
- messageboard: @messageboard,
51
45
  topic: @new_topic,
52
- preview_url: preview_new_messageboard_topic_path(@messageboard),
53
46
  placeholder: 'Start a New Topic' %>
54
47
 
55
48
  <%= render 'section_title', label: 'posts#edit', href: edit_messageboard_topic_post_path(@messageboard, @post.postable, @post) %>
@@ -57,10 +50,7 @@
57
50
  <h3 class="thredded--post-form--title">Edit Post</h3>
58
51
 
59
52
  <%= render 'thredded/posts/form',
60
- messageboard: @messageboard,
61
- topic: @topic,
62
- post: @post,
63
- preview_url: @topic.new_post_preview_path,
53
+ post: @post_form,
64
54
  button_text: t('thredded.posts.form.update_btn')
65
55
  %>
66
56
  <% end %>
@@ -76,7 +66,6 @@
76
66
  <%= render 'thredded/private_topics/form',
77
67
  private_topic: @new_private_topic,
78
68
  css_class: 'thredded--is-compact',
79
- preview_url: preview_new_private_topic_path,
80
69
  placeholder: t('thredded.private_topics.form.title_placeholder_start') %>
81
70
  <%= render @private_topics %>
82
71
  <% end %>
@@ -85,7 +74,6 @@
85
74
  <section class="thredded--thredded--main-section">
86
75
  <%= render 'thredded/private_topics/form',
87
76
  private_topic: @new_private_topic,
88
- preview_url: preview_new_private_topic_path,
89
77
  placeholder: t('thredded.private_topics.form.title_placeholder_new') %>
90
78
  </section>
91
79
 
@@ -94,16 +82,14 @@
94
82
  <%= render 'thredded/private_topics/header', topic: @private_topic %>
95
83
  <%= render @private_posts %>
96
84
  <%= render 'thredded/private_posts/form',
97
- topic: @private_topic,
98
- post: @private_post,
99
- preview_url: @private_topic.new_post_preview_path,
85
+ post: @private_post_form,
100
86
  button_text: t('thredded.private_posts.form.create_btn')
101
87
  %>
102
88
  </section>
103
89
 
104
90
  <%= render 'section_title', label: 'preferences#edit', href: edit_messageboard_preferences_path(@messageboard) %>
105
91
  <%= content_tag :section, class: 'thredded--thredded--main-section preferences' do %>
106
- <%= render 'thredded/preferences/header' %>
92
+ <h2 class="thredded--preferences-header--title"><%= t 'thredded.preferences.global_preferences_title' %></h2>
107
93
  <%= render 'thredded/preferences/form', preferences: @preferences %>
108
94
  <% end %>
109
95
 
@@ -1,4 +1,5 @@
1
- <%= form_for [messageboard, topic],
1
+ <%= form_for topic,
2
+ url: topic.submit_path,
2
3
  html: {
3
4
  class: "thredded--form thredded--new-topic-form #{local_assigns[:css_class]}",
4
5
  'data-thredded-topic-form' => true,
@@ -23,7 +24,7 @@
23
24
  <%= render 'thredded/posts_common/form/content',
24
25
  form: form,
25
26
  content_label: t('thredded.topics.form.content_label'),
26
- preview_url: preview_url %>
27
+ preview_url: topic.preview_path %>
27
28
  <%= render 'thredded/topics/topic_form_admin_options', form: form %>
28
29
 
29
30
  <li><%= form.submit t('thredded.topics.form.create_btn'), class: 'thredded--form--submit' %></li>
@@ -10,10 +10,8 @@
10
10
 
11
11
  <%= content_tag :section, class: 'thredded--main-section thredded--topics', 'data-thredded-topics' => true do %>
12
12
  <%= render 'thredded/topics/form',
13
- messageboard: messageboard,
14
13
  topic: @new_topic,
15
14
  css_class: 'thredded--is-compact',
16
- preview_url: preview_new_messageboard_topic_path(messageboard),
17
15
  placeholder: t('thredded.topics.form.title_placeholder_start') if @new_topic %>
18
16
  <%= render partial: 'thredded/topics/topic', collection: @topics, locals: {topics: @topics} %>
19
17
  <% end %>
@@ -5,10 +5,8 @@
5
5
  <%= thredded_page do %>
6
6
  <section class="thredded--main-section">
7
7
  <%= render 'thredded/topics/form',
8
- messageboard: messageboard,
9
8
  topic: @new_topic,
10
9
  css_class: 'thredded--is-expanded',
11
- preview_url: preview_new_messageboard_topic_path(messageboard),
12
10
  placeholder: t('thredded.topics.form.title_placeholder_start') %>
13
11
  </section>
14
12
  <% end %>
@@ -17,13 +17,11 @@
17
17
  <footer class="thredded--pagination-bottom"><%= paginate @posts %></footer>
18
18
  <% end %>
19
19
 
20
- <% if policy(@new_post).create? %>
20
+ <% if policy(@new_post.post).create? %>
21
21
  <div class="thredded--post-form--wrapper">
22
22
  <h3 class="thredded--post-form--title"><%= t('thredded.posts.form.title_label') %></h3>
23
23
  <%= render 'thredded/posts/form',
24
- topic: topic,
25
24
  post: @new_post,
26
- preview_url: topic.new_post_preview_path,
27
25
  button_text: t('thredded.posts.form.create_btn'),
28
26
  button_submitting_text: t('thredded.posts.form.create_btn_submitting') %>
29
27
  </div>
@@ -82,6 +82,7 @@ en:
82
82
  update_btn: Update Post
83
83
  update_btn_submitting: :thredded.form.update_btn_submitting
84
84
  pending_moderation_notice: Your post will be published when it has been reviewed by a moderator.
85
+ quote_btn: Quote
85
86
  preferences:
86
87
  edit:
87
88
  page_title: :thredded.nav.settings
@@ -92,7 +93,6 @@ en:
92
93
  follow_topics_on_mention:
93
94
  hint: 'When someone mentions you by your username (eg: @sam) you will follow the topic.'
94
95
  label: Follow topics you are mentioned in
95
- global_preferences_label: Global Settings
96
96
  messageboard_auto_follow_topics:
97
97
  hint: Automatically follow all new topics in this messageboard. This overrides the respective setting
98
98
  above.
@@ -103,14 +103,15 @@ en:
103
103
  label: :thredded.preferences.form.follow_topics_on_mention.label
104
104
  messageboard_notifications_for_followed_topics:
105
105
  label: :thredded.preferences.form.notifications_for_followed_topics.label
106
- messageboard_preferences_label_html: Notification Settings for <em>%{messageboard}</em>
107
106
  notifications_for_followed_topics:
108
107
  label: Notifications for followed topics
109
108
  notifications_for_private_topics:
110
109
  label: Notifications for private messages
111
110
  submit_btn: Update Settings
112
- title: Settings
113
111
  update_btn_submitting: :thredded.form.update_btn_submitting
112
+ global_preferences_title: Global Settings
113
+ messageboard_preferences_nav_title: Messageboard Settings
114
+ messageboard_preferences_title_html: Settings for <em>%{messageboard}</em>
114
115
  updated_notice: Your settings have been updated.
115
116
  private_posts:
116
117
  form:
@@ -82,6 +82,7 @@ es:
82
82
  update_btn: Actualizar Mensaje
83
83
  update_btn_submitting: :thredded.form.update_btn_submitting
84
84
  pending_moderation_notice: Tu post será publicado cuando haya sido revisado por un moderador.
85
+ quote_btn: Citar
85
86
  preferences:
86
87
  edit:
87
88
  page_title: :thredded.nav.settings
@@ -93,7 +94,6 @@ es:
93
94
  follow_topics_on_mention:
94
95
  hint: 'Cuando alguien te menciona usando tu nombre de usuario (por ejemplo: @sam), seguirás el tema.'
95
96
  label: Sigue temas en los que seas mencionado
96
- global_preferences_label: Ajustes Generales
97
97
  messageboard_auto_follow_topics:
98
98
  hint: >-
99
99
  Sigue automáticamente todos los nuevos temas en este tablero de mensajes. Esto anula la configuración
@@ -105,14 +105,15 @@ es:
105
105
  label: :thredded.preferences.form.follow_topics_on_mention.label
106
106
  messageboard_notifications_for_followed_topics:
107
107
  label: :thredded.preferences.form.notifications_for_followed_topics.label
108
- messageboard_preferences_label_html: Ajustes de Notificaciones para <em>%{messageboard}</em>
109
108
  notifications_for_followed_topics:
110
109
  label: Notificaciones de temas seguidos
111
110
  notifications_for_private_topics:
112
111
  label: Notificaciones de mensajes privados
113
112
  submit_btn: Actualizar Ajustes
114
- title: Ajustes
115
113
  update_btn_submitting: :thredded.form.update_btn_submitting
114
+ global_preferences_title: Ajustes Generales
115
+ messageboard_preferences_nav_title: Ajustes por foro
116
+ messageboard_preferences_title_html: Ajustes de Notificaciones para <em>%{messageboard}</em>
116
117
  updated_notice: Tus ajustes han sido actualizados.
117
118
  private_posts:
118
119
  form:
@@ -82,6 +82,7 @@ pl:
82
82
  update_btn: Zaktualizuj post
83
83
  update_btn_submitting: :thredded.form.update_btn_submitting
84
84
  pending_moderation_notice: Twój post zostanie zamieszczony po zweryfikowaniu go przez moderatora.
85
+ quote_btn: Zacytować
85
86
  preferences:
86
87
  edit:
87
88
  page_title: :thredded.nav.settings
@@ -93,7 +94,6 @@ pl:
93
94
  follow_topics_on_mention:
94
95
  hint: 'Gdy ktoś w temacie wspomni o Tobie (np.: @sam) zaczniesz obserwować ten temat.'
95
96
  label: Obserwuj tematy, w których zostałeś wspomiany
96
- global_preferences_label: Ustawienia powiadomień
97
97
  messageboard_auto_follow_topics:
98
98
  hint: Automatycznie śledzić wszystkie nowe tematy na tym messageboard. To zastępuje odpowiednie ustawienie
99
99
  powyżej.
@@ -103,14 +103,15 @@ pl:
103
103
  label: :thredded.preferences.form.follow_topics_on_mention.label
104
104
  messageboard_notifications_for_followed_topics:
105
105
  label: :thredded.preferences.form.notifications_for_followed_topics.label
106
- messageboard_preferences_label_html: Notification Settings for <em>%{messageboard}</em>
107
106
  notifications_for_followed_topics:
108
107
  label: Powiadomienia z obserwowanych tematów
109
108
  notifications_for_private_topics:
110
109
  label: Powiadomienia z prywatnych wiadomości
111
110
  submit_btn: Zaktualizuj ustawienia
112
- title: Ustawienia
113
111
  update_btn_submitting: :thredded.form.update_btn_submitting
112
+ global_preferences_title: Ustawienia powiadomień
113
+ messageboard_preferences_nav_title: Ustawienia na tablicę
114
+ messageboard_preferences_title_html: Notification Settings for <em>%{messageboard}</em>
114
115
  updated_notice: Twoje ustawienia zostały zaktualizowane.
115
116
  private_posts:
116
117
  form:
@@ -82,6 +82,7 @@ pt-BR:
82
82
  update_btn: Atualizar Post
83
83
  update_btn_submitting: :thredded.form.update_btn_submitting
84
84
  pending_moderation_notice: O envio da mensagem será publicada quando foi revisado por um moderador.
85
+ quote_btn: Citar
85
86
  preferences:
86
87
  edit:
87
88
  page_title: :thredded.nav.settings
@@ -94,7 +95,6 @@ pt-BR:
94
95
  Quando alguém mencionar você através do seu usuário (ex.: @sam) você irá receber um e-mail com o conteúdo
95
96
  deste post.
96
97
  label: Siga os tópicos que são mencionados na
97
- global_preferences_label: Configurações Globais
98
98
  messageboard_auto_follow_topics:
99
99
  hint: siga automaticamente todos os novos tópicos neste messageboard. Isso substitui a respectiva definição
100
100
  acima.
@@ -106,14 +106,15 @@ pt-BR:
106
106
  label: :thredded.preferences.form.follow_topics_on_mention.label
107
107
  messageboard_notifications_for_followed_topics:
108
108
  label: :thredded.preferences.form.notifications_for_followed_topics.label
109
- messageboard_preferences_label_html: Configurações de Notificação para <em>%{messageboard}</em>
110
109
  notifications_for_followed_topics:
111
110
  label: Notificações para tópicos seguido
112
111
  notifications_for_private_topics:
113
112
  label: Notificações de mensagens privadas
114
113
  submit_btn: Atualizar Configurações
115
- title: Configurações
116
114
  update_btn_submitting: :thredded.form.update_btn_submitting
115
+ global_preferences_title: Configurações Globais
116
+ messageboard_preferences_nav_title: Configurações por Fórum de Mensagem
117
+ messageboard_preferences_title_html: Configurações de Notificação para <em>%{messageboard}</em>
117
118
  updated_notice: Suas configurações foram atualizadas.
118
119
  private_posts:
119
120
  form:
@@ -66,7 +66,7 @@ ru:
66
66
  moderation_pending: В ожидании
67
67
  moderation_users: Пользователи
68
68
  private_topics: Личное
69
- settings: Уведомления
69
+ settings: Настройки
70
70
  null_user_name: Пользователь удален
71
71
  posts:
72
72
  delete: Удалить пост
@@ -81,6 +81,7 @@ ru:
81
81
  update_btn: Обновить пост
82
82
  update_btn_submitting: :thredded.form.update_btn_submitting
83
83
  pending_moderation_notice: Ваш пост будет опубликован, когда будет одобрен модератором.
84
+ quote_btn: Цитировать
84
85
  preferences:
85
86
  edit:
86
87
  page_title: :thredded.nav.settings
@@ -92,7 +93,6 @@ ru:
92
93
  follow_topics_on_mention:
93
94
  hint: 'Когда кто-то упоминает вас на форуме (например: @sam), Вы будете наблюдать за этой темой.'
94
95
  label: Наблюдать за темой, в которой Вы упомянуты
95
- global_preferences_label: Настройки форума
96
96
  messageboard_auto_follow_topics:
97
97
  hint: Автоматически следовать все новые темы в этом ОБЪЯВЛЕНИЯ. Это отменяет соответствующую настройку
98
98
  выше.
@@ -102,14 +102,15 @@ ru:
102
102
  label: :thredded.preferences.form.follow_topics_on_mention.label
103
103
  messageboard_notifications_for_followed_topics:
104
104
  label: :thredded.preferences.form.notifications_for_followed_topics.label
105
- messageboard_preferences_label_html: Настройки уведомлений для <em>%{messageboard}</em>
106
105
  notifications_for_followed_topics:
107
106
  label: Уведомления для отслеживаемых тем
108
107
  notifications_for_private_topics:
109
108
  label: Уведомления для личных сообщений
110
109
  submit_btn: Сохранить настройки
111
- title: Настройки
112
110
  update_btn_submitting: :thredded.form.update_btn_submitting
111
+ global_preferences_title: Общие настройки
112
+ messageboard_preferences_nav_title: Настройки форума
113
+ messageboard_preferences_title_html: Настройки уведомлений для <em>%{messageboard}</em>
113
114
  updated_notice: Ваши настройки были обновлены.
114
115
  private_posts:
115
116
  form:
@@ -188,12 +189,16 @@ ru:
188
189
  last_active_html: Последняя активность %{time_ago}
189
190
  posted_in_topic_html: Сделан пост в %{topic_link}
190
191
  posts_count:
191
- one: Сделан пост
192
- other: Сделано постов %{count} раз
192
+ few: Сделано %{count} поста
193
+ many: Сделано %{count} постов
194
+ one: Сделан %{count} пост
195
+ other: Сделано %{count} постов
193
196
  recent_activity: :thredded.recent_activity
194
197
  started_topic_html: Начато %{topic_link}
195
198
  started_topics_count:
196
- one: Начата тема
199
+ few: Начато %{count} темы
200
+ many: Начато %{count} тем
201
+ one: Начата %{count} тема
197
202
  other: Начато %{count} тем
198
203
  user_posted_in_topic_html: "%{user_link} сделал запись в %{topic_link}"
199
204
  user_since_html: Пользователь был %{time_ago}