move buttons underneath the displayed lines to make the view more mobile compatible

This commit is contained in:
Pfingstfrosch 2020-05-29 15:56:19 +02:00
parent a3f7066cc1
commit f96ed67cf0
2 changed files with 9 additions and 4 deletions

View File

@ -32,8 +32,8 @@
<th><%= sortable "First Name", "first_name" %></th>
<th><%= sortable "Last Name", "last_name" %></th>
<th><%= sortable "Registration Date", "created_at" %></th>
<th></th>
<th></th>
<!-- <th></th>-->
<!-- <th></th>-->
</tr>
<% for person in @favorite_people %>
<tr>
@ -57,12 +57,16 @@
<td>
<%= person['created_at'] %>
</td>
</tr>
<tr>
<td>
<%= button_to 'Details', crawlers_people_crawler_show_detail_url(:tiss_id => person['tiss_id']) %>
</td>
<td>
<%= button_to "Delete", {:action => "delete_person", :tiss_id => person['tiss_id']}, :method => 'delete' %>
</td>
<td></td>
<td></td>
</tr>
<% end %>
</table>

View File

@ -8,8 +8,6 @@
<tr>
<th><%= sortable "Title", "title" %></th>
<th><%= sortable "Registration Date", "created_at" %></th>
<th></th>
<th></th>
</tr>
<% for thesis in @favorite_theses %>
<tr>
@ -19,6 +17,9 @@
<td>
<%= thesis['created_at'] %>
</td>
</tr>
<tr>
<td>
<%= button_to 'Details', crawlers_theses_crawler_show_detail_url(:id => thesis['id']) %>
</td>