add print button to all detail views

This commit is contained in:
Pfingstfrosch
2020-06-05 00:41:18 +02:00
parent ca38d7260d
commit 9cc357fb17
5 changed files with 9 additions and 1 deletions
@@ -1,5 +1,7 @@
<% if @thesis != nil %>
<h2>Thesis: <%= @thesis['title']['de'] %></h2>
<%= button_to "PRINT", '#', onclick: "print()" %>
<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 %>