From f96ed67cf0578fb3a26737ea25c1876aba26c8a4 Mon Sep 17 00:00:00 2001 From: Pfingstfrosch Date: Fri, 29 May 2020 15:56:19 +0200 Subject: [PATCH] move buttons underneath the displayed lines to make the view more mobile compatible --- app/views/favorites/people.html.erb | 8 ++++++-- app/views/favorites/theses.html.erb | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/views/favorites/people.html.erb b/app/views/favorites/people.html.erb index c0db7db..dbf82e3 100644 --- a/app/views/favorites/people.html.erb +++ b/app/views/favorites/people.html.erb @@ -32,8 +32,8 @@ <%= sortable "First Name", "first_name" %> <%= sortable "Last Name", "last_name" %> <%= sortable "Registration Date", "created_at" %> - - + + <% for person in @favorite_people %> @@ -57,12 +57,16 @@ <%= person['created_at'] %> + + <%= button_to 'Details', crawlers_people_crawler_show_detail_url(:tiss_id => person['tiss_id']) %> <%= button_to "Delete", {:action => "delete_person", :tiss_id => person['tiss_id']}, :method => 'delete' %> + + <% end %> diff --git a/app/views/favorites/theses.html.erb b/app/views/favorites/theses.html.erb index d552232..33ca56f 100644 --- a/app/views/favorites/theses.html.erb +++ b/app/views/favorites/theses.html.erb @@ -8,8 +8,6 @@ <%= sortable "Title", "title" %> <%= sortable "Registration Date", "created_at" %> - - <% for thesis in @favorite_theses %> @@ -19,6 +17,9 @@ <%= thesis['created_at'] %> + + + <%= button_to 'Details', crawlers_theses_crawler_show_detail_url(:id => thesis['id']) %>