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 CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -44,6 +44,7 @@ class Muck::ActivitiesController < ApplicationController
44
44
  page << 'jQuery("#submit_status").show();'
45
45
  page << 'jQuery("#progress-bar").hide();'
46
46
  page << 'setup_submit_delete();'
47
+ page << 'apply_comment_methods();'
47
48
  end
48
49
  end
49
50
  format.html do
@@ -1,4 +1,6 @@
1
- <div class="actor-icon"><%= icon activity.source %></div>
2
- <p><span class="actor"><%= link_to activity.source.display_name, activity.source %></span>
3
- <span class="activity-time"><%= t("muck.activities.time_ago", :time_in_words => time_ago_in_words(activity.created_at)) %></span></p>
4
- <p><%= h comment.body %></p>
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
- <div class="activity-comment">
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%>_comment" class="activity-comment <%= has_comments_css(activity) %>">
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="comment_<%=activity.dom_id%>" class="make-comment" href="#"><%=t('muck.activities.make_comment')%></a></span>
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>
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-activity}
5
- s.version = "0.1.5"
5
+ s.version = "0.1.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
data/rdoc/created.rid CHANGED
@@ -1 +1 @@
1
- Fri, 12 Jun 2009 00:15:11 -0600
1
+ Sat, 13 Jun 2009 22:07:43 -0600
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Jun 11 23:20:30 -0600 2009</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) &amp;&amp; check_object.admin?)
153
153
  end
154
154
  </pre>
155
- <h2>Live Updates</h2>
155
+ <h2>Configuration</h2>
156
+ <p>
157
+ If you would like to enable comments for your project&#8216;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&#8216;s activity feed you
158
166
  can do so by adding an entry to GlobalConfig.yml (configuration file added
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Jun 11 23:49:23 -0600 2009</td>
59
+ <td>Sat Jun 13 16:22:19 -0600 2009</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball