commontator 4.11.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/app/controllers/commontator/application_controller.rb +4 -4
  4. data/app/controllers/commontator/comments_controller.rb +15 -15
  5. data/app/controllers/commontator/subscriptions_controller.rb +1 -1
  6. data/app/controllers/commontator/threads_controller.rb +5 -5
  7. data/app/mailers/commontator/subscriptions_mailer.rb +25 -37
  8. data/app/models/commontator/comment.rb +11 -11
  9. data/app/models/commontator/subscription.rb +2 -2
  10. data/app/models/commontator/thread.rb +9 -9
  11. data/app/views/commontator/comments/_actions.html.erb +8 -8
  12. data/app/views/commontator/comments/_body.html.erb +1 -1
  13. data/app/views/commontator/comments/_form.html.erb +3 -3
  14. data/app/views/commontator/comments/_list.html.erb +3 -3
  15. data/app/views/commontator/comments/_show.html.erb +8 -8
  16. data/app/views/commontator/comments/_votes.html.erb +16 -16
  17. data/app/views/commontator/comments/cancel.js.erb +5 -5
  18. data/app/views/commontator/comments/create.js.erb +9 -9
  19. data/app/views/commontator/comments/delete.js.erb +7 -7
  20. data/app/views/commontator/comments/edit.js.erb +2 -2
  21. data/app/views/commontator/comments/new.js.erb +4 -4
  22. data/app/views/commontator/comments/update.js.erb +1 -1
  23. data/app/views/commontator/comments/vote.js.erb +3 -3
  24. data/app/views/commontator/shared/_thread.html.erb +6 -6
  25. data/app/views/commontator/subscriptions/_link.html.erb +5 -5
  26. data/app/views/commontator/subscriptions/subscribe.js.erb +3 -3
  27. data/app/views/commontator/subscriptions_mailer/comment_created.html.erb +6 -6
  28. data/app/views/commontator/threads/_reply.html.erb +6 -6
  29. data/app/views/commontator/threads/_show.html.erb +33 -33
  30. data/app/views/commontator/threads/_show.js.erb +7 -7
  31. data/app/views/commontator/threads/show.js.erb +6 -6
  32. data/config/initializers/commontator.rb +43 -38
  33. data/config/locales/de.yml +100 -0
  34. data/config/locales/en.yml +26 -27
  35. data/config/locales/pt-BR.yml +78 -0
  36. data/config/locales/ru.yml +25 -26
  37. data/config/locales/zh.yml +26 -27
  38. data/config/routes.rb +4 -4
  39. data/db/migrate/0_install_commontator.rb +17 -17
  40. data/lib/commontator.rb +2 -2
  41. data/lib/commontator/acts_as_commontable.rb +14 -12
  42. data/lib/commontator/acts_as_commontator.rb +5 -5
  43. data/lib/commontator/shared_helper.rb +6 -6
  44. data/lib/commontator/version.rb +1 -1
  45. data/lib/tasks/commontator_tasks.rake +2 -2
  46. data/spec/controllers/commontator/comments_controller_spec.rb +76 -75
  47. data/spec/controllers/commontator/subscriptions_controller_spec.rb +26 -27
  48. data/spec/controllers/commontator/threads_controller_spec.rb +42 -41
  49. data/spec/dummy/app/controllers/dummy_models_controller.rb +1 -1
  50. data/spec/dummy/app/views/layouts/application.html.erb +1 -2
  51. data/spec/dummy/config/application.rb +1 -1
  52. data/spec/dummy/config/environments/development.rb +1 -2
  53. data/spec/dummy/config/environments/production.rb +1 -2
  54. data/spec/dummy/config/environments/test.rb +1 -2
  55. data/spec/dummy/config/initializers/commontator.rb +7 -7
  56. data/spec/dummy/config/routes.rb +2 -3
  57. data/spec/dummy/db/development.sqlite3 +0 -0
  58. data/spec/dummy/db/migrate/1_create_dummy_models.rb +2 -3
  59. data/spec/dummy/db/migrate/2_create_dummy_users.rb +2 -3
  60. data/spec/dummy/db/migrate/3_acts_as_votable_migration.rb +4 -10
  61. data/spec/dummy/db/schema.rb +45 -48
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/log/development.log +413 -0
  64. data/spec/dummy/log/test.log +33690 -0
  65. data/spec/lib/commontator/commontable_config_spec.rb +4 -5
  66. data/spec/lib/commontator/commontator_config_spec.rb +4 -5
  67. data/spec/lib/commontator_spec.rb +2 -3
  68. data/spec/mailers/commontator/subscriptions_mailer_spec.rb +2 -3
  69. data/spec/models/commontator/comment_spec.rb +10 -10
  70. data/spec/rails_helper.rb +3 -2
  71. metadata +64 -44
