diff options
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.coffee | 5 | ||||
-rw-r--r-- | wqflask/wqflask/static/new/javascript/show_trait.js | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.coffee b/wqflask/wqflask/static/new/javascript/show_trait.coffee index 04d55be7..eb87cf04 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.coffee +++ b/wqflask/wqflask/static/new/javascript/show_trait.coffee @@ -161,7 +161,10 @@ $ -> for row in Stat_Table_Rows console.log("rowing") row_line = """<tr>""" - row_line += """<td id="#{ row.vn }">#{ row.pretty }</td>""" + if row.url? + row_line += """<td id="#{ row.vn }"><a href="#{row.url }">#{ row.pretty }</a></td>""" + else + row_line += """<td id="#{ row.vn }">#{ row.pretty }</td>""" console.log("box - js_data.sample_group_types:", js_data.sample_group_types) for own key, value of js_data.sample_group_types console.log("apple key:", key) diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index 1037c890..ff705ea5 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -172,7 +172,11 @@ row = Stat_Table_Rows[_i]; console.log("rowing"); row_line = "<tr>"; - row_line += "<td id=\"" + row.vn + "\">" + row.pretty + "</td>"; + if (row.url != null) { + row_line += "<td id=\"" + row.vn + "\"><a href=\"" + row.url + "\">" + row.pretty + "</a></td>"; + } else { + row_line += "<td id=\"" + row.vn + "\">" + row.pretty + "</td>"; + } console.log("box - js_data.sample_group_types:", js_data.sample_group_types); _ref1 = js_data.sample_group_types; for (key in _ref1) { |