2014-05-08 07:33:39 +00:00
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<% @table_fields.each do |f| %>
|
|
|
|
<%= thead(f) %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @qas.each do |qa| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<%= qa.status_for_table %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%= qa.category.title %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="#" target="_blank"><%= qa.title %></a>
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
2014-07-31 12:41:24 +00:00
|
|
|
<% if can_edit_or_delete?(qa) %>
|
|
|
|
<li><a href="/<%= I18n.locale.to_s %>/admin/faqs/<%= qa.id.to_s %>/edit"><%= t(:edit) %></a></li>
|
|
|
|
<li><a href="/admin/faqs/<%= qa.id.to_s %>" data-method="delete" data-confirm="Are you sure?"><%= t(:delete_) %></a></li>
|
|
|
|
<% end %>
|
2014-05-08 07:33:39 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<% qa.tags.each do |tag| %>
|
|
|
|
<span class="label label-warning"><%= tag.name %></span>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|