Implement a basic detail page for projects
This commit is contained in:
parent
bba13f249c
commit
9c76ce0553
14
app/views/crawlers/projects_crawler/show_detail.html.erb
Normal file
14
app/views/crawlers/projects_crawler/show_detail.html.erb
Normal 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 %>
|
||||||
Loading…
x
Reference in New Issue
Block a user