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,6 +1,8 @@
<% if @course != nil %>
<%-# TODO parse more fields and style them appropriately -%>
<h2>Course: <%= @course['title']['de'] %></h2>
<%= button_to "PRINT", '#', onclick: "print()" %>
<h5><%= @course['courseType'] %> <%= @course['semesterCode'] %>, <%= @course['weeklyHours'] %> SWS, <%= @course['instituteCode'] %> <%= @course['instituteName']['de'] %> </h5>
<%= button_to 'Add to favorites', action: :add_to_fav, number: @course['courseNumber'], semester: @course['semesterCode'] %>
<% if @lecturers_names != nil %>