ask/app/views/asks/published_index.erb

18 lines
564 B
Plaintext
Raw Normal View History

2020-04-30 05:18:02 +00:00
<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>
2020-07-04 13:36:32 +00:00
</table>
<% total_pages = data['ask_questions'].total_pages %>
<%= create_pagination(total_pages).html_safe if total_pages > 1 %>