announcement-test/app/views/admin/announcements/_index.html.erb

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-05-02 10:21:51 +00:00
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @bulletins.each do |b| %>
<tr>
<td><%= b.status_for_table %></td>
<td><%= b.category.title %></td>
<td>
<a href="<%=page_for_bulletin(b)%>" target="_blank"><%= b.title %></a>
<div class="quick-edit">
<ul class="nav nav-pills">
<li><a href="/admin/announcements/<%=b.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="detail-row"><%= t(:detail) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/announcements/<%=b.id.to_s%>"><%= t(:delete_) %></a></li>
</ul>
</div>
</td>
<td><%= format_value b.postdate %></td>
<td><%= format_value b.deadline %></td>
<td><%= b.update_user.user_name %></td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@bulletins), class: "pagination pagination-centered"
end
%>