commontator 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/commontator/comments.css +2 -0
- data/app/assets/stylesheets/commontator/comments.css~ +1 -1
- data/app/assets/stylesheets/commontator/threads.css +4 -0
- data/app/assets/stylesheets/commontator/threads.css~ +21 -0
- data/app/controllers/commontator/threads_controller.rb +2 -0
- data/app/controllers/commontator/threads_controller.rb~ +2 -1
- data/app/views/commontator/comments/_show.html.erb +1 -1
- data/app/views/commontator/comments/_show.html.erb~ +1 -1
- data/app/views/commontator/shared/_thread.html.erb +1 -1
- data/app/views/commontator/shared/_thread.html.erb~ +2 -1
- data/app/views/commontator/threads/_show.html.erb +2 -1
- data/app/views/commontator/threads/_show.html.erb~ +1 -1
- data/lib/commontator/version.rb +1 -1
- data/lib/commontator/version.rb~ +1 -1
- metadata +2 -1
@@ -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
|
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"
|
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="
|
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">
|
data/lib/commontator/version.rb
CHANGED
data/lib/commontator/version.rb~
CHANGED
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.
|
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
|