muck-activity 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/muck/activities_controller.rb +1 -0
- data/app/views/activities/_comment.html.erb +6 -4
- data/app/views/activities/_comments.html.erb +2 -4
- data/app/views/activity_templates/_status_update.html.erb +1 -1
- data/muck-activity.gemspec +1 -1
- data/rdoc/created.rid +1 -1
- data/rdoc/files/README_rdoc.html +10 -2
- data/rdoc/files/lib/muck_activity_rb.html +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
@@ -1,4 +1,6 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
<
|
1
|
+
<div class="activity-comment">
|
2
|
+
<div class="actor-icon"><%= icon activity.source %></div>
|
3
|
+
<p><span class="actor"><%= link_to activity.source.display_name, activity.source %></span>
|
4
|
+
<span class="activity-time"><%= t("muck.activities.time_ago", :time_in_words => time_ago_in_words(activity.created_at)) %></span></p>
|
5
|
+
<p><%= h comment.body %></p>
|
6
|
+
</div>
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<% if activity.has_comments? -%>
|
2
|
-
|
3
|
-
<%= render( :partial => "activities/comment", :collection => activity.comments, :locals => { :activity => activity } ) %>
|
4
|
-
</div>
|
2
|
+
<%= render( :partial => "activities/comment", :collection => activity.comments, :locals => { :activity => activity } ) %>
|
5
3
|
<% end -%>
|
6
|
-
<div id="<%=activity.dom_id%>
|
4
|
+
<div id="comment_<%=activity.dom_id%>" class="activity-comment <%= has_comments_css(activity) %>">
|
7
5
|
<div class="actor-icon"><%= icon current_user %></div>
|
8
6
|
<%= activity_comment_link(activity) %>
|
9
7
|
</div>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<p><span class="actor"><%= link_to activity.source.display_name, activity.source %></span> <%= activity.content %></p>
|
5
5
|
<span class="activity-time"><%= t("muck.activities.time_ago", :time_in_words => time_ago_in_words(activity.created_at)) %></span>
|
6
6
|
<% if !activity.has_comments? -%>
|
7
|
-
<span><a id="
|
7
|
+
<span><a id="make_comment_<%=activity.dom_id%>" class="make-comment" href="#"><%=t('muck.activities.make_comment')%></a></span>
|
8
8
|
<% end -%>
|
9
9
|
<%= delete_activity(activity, :image) %>
|
10
10
|
</div>
|
data/muck-activity.gemspec
CHANGED
data/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Sat, 13 Jun 2009 22:07:43 -0600
|
data/rdoc/files/README_rdoc.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sat Jun 13 20:21:26 -0600 2009</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -152,7 +152,15 @@ a can_view? method like this:
|
|
152
152
|
self.member?(check_object) || (check_object.is_a?(User) && check_object.admin?)
|
153
153
|
end
|
154
154
|
</pre>
|
155
|
-
<h2>
|
155
|
+
<h2>Configuration</h2>
|
156
|
+
<p>
|
157
|
+
If you would like to enable comments for your project‘s activities
|
158
|
+
feeds you can do so by adding an entry to GlobalConfig.yml (configuration
|
159
|
+
file added by muck)
|
160
|
+
</p>
|
161
|
+
<pre>
|
162
|
+
enable_activity_comments: true
|
163
|
+
</pre>
|
156
164
|
<p>
|
157
165
|
If you would like to add live updates to the user‘s activity feed you
|
158
166
|
can do so by adding an entry to GlobalConfig.yml (configuration file added
|