2014-07-21 06:34:34 +00:00
|
|
|
<script>
|
|
|
|
if(document.querySelectorAll(".orbit-bar").length==0) location.reload();
|
|
|
|
</script>
|
|
|
|
|
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>
|
2014-07-19 19:30:33 +00:00
|
|
|
<li><a href="#" class="detail-row" onclick="$('#<%= "#{b.id.to_s}-detail" %>').slideToggle(300); return false;"><%= t(:detail) %></a></li>
|
2014-05-02 10:21:51 +00:00
|
|
|
<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>
|
2014-06-24 04:25:05 +00:00
|
|
|
<tr class="footable-row-detail">
|
|
|
|
<td class="footable-cell-detail" colspan="6">
|
|
|
|
<div id="<%= "#{b.id.to_s}-detail" %>" class="footable-row-detail-inner" style="display: none;">
|
|
|
|
<div>
|
|
|
|
<strong><%= t(:tags) %></strong> :
|
|
|
|
<% b.tags.each do |tag| %>
|
|
|
|
<span class="label label-warning"><%= tag.name %></span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<strong><%= t("announcement.email_to") %></strong> :
|
|
|
|
<% b.email_members.each do |member| %>
|
|
|
|
<span class="label"><%= member.name %></span>
|
|
|
|
<% end %>
|
|
|
|
<% unless b.other_mailaddress.nil? %>
|
|
|
|
<% b.other_mailaddress.split(',').each do |mailaddress| %>
|
|
|
|
<span class="label"><%= mailaddress %></span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2014-05-02 10:21:51 +00:00
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<%=
|
|
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
|
|
content_tag :div, paginate(@bulletins), class: "pagination pagination-centered"
|
|
|
|
end
|
2014-07-21 06:11:58 +00:00
|
|
|
%>
|