@@ -4,7 +4,7 @@
4
4
  %>
5
5
 
6
6
  <% comments.includes(:creator, :editor).each do |comment| %>
7
- <%= render :partial => 'commontator/comments/show',
8
- :locals => { :comment => comment,
9
- :user => user } %>
7
+ <%= render partial: 'commontator/comments/show',
8
+ locals: { comment: comment,
9
+ user: user } %>
10
10
  <% end %>
@@ -15,9 +15,9 @@
15
15
  <%= link.blank? ? name : link_to(name, link) %>
16
16
  </span>
17
17
  <span id="comment_<%= comment.id.to_s %>_actions_span" class="comment_actions">
18
- <%= render :partial => 'commontator/comments/actions',
19
- :locals => { :comment => comment,
20
- :user => user } %>
18
+ <%= render partial: 'commontator/comments/actions',
19
+ locals: { comment: comment,
20
+ user: user } %>
21
21
  </span>
22
22
  </div>
23
23
  <div id="comment_<%= comment.id.to_s %>_middle_div" class="comment_div">
@@ -25,13 +25,13 @@
25
25
  <%= avatar %>
26
26
  </span>
27
27
  <span id="comment_<%= comment.id.to_s %>_votes_span" class="comment_votes">
28
- <%= render :partial => 'commontator/comments/votes',
29
- :locals => { :comment => comment,
30
- :user => user } %>
28
+ <%= render partial: 'commontator/comments/votes',
29
+ locals: { comment: comment,
30
+ user: user } %>
31
31
  </span>
32
32
  <div id="comment_<%= comment.id.to_s %>_body_div" class="comment_body">
33
- <%= render :partial => 'commontator/comments/body',
34
- :locals => { :comment => comment } %>
33
+ <%= render partial: 'commontator/comments/body',
34
+ locals: { comment: comment } %>
35
35
  </div>
36
36
  </div>
37
37
  <div id="comment_<%= comment.id.to_s %>_bottom_div" class="comment_div">
@@ -14,19 +14,19 @@
14
14
  class="comment_<%= vtype %>">
15
15
  <% if can_vote && (vote.blank? || !vote.vote_flag) %>
16
16
  <%= form_tag commontator.upvote_comment_path(comment),
17
- :method => :put,
18
- :remote => true do %>
17
+ method: :put,
18
+ remote: true do %>
19
19
  <%= image_submit_tag "commontator/upvote.png",
20
- :onmouseover => "this.src='#{image_path("commontator/upvote_hover.png")}'",
21
- :onmouseout => "this.src='#{image_path("commontator/upvote.png")}'" %>
20
+ onmouseover: "this.src='#{image_path("commontator/upvote_hover.png")}'",
21
+ onmouseout: "this.src='#{image_path("commontator/upvote.png")}'" %>
22
22
  <% end %>
23
23
  <% elsif can_vote %>
24
24
  <%= form_tag commontator.unvote_comment_path(comment),
25
- :method => :put,
26
- :remote => true do %>
25
+ method: :put,
26
+ remote: true do %>
27
27
  <%= image_submit_tag "commontator/upvote_active.png",
28
- :onmouseover => "this.src='#{image_path("commontator/upvote.png")}'",
29
- :onmouseout => "this.src='#{image_path("commontator/upvote_active.png")}'"
28
+ onmouseover: "this.src='#{image_path("commontator/upvote.png")}'",
29
+ onmouseout: "this.src='#{image_path("commontator/upvote_active.png")}'"
30
30
  %>
31
31
  <% end %>
32
32
  <% else %>
@@ -45,19 +45,19 @@
45
45
  <span id="comment_<%= comment.id %>_downvote_span" class="comment_downvote">
46
46
  <% if can_vote && (vote.blank? || vote.vote_flag) %>
47
47
  <%= form_tag commontator.downvote_comment_path(comment),
