Add advisor and assistant names to thesis detail view

This commit is contained in:
Tobias Eidelpes 2020-05-25 16:28:22 +02:00
parent b20cccf07b
commit e359595d0f

View File

@ -2,4 +2,12 @@
<h2><%= @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 %>
<h4>Advisor</h4>
<p><%= @thesis['advisor']['familyName'] %> <%= @thesis['advisor']['givenName'] %></p>
<% end %>
<% if @thesis['assistant'] != nil %>
<h4>Assistant</h4>
<p><%= @thesis['assistant']['familyName'] %> <%= @thesis['assistant']['givenName'] %></p>
<% end %>
<% end %>