add print button to all detail views
This commit is contained in:
parent
ca38d7260d
commit
9cc357fb17
@ -1,6 +1,8 @@
|
|||||||
<% if @course != nil %>
|
<% if @course != nil %>
|
||||||
<%-# TODO parse more fields and style them appropriately -%>
|
<%-# TODO parse more fields and style them appropriately -%>
|
||||||
<h2>Course: <%= @course['title']['de'] %></h2>
|
<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>
|
<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'] %>
|
<%= button_to 'Add to favorites', action: :add_to_fav, number: @course['courseNumber'], semester: @course['semesterCode'] %>
|
||||||
<% if @lecturers_names != nil %>
|
<% if @lecturers_names != nil %>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<% if @person != nil %>
|
<% if @person != nil %>
|
||||||
<h2>Person: <%= @person['first_name'] %> <%= @person['last_name'] %></h2>
|
<h2>Person: <%= @person['first_name'] %> <%= @person['last_name'] %></h2>
|
||||||
|
<%= button_to "PRINT", '#', onclick: "print()" %>
|
||||||
|
|
||||||
<div class="profile-picture">
|
<div class="profile-picture">
|
||||||
<% if @person['picture_uri'] != nil %>
|
<% if @person['picture_uri'] != nil %>
|
||||||
<%= image_tag @host + @person['picture_uri'] %>
|
<%= image_tag @host + @person['picture_uri'] %>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<% if @project != nil %>
|
<% if @project != nil %>
|
||||||
<h2>Project: <%= @project['titleDe'] %></h2>
|
<h2>Project: <%= @project['titleDe'] %></h2>
|
||||||
|
<%= button_to "PRINT", '#', onclick: "print()" %>
|
||||||
|
|
||||||
<h5><%= @project['contractBegin'] %> - <%= @project['contractEnd'] %></h5>
|
<h5><%= @project['contractBegin'] %> - <%= @project['contractEnd'] %></h5>
|
||||||
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @project['titleDe'] %>
|
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @project['titleDe'] %>
|
||||||
<% if @project['abstractDe'] != nil %>
|
<% if @project['abstractDe'] != nil %>
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<% if @thesis != nil %>
|
<% if @thesis != nil %>
|
||||||
<h2>Thesis: <%= @thesis['title']['de'] %></h2>
|
<h2>Thesis: <%= @thesis['title']['de'] %></h2>
|
||||||
|
<%= button_to "PRINT", '#', onclick: "print()" %>
|
||||||
|
|
||||||
<h5><%= @thesis['thesisType'] %>, <%= @thesis['instituteCode'] %> <%= @thesis['instituteName']['de'] %></h5>
|
<h5><%= @thesis['thesisType'] %>, <%= @thesis['instituteCode'] %> <%= @thesis['instituteName']['de'] %></h5>
|
||||||
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @thesis['title']['de'] %>
|
<%= button_to 'Add to favorites', action: :add_to_fav, id: @id, title: @thesis['title']['de'] %>
|
||||||
<% if @thesis['advisor'] != nil %>
|
<% if @thesis['advisor'] != nil %>
|
||||||
|
|||||||
@ -4,5 +4,5 @@
|
|||||||
<%= link_to 'Theses', favorites_theses_url %>
|
<%= link_to 'Theses', favorites_theses_url %>
|
||||||
<%= link_to 'Projects', favorites_projects_url %>
|
<%= link_to 'Projects', favorites_projects_url %>
|
||||||
|
|
||||||
<%= link_to "Print", '#', onclick: "print()" %>
|
<%= link_to "PRINT", '#', onclick: "print()" %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user