48
- :method => :put,
49
- :remote => true do %>
48
+ method: :put,
49
+ remote: true do %>
50
50
  <%= image_submit_tag "commontator/downvote.png",
51
- :onmouseover => "this.src='#{image_path("commontator/downvote_hover.png")}'",
52
- :onmouseout => "this.src='#{image_path("commontator/downvote.png")}'" %>
51
+ onmouseover: "this.src='#{image_path("commontator/downvote_hover.png")}'",
52
+ onmouseout: "this.src='#{image_path("commontator/downvote.png")}'" %>
53
53
  <% end %>
54
54
  <% elsif can_vote %>
55
55
  <%= form_tag commontator.unvote_comment_path(comment),
56
- :method => :put,
57
- :remote => true do %>
56
+ method: :put,
57
+ remote: true do %>
58
58
  <%= image_submit_tag "commontator/downvote_active.png",
59
- :onmouseover => "this.src='#{image_path("commontator/downvote.png")}'",
60
- :onmouseout => "this.src='#{image_path("commontator/downvote_active.png")}'"
59
+ onmouseover: "this.src='#{image_path("commontator/downvote.png")}'",
60
+ onmouseout: "this.src='#{image_path("commontator/downvote_active.png")}'"
61
61
  %>
62
62
  <% end %>
63
63
  <% else %>
@@ -1,15 +1,15 @@
1
1
  <% unless @comment.try(:id).blank? %>
2
2
  <% @comment.reload %>
3
3
  $("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript(
4
- render :partial => 'body', :locals => { :comment => @comment }) %>");
4
+ render partial: 'body', locals: { comment: @comment }) %>");
5
5
  <% end %>
6
6
 
7
7
  <% unless @new_comment.nil? %>
8
8
  $("#thread_<%= @thread.id %>_new_comment_form_div").html("<%= escape_javascript(
9
- render :partial => 'form',
10
- :locals => { :comment => @new_comment,
11
- :thread => @thread,
12
- :per_page => @per_page }) %>");
9
+ render partial: 'form',
10
+ locals: { comment: @new_comment,
11
+ thread: @thread,
12
+ per_page: @per_page }) %>");
13
13
  <% else %>
14
14
  $("#thread_<%= @thread.id %>_new_comment_form_div").hide();
15
15
 
@@ -1,15 +1,15 @@
1
- <%= render :partial => 'commontator/threads/show',
2
- :locals => { :thread => @thread,
3
- :user => @user,
4
- :page => @thread.new_comment_page(@per_page),
5
- :per_page => @per_page } %>
1
+ <%= render partial: 'commontator/threads/show',
2
+ locals: { thread: @thread,
3
+ user: @user,
4
+ page: @thread.new_comment_page(@per_page),
5
+ per_page: @per_page } %>
6
6
 
7
7
  <% unless @new_comment.nil? %>
8
8
  $("#thread_<%= @thread.id %>_new_comment_form_div").html("<%= escape_javascript(
9
- render :partial => 'form',
10
- :locals => { :comment => @new_comment,
11
- :thread => @thread,
12
- :per_page => @per_page }) %>");
9
+ render partial: 'form',
10
+ locals: { comment: @new_comment,
11
+ thread: @thread,
12
+ per_page: @per_page }) %>");
13
13
  <% else %>
14
14
  $("#thread_<%= @thread.id %>_new_comment_form_div").hide();
15
15
 
@@ -1,17 +1,17 @@
1
1
  $("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript(
2
- render :partial => 'body', :locals => { :comment => @comment }) %>");
2
+ render partial: 'body', locals: { comment: @comment }) %>");
3
3
 
4
4
  $("#comment_<%= @comment.id.to_s %>_updated_timestamp_span").html("<%= escape_javascript(
5
5
  @comment.updated_timestamp) %>");
6
6
 
7
7
  $("#comment_<%= @comment.id.to_s %>_actions_span").html("<%= escape_javascript(
8
- render :partial => 'actions',
9
- :locals => { :comment => @comment,
10
- :user => @user }) %>");
8
+ render partial: 'actions',
9
+ locals: { comment: @comment,
10
+ user: @user }) %>");
11
11
 
