commontator 0.5.12 → 0.5.13

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.
@@ -15,6 +15,8 @@
15
15
  color: #000;
16
16
  border-color: #ddd;
17
17
  background-color: #fff;
18
+
19
+ clear: both;
18
20
  }
19
21
 
20
22
  .comment_actions {
@@ -35,7 +35,7 @@
35
35
  padding: 8px;
36
36
  }
37
37
 
38
- .comment_profile_picture img {
38
+ .comment_gravatar_image img {
39
39
  margin-top: 5px;
40
40
  }
41
41
 
@@ -1,3 +1,7 @@
1
+ .thread {
2
+ display: block !important;
3
+ }
4
+
1
5
  .thread_actions {
2
6
  float: right;
3
7
  }
@@ -0,0 +1,21 @@
1
+ .thread {
2
+ display: block;
3
+ }
4
+
5
+ .thread_actions {
6
+ float: right;
7
+ }
8
+
9
+ .thread_header {
10
+ font-size: 16px;
11
+ font-weight: bold;
12
+ font-style: normal;
13
+ }
14
+
15
+ .thread_new_comment {
16
+ display: none;
17
+ }
18
+
19
+ .thread_new_comment textarea {
20
+ width: 100%;
21
+ }
@@ -22,6 +22,7 @@ module Commontator
22
22
 
23
23
  respond_to do |format|
24
24
  format.html { redirect_to @thread }
25
+ format.js { render :show }
25
26
  end
26
27
  end
27
28
 
@@ -33,6 +34,7 @@ module Commontator
33
34
 
34
35
  respond_to do |format|
35
36
  format.html { redirect_to @thread }
37
+ format.js { render :show }
36
38
  end
37
39
  end
38
40
  end
@@ -5,7 +5,7 @@ module Commontator
5
5
 
6
6
  # GET /threads/1
7
7
  def show
8
- commontator_thread_show(@thread.commontable, @user)
8
+ commontator_thread_show(@thread.commontable)
9
9
 
10
10
  respond_to do |format|
11
11
  format.html { redirect_to @commontable_url }
@@ -22,6 +22,7 @@ module Commontator
22
22
 
23
23
  respond_to do |format|
24
24
  format.html { redirect_to @thread }
25
+ format.js { render :show }
25
26
  end
26
27
  end
27
28
 
@@ -3,7 +3,7 @@
3
3
  # user
4
4
  %>
5
5
 
6
- <div id="comment_<%= comment.id.to_s %>_div" class="comment" style="clear:both">
6
+ <div id="comment_<%= comment.id.to_s %>_div" class="comment">
7
7
  <span id="comment_<%= comment.id.to_s %>_commontator_span" class="comment_commontator">
8
8
  <% if !user.nil? && user.commontator_config.user_name_clickable %>
9
9
  <%= link_to commontator_name(comment.creator), main_app.polymorphic_path(comment.creator) %>
@@ -24,7 +24,7 @@
24
24
 
25
25
  <br clear="all"/>
26
26
 
27
- <span id="comment_<%= comment.id.to_s %>_gravatar_image_span" class="comment_profile_picture">
27
+ <span id="comment_<%= comment.id.to_s %>_gravatar_image_span" class="comment_gravatar_image">
28
28
  <%= commontator_gravatar_image comment.creator %>
29
29
  </span>
30
30
 
@@ -6,7 +6,7 @@
6
6
  <% if thread.can_be_read_by?(user) %>
7
7
  <%= stylesheet_link_tag "commontator/application", :media => "all" %>
8
8
 
9
- <div id="thread_<%= thread.id %>_div" class="thread">
9
+ <div id="thread_<%= thread.id %>_div" class="thread" style="display: none;">
10
10
  <% if @commontator_thread_show %>
11
11
  <%= render :partial => 'commontator/threads/show', :locals => {:thread => thread,
12
12
  :user => user} %>
@@ -8,7 +8,8 @@
8
8
 
9
9
  <div id="thread_<%= thread.id %>_div" class="thread">
10
10
  <% if @commontator_thread_show %>
11
- <%= render :partial => 'commontator/threads/show', :locals => {:thread => thread} %>
11
+ <%= render :partial => 'commontator/threads/show', :locals => {:thread => thread,
12
+ :user => user} %>
12
13
  <% else %>
13
14
  <%= link_to "Show #{thread.config.comment_name.pluralize} (#{thread.comments.count})", commontator.thread_path(thread), :remote => true %>
14
15
  <% end %>
@@ -30,7 +30,8 @@
30
30
  'Are you sure you want to close this thread?' : nil),
31
31
  :method => :put,
32
32
  :id => "thread_#{thread.id.to_s}_#{close_string}_link",
33
- :class => "thread_#{close_string}_link" %>
33
+ :class => "thread_#{close_string}_link",
34
+ :remote => true %>
34
35
  <% end %>
35
36
  </span>
36
37
 
@@ -7,7 +7,7 @@
7
7
  <% can_edit = thread.can_be_edited_by?(user) %>
8
8
 
9
9
  <span id="thread_<%= thread.id.to_s %>_header_span" class="thread_header">
10
- <%= thread.config.comment_name.capitalize.pluralize %>
10
+ <%= thread.config.comment_name.capitalize.pluralize + (thread.is_closed? ? ' (closed)' : '') %>
11
11
  </span>
12
12
 
13
13
  <span id="thread_<%= thread.id.to_s %>_actions_span" class="thread_actions">
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "0.5.12"
2
+ VERSION = "0.5.13"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Commontator
2
- VERSION = "0.5.11"
2
+ VERSION = "0.5.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commontator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -70,6 +70,7 @@ files:
70
70
  - app/assets/stylesheets/commontator/comments.css
71
71
  - app/assets/stylesheets/commontator/comments.css~
72
72
  - app/assets/stylesheets/commontator/threads.css
73
+ - app/assets/stylesheets/commontator/threads.css~
73
74
  - app/assets/images/commontator/upvote.png
74
75
  - app/assets/images/commontator/downvote_hover.png
75
76
  - app/assets/images/commontator/upvote_hover.png