Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Commit 9c9ff6c

Browse files
authored
Merge pull request #979 from omu/fix-pdf-files
Pdf sayfalarının görüntülenmesini sağla
2 parents 35320e9 + 01e6d1d commit 9c9ff6c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ gem 'groupdate'
5555
gem 'pagy'
5656
gem 'simple_form'
5757
gem 'wicked_pdf'
58+
gem 'wkhtmltopdf-binary'
5859

5960
# api
6061
gem 'jbuilder', '~> 2.9'

Gemfile.lock

+2
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ GEM
403403
websocket-extensions (0.1.4)
404404
wicked_pdf (1.4.0)
405405
activesupport
406+
wkhtmltopdf-binary (0.12.4)
406407
xpath (3.2.0)
407408
nokogiri (~> 1.8)
408409
zeitwerk (2.1.9)
@@ -479,6 +480,7 @@ DEPENDENCIES
479480
webmock
480481
webpacker
481482
wicked_pdf
483+
wkhtmltopdf-binary
482484

483485
RUBY VERSION
484486
ruby 2.6.3p62

app/views/calendar_management/calendars/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<td><%= calendar.timezone %></td>
2828
<td><%= full_name(calendar.academic_term) %></td>
2929
<td>
30-
<%= link_to fa_icon('file-pdf-o'), calendar, format: :pdf, class: 'btn btn-outline-primary btn-sm' %>
30+
<%= link_to fa_icon('eye'), calendar, format: :pdf, class: 'btn btn-outline-primary btn-sm' %>
3131
<%= link_to_actions(calendar, except: :show) %>
3232
<%= link_to fa_icon('university', text: t('.assign_to_units')),
3333
[calendar, :units],

0 commit comments

Comments
 (0)