From 5d8a0158ae4794d2e8515d421ded494b7521949d Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 27 Mar 2019 09:43:14 +0800 Subject: [PATCH] =?UTF-8?q?pdf=E5=AF=BC=E5=87=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/pdf.html.erb | 3 +-- app/views/student_work/shixun_work_report.html.erb | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/pdf.html.erb b/app/views/layouts/pdf.html.erb index adf80d61..b20f1c15 100644 --- a/app/views/layouts/pdf.html.erb +++ b/app/views/layouts/pdf.html.erb @@ -11,12 +11,11 @@ <%= call_hook :view_layouts_base_html_head %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'css/edu-common','educoder/edu-main','educoder/edu-all', 'css/edu-public', 'css/font-awesome', 'css/edu-class', 'css/magic-check'%> <%= javascript_heads %> - <%= javascript_include_tag "edu/application", 'educoder/edu_application'%> + <%= javascript_include_tag "edu/application", 'educoder/edu_application'%>
- <%= render_flash_messages %> <%= yield %>
diff --git a/app/views/student_work/shixun_work_report.html.erb b/app/views/student_work/shixun_work_report.html.erb index a7307405..a6f89ce3 100644 --- a/app/views/student_work/shixun_work_report.html.erb +++ b/app/views/student_work/shixun_work_report.html.erb @@ -101,7 +101,9 @@
- <%= render :partial => "student_work/echart_of_shixun_skills" %> + <% unless params[:pdf] %> + <%= render :partial => "student_work/echart_of_shixun_skills" %> + <% end %>