12
12
  $("#comment_<%= @comment.id %>_votes_span").html("<%= escape_javascript(
13
- render :partial => 'votes',
14
- :locals => { :comment => @comment,
15
- :user => @user }) %>");
13
+ render partial: 'votes',
14
+ locals: { comment: @comment,
15
+ user: @user }) %>");
16
16
 
17
17
  <%= javascript_proc %>
@@ -1,5 +1,5 @@
1
1
  $("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript(
2
- render :partial => 'form',
3
- :locals => { :comment => @comment }) %>");
2
+ render partial: 'form',
3
+ locals: { comment: @comment }) %>");
4
4
 
5
5
  <%= javascript_proc %>
@@ -1,8 +1,8 @@
1
1
  $("#thread_<%= @thread.id %>_new_comment_form_div").html("<%= escape_javascript(
2
- render :partial => 'form',
3
- :locals => { :comment => @comment,
4
- :thread => @thread,
5
- :per_page => @per_page }) %>");
2
+ render partial: 'form',
3
+ locals: { comment: @comment,
4
+ thread: @thread,
5
+ per_page: @per_page }) %>");
6
6
 
7
7
  $("#thread_<%= @thread.id %>_new_comment_form_div").fadeIn()[0].scrollIntoView();
8
8
 
@@ -1,5 +1,5 @@
1
1
  $("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript(
2
- render :partial => 'body', :locals => { :comment => @comment }) %>");
2
+ render partial: 'body', locals: { comment: @comment }) %>");
3
3
 
4
4
  $("#comment_<%= @comment.id.to_s %>_updated_timestamp_span").html("<%= escape_javascript(
5
5
  @comment.updated_timestamp) %>");
@@ -1,6 +1,6 @@
1
1
  $("#comment_<%= @comment.id %>_votes_span").html("<%= escape_javascript(
2
- render :partial => 'votes',
3
- :locals => { :comment => @comment,
4
- :user => @user }) %>");
2
+ render partial: 'votes',
3
+ locals: { comment: @comment,
4
+ user: @user }) %>");
5
5
 
6
6
  <%= javascript_proc %>
@@ -6,16 +6,16 @@
6
6
  <% if thread.can_be_read_by?(user) %>
7
7
  <div id="thread_<%= thread.id %>_div" class="thread" style="display: none;">
8
8
  <% if @commontator_thread_show %>
9
- <%= render :partial => 'commontator/threads/show',
10
- :locals => { :thread => thread,
11
- :user => user,
12
- :page => @commontator_page,
13
- :per_page => @commontator_per_page } %>
9
+ <%= render partial: 'commontator/threads/show',
10
+ locals: { thread: thread,
11
+ user: user,
12
+ page: @commontator_page,
13
+ per_page: @commontator_per_page } %>
14
14
  <% else %>
15
15
  <% subscription = thread.subscription_for(user) %>
16
16
  <%= link_to "#{t 'commontator.thread.actions.show'} (#{(subscription.unread_comments.count.to_s + '/') if subscription}#{thread.filtered_comments.count.to_s})",
17
17
  commontator.thread_path(thread),
18
- :remote => true %>
18
+ remote: true %>
19
19
  <% end %>
20
20
  </div>
21
21
  <% end %>
@@ -7,9 +7,9 @@
7
7
  <% sub_string = is_subscribed ? "unsubscribe" : "subscribe" %>
8
8
  <%= link_to t("commontator.subscription.actions.#{sub_string}"),
9
9
  commontator.polymorphic_path([sub_string, thread]),
10
- :confirm => (is_subscribed ? t('commontator.subscription.actions.confirm_unsubscribe') : \
10
+ confirm: (is_subscribed ? t('commontator.subscription.actions.confirm_unsubscribe') : \
11
11
  nil),
12
- :method => :put,
13
- :id => "thread_#{thread.id.to_s}_#{sub_string}_link",
14
- :class => "thread_#{sub_string}_link",
15
- :remote => true %>
12
+ method: :put,
13
+ id: "thread_#{thread.id.to_s}_#{sub_string}_link",
14
+ class: "thread_#{sub_string}_link",
15
+ remote: true %>
@@ -1,6 +1,6 @@
1
1
  $("#thread_<%= @thread.id.to_s %>_subscription_span").html("<%= escape_javascript(
2
- render :partial => 'link',
3
- :locals => { :thread => @thread,
4
- :user => @user }) %>");
2
+ render partial: 'link',
3
+ locals: { thread: @thread,
4
+ user: @user }) %>");
5
5
 
