2015-08-15 17:06:50 +08:00
|
|
|
<h3>
|
|
|
|
<%=l(:label_notification_list)%>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="autoscroll">
|
|
|
|
<table class="list" style="width: 100%;table-layout: fixed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 30px;">
|
|
|
|
序号
|
|
|
|
</th>
|
|
|
|
<th style="width: 30px;">
|
|
|
|
课程id
|
|
|
|
</th>
|
|
|
|
<th style="width: 120px;">
|
|
|
|
课程名称
|
|
|
|
</th>
|
|
|
|
<th style="width: 50px;">
|
|
|
|
主讲老师
|
|
|
|
</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 news in @news -%>
|
|
|
|
<% @count=@count + 1 %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
<td style="text-align: center;">
|
|
|
|
<%= @count %>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<%=news.course_id %>
|
|
|
|
</td>
|
|
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title="<%=news.course.name %>">
|
|
|
|
<%=link_to(news.course.name, course_path(news.course)) %>
|
|
|
|
</td>
|
|
|
|
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title="<%=news.course.try(:teacher).try(:realname) %>">
|
|
|
|
<%=link_to(news.course.try(:teacher).try(:realname), user_path(news.course.teacher)) %>
|
|
|
|
</td>
|
|
|
|
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<% if news.try(:author).try(:realname) == ' '%><%= news.try(:author)%><% else %><%=news.try(:author).try(:realname) %><% end %>'>
|
|
|
|
<% if news.try(:author).try(:realname) == ' '%>
|
|
|
|
<%= link_to(news.try(:author), user_path(news.author)) %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to(news.try(:author).try(:realname), user_path(news.author)) %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= format_date(news.created_on) %>
|
|
|
|
</td>
|
|
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=news.title %>'>
|
|
|
|
<%= link_to(news.title, news_path(news)) %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
2015-08-18 14:40:12 +08:00
|
|
|
<%= link_to(news.comments_count, news_path(news)) %>
|
2015-08-15 17:06:50 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2015-08-18 14:40:12 +08:00
|
|
|
<div class="pagination">
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
|
|
|
</div>
|
|
|
|
|
2015-08-15 17:06:50 +08:00
|
|
|
<% html_title(l(:label_notification_list)) -%>
|