personal annotations for all classes implemented

This commit is contained in:
Pfingstfrosch
2020-06-04 23:15:54 +02:00
parent 9881e7962d
commit 1e87036094
10 changed files with 24 additions and 10 deletions
@@ -1,4 +1,5 @@
<%= form_tag "add_annotation", :id => "id" do -%>
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
<p>
Add an annotation:
</p>
@@ -1,6 +1,6 @@
<% if @course != nil %>
<%-# TODO parse more fields and style them appropriately -%>
<h2><%= @course['title']['de'] %></h2>
<h2>Course: <%= @course['title']['de'] %></h2>
<h5><%= @course['courseType'] %> <%= @course['semesterCode'] %>, <%= @course['weeklyHours'] %> SWS, <%= @course['instituteCode'] %> <%= @course['instituteName']['de'] %> </h5>
<%= button_to 'Add to favorites', action: :add_to_fav, number: @course['courseNumber'], semester: @course['semesterCode'] %>
<% if @lecturers_names != nil %>
@@ -1,5 +1,5 @@
<% if @person != nil %>
<h2><%= @person['first_name'] %> <%= @person['last_name'] %></h2>
<h2>Person: <%= @person['first_name'] %> <%= @person['last_name'] %></h2>
<div class="profile-picture">
<% if @person['picture_uri'] != nil %>
<%= image_tag @host + @person['picture_uri'] %>
@@ -1,5 +1,5 @@
<% if @project != nil %>
<h2><%= @project['titleDe'] %></h2>
<h2>Project: <%= @project['titleDe'] %></h2>
<h5><%= @project['contractBegin'] %> - <%= @project['contractEnd'] %></h5>
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @project['titleDe'] %>
<% if @project['abstractDe'] != nil %>
@@ -1,5 +1,5 @@
<% if @thesis != nil %>
<h2><%= @thesis['title']['de'] %></h2>
<h2>Thesis: <%= @thesis['title']['de'] %></h2>
<h5><%= @thesis['thesisType'] %>, <%= @thesis['instituteCode'] %> <%= @thesis['instituteName']['de'] %></h5>
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @thesis['title']['de'] %>
<% if @thesis['advisor'] != nil %>