Implement a basic detail page for projects

This commit is contained in:
Tobias Eidelpes 2020-05-27 17:44:03 +02:00
parent bba13f249c
commit 9c76ce0553

View File

@ -0,0 +1,14 @@
<% if @project != nil %>
<h2><%= @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 %>
<h4>Beschreibung</h4>
<p><%= @project['abstractDe'] %></p>
<% else %>
<% if @project['abstractEn'] != nil %>
<h4>Beschreibung</h4>
<p><%= @project['abstractEn'] %></p>
<% end %>
<% end %>
<% end %>