From 9881e7962d06ebd62bb7fdff5001d5481dd9cd9d Mon Sep 17 00:00:00 2001 From: Pfingstfrosch Date: Thu, 4 Jun 2020 22:17:38 +0200 Subject: [PATCH] add render_personal_annotations to all favorite classes --- app/views/crawlers/courses_crawler/show_detail.html.erb | 2 +- app/views/crawlers/projects_crawler/show_detail.html.erb | 3 ++- app/views/crawlers/theses_crawler/show_detail.html.erb | 2 +- app/views/favorites/projects.html.erb | 1 + app/views/favorites/theses.html.erb | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/crawlers/courses_crawler/show_detail.html.erb b/app/views/crawlers/courses_crawler/show_detail.html.erb index 1b5efb8..a92e666 100644 --- a/app/views/crawlers/courses_crawler/show_detail.html.erb +++ b/app/views/crawlers/courses_crawler/show_detail.html.erb @@ -14,5 +14,5 @@ <%= raw @course['objective']['de'] %> <% end %> - <%= render :partial => "crawlers/personal_annotations" %> + <%= render_personal_annotations @course['courseNumber'], @personal_annotation %> <% end %> diff --git a/app/views/crawlers/projects_crawler/show_detail.html.erb b/app/views/crawlers/projects_crawler/show_detail.html.erb index 74d6674..915c0a2 100644 --- a/app/views/crawlers/projects_crawler/show_detail.html.erb +++ b/app/views/crawlers/projects_crawler/show_detail.html.erb @@ -12,5 +12,6 @@ <% end %> <% end %> - <%= render :partial => "crawlers/personal_annotations" %> + <%= render_personal_annotations @id, @personal_annotation %> + <% end %> diff --git a/app/views/crawlers/theses_crawler/show_detail.html.erb b/app/views/crawlers/theses_crawler/show_detail.html.erb index 6880bf2..17a7486 100644 --- a/app/views/crawlers/theses_crawler/show_detail.html.erb +++ b/app/views/crawlers/theses_crawler/show_detail.html.erb @@ -11,5 +11,5 @@

<%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %>

<% end %> - <%= render :partial => "crawlers/personal_annotations" %> + <%= render_personal_annotations @id, @personal_annotation %> <% end %> diff --git a/app/views/favorites/projects.html.erb b/app/views/favorites/projects.html.erb index 0af93e5..d458f9a 100644 --- a/app/views/favorites/projects.html.erb +++ b/app/views/favorites/projects.html.erb @@ -25,6 +25,7 @@ <%= 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 4d2deac..bc14c31 100644 --- a/app/views/favorites/theses.html.erb +++ b/app/views/favorites/theses.html.erb @@ -26,6 +26,7 @@ <%= button_to 'Delete', {:action => "delete_thesis", :id => thesis['id']}, :method => 'delete' %> + <% end %>