From 8cbf96742f9900fa4918d86024491502ad636dda Mon Sep 17 00:00:00 2001 From: Pfingstfrosch Date: Sun, 31 May 2020 17:08:40 +0200 Subject: [PATCH] final styling of fav table buttons --- app/assets/stylesheets/favorites.scss | 12 ++++++++++++ app/views/favorites/courses.html.erb | 6 ++++-- app/views/favorites/people.html.erb | 8 ++++---- app/views/favorites/projects.html.erb | 8 ++++---- app/views/favorites/theses.html.erb | 8 ++++---- 5 files changed, 28 insertions(+), 14 deletions(-) diff --git a/app/assets/stylesheets/favorites.scss b/app/assets/stylesheets/favorites.scss index 6e8c764..a780c04 100644 --- a/app/assets/stylesheets/favorites.scss +++ b/app/assets/stylesheets/favorites.scss @@ -36,6 +36,14 @@ width: 3em; } +.table_buttons { + display: flex; + + :nth-child(2) { + color: darkred; + } +} + .table_wrapper { overflow-x: auto; @@ -48,6 +56,10 @@ } } + td { + //display: flex; + } + table { border-collapse: collapse; width: 100%; diff --git a/app/views/favorites/courses.html.erb b/app/views/favorites/courses.html.erb index 8cd46c6..3bd3683 100644 --- a/app/views/favorites/courses.html.erb +++ b/app/views/favorites/courses.html.erb @@ -20,10 +20,12 @@ - <%= button_to 'Details', crawlers_courses_crawler_show_detail_url(:number => course['number'], :semester => course['semester']) %> +
+ <%= button_to 'Details', crawlers_courses_crawler_show_detail_url(:number => course['number'], :semester => course['semester']) %> + <%= button_to 'Delete', {:action => "delete_course", :number => course['number'], :semester => course['semester']}, :method => 'delete' %> +
- <%= button_to 'Delete', {:action => "delete_course", :number => course['number'], :semester => course['semester']}, :method => 'delete' %> <% end %> diff --git a/app/views/favorites/people.html.erb b/app/views/favorites/people.html.erb index 28cfd0a..b8d9782 100644 --- a/app/views/favorites/people.html.erb +++ b/app/views/favorites/people.html.erb @@ -36,10 +36,10 @@ - <%= 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' %> +
+ <%= 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' %> +
diff --git a/app/views/favorites/projects.html.erb b/app/views/favorites/projects.html.erb index 99e3a97..0af93e5 100644 --- a/app/views/favorites/projects.html.erb +++ b/app/views/favorites/projects.html.erb @@ -20,10 +20,10 @@ - <%= button_to 'Details', crawlers_projects_crawler_show_detail_url(:id => project['id']) %> - - - <%= button_to 'Delete', {:action => "delete_project", :id => project['id']}, :method => 'delete' %> +
+ <%= button_to 'Details', crawlers_projects_crawler_show_detail_url(:id => project['id']) %> + <%= button_to 'Delete', {:action => "delete_project", :id => project['id']}, :method => 'delete' %> +
<% end %> diff --git a/app/views/favorites/theses.html.erb b/app/views/favorites/theses.html.erb index 4383348..4d2deac 100644 --- a/app/views/favorites/theses.html.erb +++ b/app/views/favorites/theses.html.erb @@ -21,10 +21,10 @@ - <%= button_to 'Details', crawlers_theses_crawler_show_detail_url(:id => thesis['id']) %> - - - <%= button_to 'Delete', {:action => "delete_thesis", :id => thesis['id']}, :method => 'delete' %> +
+ <%= button_to 'Details', crawlers_theses_crawler_show_detail_url(:id => thesis['id']) %> + <%= button_to 'Delete', {:action => "delete_thesis", :id => thesis['id']}, :method => 'delete' %> +
<% end %>