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 @person != nil %>
<h2>Person: <%= @person['first_name'] %> <%= @person['last_name'] %></h2>
<%= button_to "PRINT", '#', onclick: "print()" %>
<div class="profile-picture">
<% if @person['picture_uri'] != nil %>
<%= image_tag @host + @person['picture_uri'] %>