Sha256: 1c3c1de8c4f55ea4cced2ed94b87933f7be62ece90a3c18333f7e7fc304c6b7b

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

<div id="activity-feed">
  <div id="activity-feed-content">
    <%= render( :partial => "activities/cached_activities", :locals => {:activities => activities}) %>
  </div>
</div>
<%= will_paginate activities, :previous_label => t('muck.activities.paging_newer'), :next_label => t('muck.activities.paging_older') -%>
<% content_for :head do -%>
  <%= javascript_tag %[var COMMENT_PROMPT = '#{t('muck.activities.write_prompt')}';] %>
  <%= javascript_tag %[var ADD_COMMENT_MESSAGE = '#{t('muck.activities.adding_comment_message')}';] %>
<% end -%>
<% content_for :javascript do -%>
  jQuery(document).ready(function(){
    setup_submit_delete();
    <% if GlobalConfig.enable_live_activity_updates -%>
    setInterval(function() {jQuery.ajax({success:function(request){update_feed(request);},url:'<%= activities_path(:parent_id => activities_object, :parent_type => activities_object.type, :activity_filter => params[:activity_filter], :format => 'js') %>&amp;latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
    <% end -%>
  });
<% end -%>
<%= javascript_include_tag 'muck_activities' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
muck-activities-0.1.8 app/views/activities/_activity_feed.html.erb
muck-activities-0.1.9 app/views/activities/_activity_feed.html.erb
muck-activities-0.1.10 app/views/activities/_activity_feed.html.erb
muck-activities-0.1.11 app/views/activities/_activity_feed.html.erb
muck-activities-0.1.12 app/views/activities/_activity_feed.html.erb
muck-activities-0.1.13 app/views/activities/_activity_feed.html.erb