6
6
  <%= javascript_proc %>
@@ -1,10 +1,10 @@
1
1
  <h4><%= t 'commontator.email.comment_created.body',
2
- :creator_name => @creator_name,
3
- :commontable_name => @commontable_name %></h4>
2
+ creator_name: @creator_name,
3
+ commontable_name: @commontable_name %></h4>
4
4
 
5
- <%= render :partial => 'commontator/comments/body',
6
- :locals => { :comment => @comment } %>
5
+ <%= render partial: 'commontator/comments/body',
6
+ locals: { comment: @comment } %>
7
7
 
8
8
  <p><%= t 'commontator.email.thread_link_html',
9
- :comment_url => @comment_url,
10
- :commontable_name => @commontable_name %></p>
9
+ comment_url: @comment_url,
10
+ commontable_name: @commontable_name %></p>
@@ -14,18 +14,18 @@
14
14
  <div id="thread_<%= thread.id %>_new_comment_form_div" class="thread_new_comment_form<%=
15
15
  hidden_class %>">
16
16
  <% unless @new_comment.nil? %>
17
- <%= render :partial => 'commontator/comments/form',
18
- :locals => { :comment => @new_comment,
19
- :thread => thread,
20
- :per_page => per_page } %>
17
+ <%= render partial: 'commontator/comments/form',
18
+ locals: { comment: @new_comment,
19
+ thread: thread,
20
+ per_page: per_page } %>
21
21
  <% end %>
22
22
  </div>
23
23
 
24
24
  <% if @new_comment.nil? %>
25
25
  <div id="thread_<%= thread.id %>_new_comment_link_div" class="thread_new_comment_link">
26
26
  <%= link_to t('commontator.comment.actions.new'),
27
- commontator.new_thread_comment_path(thread, :per_page => per_page),
28
- :remote => true %>
27
+ commontator.new_thread_comment_path(thread, per_page: per_page),
28
+ remote: true %>
29
29
  </div>
30
30
  <% end %>
31
31
  <% end %>
@@ -30,9 +30,9 @@
30
30
 
31
31
  <% if can_subscribe %>
32
32
  <span id="thread_<%= thread.id.to_s %>_subscription_span" class="thread_subscription">
33
- <%= render :partial => 'commontator/subscriptions/link',
34
- :locals => { :thread => thread,
35
- :user => user } %>
33
+ <%= render partial: 'commontator/subscriptions/link',
34
+ locals: { thread: thread,
35
+ user: user } %>
36
36
  </span>
37
37
  <% end %>
38
38
 
@@ -45,70 +45,70 @@
45
45
 
46
46
  <% if thread.is_filtered? %>
47
47
  <%= link_to t("commontator.thread.actions.#{filter_string}"),
48
- commontator.thread_path(thread, :show_all => (show_all ? nil : true)),
49
- :id => "thread_#{thread.id.to_s}_#{filter_string}_link",
50
- :class => "thread_#{filter_string}_link",
51
- :remote => true %>
48
+ commontator.thread_path(thread, show_all: (show_all ? nil : true)),
49
+ id: "thread_#{thread.id.to_s}_#{filter_string}_link",
50
+ class: "thread_#{filter_string}_link",
51
+ remote: true %>
52
52
 
53
53
  &nbsp;
54
54
  <% end %>
55
55
 
56
56
  <%= link_to t("commontator.thread.actions.#{close_string}"),
57
57
  commontator.polymorphic_path([close_string, thread]),
58
- :confirm => (!is_closed ? t('commontator.thread.actions.confirm_close') : nil),
59
- :method => :put,
60
- :id => "thread_#{thread.id.to_s}_#{close_string}_link",
61
- :class => "thread_#{close_string}_link",
62
- :remote => true %>
58
+ confirm: (!is_closed ? t('commontator.thread.actions.confirm_close') : nil),
59
+ method: :put,
60
+ id: "thread_#{thread.id.to_s}_#{close_string}_link",
61
+ class: "thread_#{close_string}_link",
62
+ remote: true %>
63
63
  <% end %>
64
64
  </span>
65
65
 
66
66
  <span id="thread_<%= thread.id.to_s %>_header_span" class="thread_header">
67
67
  <%= t "commontator.thread.status.#{thread.is_closed? ? 'closed' : 'open'}",
