Show annotations on overview of favorites
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
<%= render(:partial => "nav") %>
|
||||
|
||||
<h2>Favorite Courses</h2>
|
||||
<div class="header-button-container">
|
||||
<div class="header">
|
||||
<h2>Favorite Courses</h2>
|
||||
</div>
|
||||
<div class="button">
|
||||
<span>Annotations</span>
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="toggleAnnotations">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if !@favorite_courses[0].blank? %>
|
||||
<div class="table_wrapper">
|
||||
@@ -19,14 +30,17 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<% if course['personal_annotation'] != nil %>
|
||||
<div id="annotation"><strong>Annotation:</strong> <%= course['personal_annotation'] %></div>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<div class="table_buttons">
|
||||
<%= 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' %>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
<%= render(:partial => "nav") %>
|
||||
|
||||
<h2>Favorite People</h2>
|
||||
<div class="header-button-container">
|
||||
<div class="header">
|
||||
<h2>Favorite People</h2>
|
||||
</div>
|
||||
<div class="button">
|
||||
<span>Annotations</span>
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="toggleAnnotations">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if !@favorite_people[0].blank? %>
|
||||
<div class="table_wrapper">
|
||||
@@ -13,11 +24,11 @@
|
||||
</tr>
|
||||
<% for person in @favorite_people %>
|
||||
<tr>
|
||||
<td>
|
||||
<td rowspan="2">
|
||||
<%= link_to crawlers_people_crawler_show_detail_url(:tiss_id => person['tiss_id']) do %>
|
||||
<span>
|
||||
<span class="thumb">
|
||||
<% if person['picture_uri'] != nil %>
|
||||
<%= image_tag @host + person['picture_uri'], class: 'thumb' %>
|
||||
<%= image_tag @host + person['picture_uri'] %>
|
||||
<% else %>
|
||||
<%= show_svg('account_circle-black-48dp.svg') %>
|
||||
<% end %>
|
||||
@@ -35,15 +46,17 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<% if person['personal_annotation'] != nil %>
|
||||
<div id="annotation"><strong>Annotation:</strong> <%= person['personal_annotation'] %></div>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<div class="table_buttons">
|
||||
<%= 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' %>
|
||||
</div>
|
||||
</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
<%= render(:partial => "nav") %>
|
||||
|
||||
<h2>Favorite Projects</h2>
|
||||
<div class="header-button-container">
|
||||
<div class="header">
|
||||
<h2>Favorite Projects</h2>
|
||||
</div>
|
||||
<div class="button">
|
||||
<span>Annotations</span>
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="toggleAnnotations">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if !@favorite_projects[0].blank? %>
|
||||
<div class="table_wrapper">
|
||||
@@ -19,13 +30,17 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<% if project['personal_annotation'] != nil %>
|
||||
<div id="annotation"><strong>Annotation:</strong> <%= project['personal_annotation'] %></div>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<div class="table_buttons">
|
||||
<%= button_to 'Details', crawlers_projects_crawler_show_detail_url(:id => project['id']) %>
|
||||
<%= button_to 'Delete', {:action => "delete_project", :id => project['id']}, :method => 'delete' %>
|
||||
</div>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
<%= render(:partial => "nav") %>
|
||||
|
||||
<h2>Favorite Theses</h2>
|
||||
<div class="header-button-container">
|
||||
<div class="header">
|
||||
<h2>Favorite Theses</h2>
|
||||
</div>
|
||||
<div class="button">
|
||||
<span>Annotations</span>
|
||||
<label class="switch">
|
||||
<input type="checkbox" id="toggleAnnotations">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if !@favorite_theses[0].blank? %>
|
||||
<div class="table_wrapper">
|
||||
@@ -20,13 +31,17 @@
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<% if thesis['personal_annotation'] != nil %>
|
||||
<div id="annotation"><strong>Annotation:</strong> <%= thesis['personal_annotation'] %></div>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<div class="table_buttons">
|
||||
<%= button_to 'Details', crawlers_theses_crawler_show_detail_url(:id => thesis['id']) %>
|
||||
<%= button_to 'Delete', {:action => "delete_thesis", :id => thesis['id']}, :method => 'delete' %>
|
||||
</div>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user