Implement a basic detail page for projects
This commit is contained in:
@@ -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 %>
|
||||||
Reference in New Issue
Block a user