Add advisor and assistant names to thesis detail view
This commit is contained in:
parent
b20cccf07b
commit
e359595d0f
@ -2,4 +2,12 @@
|
|||||||
<h2><%= @thesis['title']['de'] %></h2>
|
<h2><%= @thesis['title']['de'] %></h2>
|
||||||
<h5><%= @thesis['thesisType'] %>, <%= @thesis['instituteCode'] %> <%= @thesis['instituteName']['de'] %></h5>
|
<h5><%= @thesis['thesisType'] %>, <%= @thesis['instituteCode'] %> <%= @thesis['instituteName']['de'] %></h5>
|
||||||
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @thesis['title']['de'] %>
|
<%= 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 %>
|
<% end %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user