Skip to content

Commit

Permalink
Remove popup banner and JS from show request PDFs
Browse files Browse the repository at this point in the history
We need to remove the popup due to WDTK theme using opacity CSS selector
for these elements this is causing the wkhtmltopdf-static command to seg
fault:
> QPixmap: Cannot create a QPixmap when no GUI is being used
> ...
> Segmentation fault

Also need to remove JS from the page as this causes SSL socket errors:
> QSslSocket: cannot resolve ...
> QSslSocket: cannot call unresolved function ...

Fixes #6435
  • Loading branch information
gbp committed Aug 20, 2021
1 parent b616fa3 commit e236cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/layouts/default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@
<div class="entirebody">

<a href="#content" class="show-with-keyboard-focus-only skip-to-link" tabindex="0">Skip to content</a>
<% unless @render_to_string %>
<!-- begin popups -->
<%= render 'general/site_wide_announcement' if site_wide_announcement.present? %>
<div id="country-message">
</div>
<!-- end popups -->
<% end %>
<%= render :partial => 'general/responsive_header' %>

Expand All @@ -81,6 +83,7 @@
<%= render :partial => 'general/responsive_footer' %>
</div>

<% unless @render_to_string %>
<%= render partial: 'ga_code' unless @user&.is_admin? %>
<%= javascript_include_tag "application" %>
Expand Down Expand Up @@ -109,6 +112,7 @@
</script>
<% end %>
<%= content_for :javascript %>
<% end %>
<%= render :partial => 'general/before_body_end' %>

Expand Down

0 comments on commit e236cc3

Please sign in to comment.