<% if @controller_name=='ActivityNotifys' %> <%= l(:label_activity)%>

与我相关

<% else %>

<%= l(:label_activity)%>

<% if User.current.logged? %> 与我相关 <% end %> <% end %>
<% if @events_by_day != nil && @events_by_day.size >0 %> <% @events_by_day.keys.sort.reverse.each do |day| %> <% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%>
<%= image_tag(url_to_avatar(e.event_author), :width => "42", :height => "42") %>
<%= link_to_user_header(e.event_author,false,:class => 'problem_name c_orange fl') if e.respond_to?(:event_author) %> <%= link_to_user_header("(#{e.event_author})", @canShowRealName,:class => 'problem_name c_orange fl') if @canShowRealName && e.respond_to?(:event_author) %>   <%= l(:label_new_activity) %>: <% link = (e.event_type.eql?("attachment")&&e.container.kind_of?(Course)) ? course_files_path(e.container) : (e.event_type.eql?("bid") ? homework_course_path(@course) : (e.event_type.eql?("message") || e.event_type.eql?("reply") ? course_boards_path(@course,:topic_id => e.id,:parent_id=>(e.parent_id ? e.parent_id : e.id)) : e.event_url)) %> <%= link_to "#{eventToLanguageCourse(e.event_type, @course)} "<< format_activity_title(e.event_title), link, :class => "problem_tit c_dblue fl fb",'data-type'=>e.event_type, 'data-notify-id'=>(e.respond_to?('get_notify_id') ? e.get_notify_id : ''),:nhname=>"nh_act_link", 'data-href'=>(course_activity_notifys_path(@course)+"/chang_read_flag?an_id="+(e.respond_to?('get_notify_id') ? e.get_notify_id : '').to_s)%> <%if @controller_name=='ActivityNotifys' && e.get_notify_is_read!=1%> <%end%>

<%= e.event_description.html_safe %>
<%= l :label_activity_time %> : <%= format_activity_day(day) %> <%= format_time(e.event_datetime, false) %>

<%= link_to_attachments_course(e) if e.is_a?(News) %>
<% end%> <% end%> <% elsif @controller_name=='ActivityNotifys' %>

<%= l(:label_no_data) %>

<% end%> <% if @obj_pages.next_page.nil? && @controller_name!='ActivityNotifys' %>
<%= image_tag(url_to_avatar(@user), :width => "42", :height => "42") %>
<%= link_to_user_header(@user,false,:class => 'problem_name c_orange fl') %> <%= link_to_user_header("(#{@user})", @canShowRealName,:class => 'problem_name c_orange fl') if @canShowRealName %> <%= l(:label_user_create_project) %>: <%= link_to @course.name,course_path(@course),:class => "problem_tit c_dblue fl fb"%>


<%= l :label_create_time %> : <%= format_time(@course.created_at) %>

<% end%>