refactored favorites:

instead of using a fav page for each content, use a general favorites pane where the user can select which favs shall be shown
This commit is contained in:
Pfingstfrosch
2020-05-12 19:19:04 +02:00
parent a8f4d4a9db
commit 92eff82f1a
13 changed files with 88 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
<div class='favNav'>
<%= link_to 'People', favorites_people_url%>
<%= link_to 'Courses', favorites_courses_url %>
<%= link_to 'Theses', favorites_theses_url %>
<%= link_to 'Projects', favorites_projects_url %>
</div>
+3
View File
@@ -0,0 +1,3 @@
<%= render(:partial => "nav")%>
<p>Fav Courses</p>
+2
View File
@@ -0,0 +1,2 @@
<%= render(:partial => "nav")%>
@@ -1,3 +1,5 @@
<%= render(:partial => "nav")%>
<h1>Favorite People</h1>
<ul class="people-list">
+3
View File
@@ -0,0 +1,3 @@
<%= render(:partial => "nav")%>
<p>Fav Projects</p>
+3
View File
@@ -0,0 +1,3 @@
<%= render(:partial => "nav")%>
<p>Fav Theses</p>