You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.6 KiB
79 lines
2.6 KiB
<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>
|
|
<% @count=@page * 30%>
|
|
<% 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">
|
|
<%= link_to(news.comments_count, news_path(news)) %>
|
|
</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_notification_list)) -%>
|