2015-08-15 17:06:50 +08:00
|
|
|
<h3>
|
|
|
|
<%=l(:label_leave_message_list)%>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="autoscroll">
|
|
|
|
<table class="list" style="width: 100%;table-layout: fixed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 30px;">
|
|
|
|
序号
|
|
|
|
</th>
|
|
|
|
<th style="width: 50px;">
|
|
|
|
类型
|
|
|
|
</th>
|
2015-08-18 17:00:58 +08:00
|
|
|
<th style="width: 30px; white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="来源(课程或用户ID)">
|
|
|
|
来源(课程或用户ID)
|
2015-08-15 17:06:50 +08:00
|
|
|
</th>
|
|
|
|
<th style="width: 50px;">
|
|
|
|
留言人
|
|
|
|
</th>
|
|
|
|
<th style="width: 70px;">
|
|
|
|
留言时间
|
|
|
|
</th>
|
|
|
|
<th style="width: 120px;">
|
|
|
|
留言内容
|
|
|
|
</th>
|
|
|
|
<th style="width: 30px;">
|
|
|
|
回复数
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-08-18 14:40:12 +08:00
|
|
|
<% @count = @page * 30 %>
|
2015-08-15 17:06:50 +08:00
|
|
|
<% for journal in @jour -%>
|
|
|
|
<% @count=@count + 1 %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
<td style="text-align: center;">
|
|
|
|
<%= @count %>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<%case journal.jour_type %>
|
|
|
|
<% when 'Principal' %>
|
|
|
|
<%='用户主页' %>
|
|
|
|
<% when 'Course' %>
|
|
|
|
<%='课程' %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<%= journal.jour_id %>
|
|
|
|
</td>
|
2015-08-18 14:40:12 +08:00
|
|
|
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title='<% if journal.try(:user).try(:realname) == ' '%><%= 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 %>
|
2015-08-15 17:06:50 +08:00
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= format_date(journal.created_on) %>
|
|
|
|
</td>
|
2015-08-18 14:40:12 +08:00
|
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title='<%=journal.notes %>'>
|
|
|
|
<%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 %>
|
2015-08-15 17:06:50 +08:00
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<% if(journal.m_reply_count) %>
|
2015-08-18 14:40:12 +08:00
|
|
|
<%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 %>
|
2015-08-15 17:06:50 +08:00
|
|
|
<% else %>
|
2015-08-18 14:40:12 +08:00
|
|
|
<%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 %>
|
2015-08-15 17:06:50 +08:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="pagination">
|
2015-08-18 14:40:12 +08:00
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
2015-08-15 17:06:50 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% html_title(l(:label_leave_message_list)) -%>
|