mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
Merge pull request #1430 from Ducz0r/lm-sci-2902-fix-3
Add force_encoding to export all report view template [SCI-2902]
This commit is contained in:
commit
2a7eda5db7
1 changed files with 8 additions and 2 deletions
|
@ -2,13 +2,19 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style type="text/css">
|
||||
<%= Rails.application.assets_manifest.find_sources('application.css').first.to_s.html_safe %>
|
||||
<%= Rails.application
|
||||
.assets_manifest
|
||||
.find_sources('application.css')
|
||||
.first
|
||||
.to_s
|
||||
.force_encoding(Encoding::UTF_8)
|
||||
.html_safe %>
|
||||
</style>
|
||||
<title><%= title %></title>
|
||||
</head>
|
||||
<body class='print-report-body'>
|
||||
<div class='print-report'>
|
||||
<%= content.html_safe %>
|
||||
<%= content.force_encoding(Encoding::UTF_8).html_safe %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue