97 lines
3.4 KiB
Plaintext
97 lines
3.4 KiB
Plaintext
<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>
|
|
<th style="width: 30px; white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title="来源(课程或用户ID)">
|
|
来源(课程或用户ID)
|
|
</th>
|
|
<th style="width: 50px;">
|
|
留言人
|
|
</th>
|
|
<th style="width: 70px;">
|
|
留言时间
|
|
</th>
|
|
<th style="width: 120px;">
|
|
留言内容
|
|
</th>
|
|
<th style="width: 30px;">
|
|
回复数
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @count = @page * 30 %>
|
|
<% 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>
|
|
<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 %>
|
|
</td>
|
|
<td class="center">
|
|
<%= format_date(journal.created_on) %>
|
|
</td>
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" title='<%=strip_html(journal.notes) %>'>
|
|
<%case journal.jour_type %>
|
|
<% when 'Principal' %>
|
|
<%= link_to(journal.m_parent_id.nil? ? strip_html(journal.notes) : 'RE: ' + strip_html(journal.notes), feedback_path(journal.jour_id)) %>
|
|
<% when 'Course' %>
|
|
<%= link_to(journal.m_parent_id.nil? ? strip_html(journal.notes) : 'RE: ' + strip_html(journal.notes), course_feedback_path(journal.jour_id)) %>
|
|
<% end %>
|
|
</td>
|
|
<td class="center">
|
|
<% 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 %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="pagination">
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
|
</div>
|
|
|
|
<% html_title(l(:label_leave_message_list)) -%>
|