Fix bug.
This commit is contained in:
parent
3c97c85649
commit
8b10901dae
|
@ -157,6 +157,11 @@ class CancerpredictsController < ApplicationController
|
||||||
uid = OrbitHelper.params[:uid] rescue ""
|
uid = OrbitHelper.params[:uid] rescue ""
|
||||||
tags = OrbitHelper.widget_tags
|
tags = OrbitHelper.widget_tags
|
||||||
categories = OrbitHelper.widget_categories || []
|
categories = OrbitHelper.widget_categories || []
|
||||||
|
@table_str = File.read('public/cancer_tool_table_tmp_'+I18n.locale.to_s+'.txt')
|
||||||
|
{
|
||||||
|
"cancerpredict" => [],
|
||||||
|
"extras"=>{"table"=> @table_str}
|
||||||
|
}
|
||||||
end
|
end
|
||||||
def create_first_field
|
def create_first_field
|
||||||
if Cancerpredictfields.where("title"=>(@app_title + "_back")).count == 0
|
if Cancerpredictfields.where("title"=>(@app_title + "_back")).count == 0
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
<script type="text/javascript" src="/assets/jquery.smartmenus.bootstrap.min.js"></script>
|
<script type="text/javascript" src="/assets/jquery.smartmenus.bootstrap.min.js"></script>
|
||||||
<script type="text/javascript" src="/assets/cancer_predict.js"></script>
|
<script type="text/javascript" src="/assets/cancer_predict.js"></script>
|
||||||
{{table}}
|
{{table}}
|
||||||
<link href="/assets/cancer_predict.scss" media="screen" rel="stylesheet">
|
<%= stylesheet_link_tag "cancer_predict", media: "screen" %>
|
||||||
<link href="/assets/bootstrap.min.print.css" media="print" rel="stylesheet">
|
<%= stylesheet_link_tag "bootstrap.min.print", media: "print" %>
|
||||||
<link href="/assets/cancer_predict_print.scss" media="print" rel="stylesheet">
|
<%= stylesheet_link_tag "cancer_predict_print", media: "print" %>
|
|
@ -2,6 +2,6 @@
|
||||||
<script type="text/javascript" src="/assets/jquery.smartmenus.bootstrap.min.js"></script>
|
<script type="text/javascript" src="/assets/jquery.smartmenus.bootstrap.min.js"></script>
|
||||||
<script type="text/javascript" src="/assets/cancer_predict.js"></script>
|
<script type="text/javascript" src="/assets/cancer_predict.js"></script>
|
||||||
{{table}}
|
{{table}}
|
||||||
<link href="/assets/cancer_predict.scss" media="screen" rel="stylesheet">
|
<%= stylesheet_link_tag "cancer_predict", media: "screen" %>
|
||||||
<%= stylesheet_link_tag "bootstrap.min.print", media: "print" %>
|
<%= stylesheet_link_tag "bootstrap.min.print", media: "print" %>
|
||||||
<%= stylesheet_link_tag "cancer_predict_print", media: "print" %>
|
<%= stylesheet_link_tag "cancer_predict_print", media: "print" %>
|
Loading…
Reference in New Issue