ask/app/views/asks/published_index.erb

18 lines
564 B
Plaintext

<table class="table">
<thead>
<tr class="bg-primary">
<th><%= t('categories') %></th>
<th><%= t('title') %></th>
</tr>
</thead>
<tbody>
<% data['ask_questions'].each do |ask_question| %>
<tr>
<td><%= ask_question.category.title %></td>
<td><%= link_to ask_question.title,"#{data['url']}?item=#{ask_question.id}",title: ask_question.title %></td>
</tr>
<% end %>
</tbody>
</table>
<% total_pages = data['ask_questions'].total_pages %>
<%= create_pagination(total_pages).html_safe if total_pages > 1 %>