ask/app/views/asks/published_index.erb

16 lines
443 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>