68
- :closer_name => (thread.is_closed? ? Commontator.commontator_name(thread.closer) : '') %>
68
+ closer_name: (thread.is_closed? ? Commontator.commontator_name(thread.closer) : '') %>
69
69
  </span>
70
70
 
71
71
  <% if thread.config.comment_order == :l %>
72
- <%= render :partial => 'commontator/threads/reply',
73
- :locals => { :thread => thread, :user => user, :per_page => per_page } %>
72
+ <%= render partial: 'commontator/threads/reply',
73
+ locals: { thread: thread, user: user, per_page: per_page } %>
74
74
  <% end %>
75
75
 
76
76
  <div id="thread_<%= thread.id.to_s %>_comment_list_div" class="thread_comment_list">
77
77
  <% comments = show_all ? thread.ordered_comments(true) : \
78
78
  thread.paginated_comments(page, per_page) %>
79
- <%= render :partial => 'commontator/comments/list',
80
- :locals => { :comments => comments,
81
- :user => user } %>
79
+ <%= render partial: 'commontator/comments/list',
80
+ locals: { comments: comments,
81
+ user: user } %>
82
82
  </div>
83
83
 
84
84
  <% if thread.will_paginate? && !show_all %>
85
85
  <div id="thread_<%= thread.id.to_s %>_pagination_div" class="thread_pagination">
86
86
  <div id="thread_<%= thread.id.to_s %>_page_entries_info_div" class="thread_page_entries_info">
87
87
  <%= page_entries_info comments,
88
- :params => { :controller => 'commontator/threads',
89
- :action => 'show',
90
- :id => thread.id,
91
- :page => page,
92
- :per_page => per_page } %>.
88
+ params: { controller: 'commontator/threads',
89
+ action: 'show',
90
+ id: thread.id,
91
+ page: page,
92
+ per_page: per_page } %>.
93
93
  </div>
94
94
 
95
95
  <div id="thread_<%= thread.id.to_s %>_will_paginate_div" class="thread_will_paginate">
96
96
  <%= will_paginate comments,
97
- :renderer => Commontator::LinkRenderer,
98
- :routes_proxy => commontator,
99
- :remote => true,
100
- :params => { :controller => 'commontator/threads',
101
- :action => 'show',
102
- :id => thread.id,
103
- :page => page,
104
- :per_page => per_page } %>
97
+ renderer: Commontator::LinkRenderer,
98
+ routes_proxy: commontator,
99
+ remote: true,
100
+ params: { controller: 'commontator/threads',
101
+ action: 'show',
102
+ id: thread.id,
103
+ page: page,
104
+ per_page: per_page } %>
105
105
  </div>
106
106
  </div>
107
107
  <% end %>
108
108
 
109
109
  <% if thread.config.comment_order != :l %>
110
- <%= render :partial => 'commontator/threads/reply',
111
- :locals => { :thread => thread, :user => user, :per_page => per_page } %>
110
+ <%= render partial: 'commontator/threads/reply',
111
+ locals: { thread: thread, user: user, per_page: per_page } %>
112
112
  <% end %>
113
113
  </span>
114
114
 
@@ -9,10 +9,10 @@
9
9
 
10
10
  $("#thread_<%= thread.id %>_div").html(
11
11
  "<%= escape_javascript(
12
- render :partial => 'commontator/threads/show',
13
- :formats => [:html],
14
- :locals => { :thread => thread,
15
- :user => user,
16
- :page => page,
17
- :per_page => per_page,
18
- :show_all => show_all }) %>");
12
+ render partial: 'commontator/threads/show',
13
+ formats: [:html],
14
+ locals: { thread: thread,
15
+ user: user,
16
+ page: page,
17
+ per_page: per_page,
18
+ show_all: show_all }) %>");
@@ -1,8 +1,8 @@
1
- <%= render :partial => 'show',
2
- :locals => { :thread => @thread,
3
- :user => @user,
4
- :page => @commontator_page,
5
- :per_page => @commontator_per_page,
6
- :show_all => @show_all } %>
1
+ <%= render partial: 'show',
2
+ locals: { thread: @thread,
3
+ user: @user,
4
+ page: @commontator_page,
5
+ per_page: @commontator_per_page,
6
+ show_all: @show_all } %>
7
7
 
8
8
  <%= javascript_proc %>