From cc5bee2955a60eb96a1ef87b81b8586892707874 Mon Sep 17 00:00:00 2001 From: ecmelkytz Date: Tue, 27 Aug 2019 13:08:20 +0300 Subject: [PATCH 1/2] Add wkhtmltopdf-binary gem --- Gemfile | 1 + Gemfile.lock | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 2b1cf95c4..5f18f1c70 100644 --- a/Gemfile +++ b/Gemfile @@ -51,6 +51,7 @@ gem 'groupdate' gem 'pagy' gem 'simple_form' gem 'wicked_pdf' +gem 'wkhtmltopdf-binary' # api gem 'jbuilder', '~> 2.9' diff --git a/Gemfile.lock b/Gemfile.lock index 41fdaa440..6a708780d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -403,6 +403,7 @@ GEM websocket-extensions (0.1.4) wicked_pdf (1.4.0) activesupport + wkhtmltopdf-binary (0.12.4) xpath (3.2.0) nokogiri (~> 1.8) zeitwerk (2.1.9) @@ -478,6 +479,7 @@ DEPENDENCIES webmock webpacker wicked_pdf + wkhtmltopdf-binary RUBY VERSION ruby 2.6.3p62 From 01bdb2fb77ccf88989e24301d9ae8585fd00f0ed Mon Sep 17 00:00:00 2001 From: ecmelkytz Date: Tue, 27 Aug 2019 13:08:43 +0300 Subject: [PATCH 2/2] Change icon --- app/views/calendar_management/calendars/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/calendar_management/calendars/index.html.erb b/app/views/calendar_management/calendars/index.html.erb index 244fe519b..b42fbe9fd 100644 --- a/app/views/calendar_management/calendars/index.html.erb +++ b/app/views/calendar_management/calendars/index.html.erb @@ -27,7 +27,7 @@ <%= calendar.timezone %> <%= full_name(calendar.academic_term) %> - <%= link_to fa_icon('file-pdf-o'), calendar, format: :pdf, class: 'btn btn-outline-primary btn-sm' %> + <%= link_to fa_icon('eye'), calendar, format: :pdf, class: 'btn btn-outline-primary btn-sm' %> <%= link_to_actions(calendar, except: :show) %> <%= link_to fa_icon('university', text: t('.assign_to_units')), [calendar, :units],