<%=l(:label_leave_message_list)%>

<% @count = @page * 30 %> <% for journal in @jour -%> <% @count=@count + 1 %> "> <% end %>
序号 类型 来源(课程或用户ID) 留言人 留言时间 留言内容 回复数
<%= @count %> <%case journal.jour_type %> <% when 'Principal' %> <%='用户主页' %> <% when 'Course' %> <%='课程' %> <% end %> <%= journal.jour_id %> <%= journal.try(:user)%><% else %><%=journal.try(:user).try(:realname) %><% end %>'> <% if journal.try(:user).try(:realname) == ' '%> <%= link_to(journal.try(:user), user_path(journal.user)) %> <% else %> <%= link_to(journal.try(:user).try(:realname), user_path(journal.user)) %> <% end %> <%= format_date(journal.created_on) %> <%case journal.jour_type %> <% when 'Principal' %> <%= link_to(journal.notes.html_safe, feedback_path(journal.jour_id)) %> <% when 'Course' %> <%= link_to(journal.notes.html_safe, course_feedback_path(journal.jour_id)) %> <% end %> <% if(journal.m_reply_count) %> <%case journal.jour_type %> <% when 'Principal' %> <%= link_to(journal.m_reply_count, feedback_path(journal.jour_id)) %> <% when 'Course' %> <%= link_to(journal.m_reply_count, course_feedback_path(journal.jour_id)) %> <% end %> <% else %> <%case journal.jour_type %> <% when 'Principal' %> <%= link_to(0, feedback_path(journal.jour_id)) %> <% when 'Course' %> <%= link_to(0, course_feedback_path(journal.jour_id)) %> <% end %> <% end %>
<% html_title(l(:label_leave_message_list)) -%>