clearwing

changeset 225:62245bc577d1

..
author Stelios <stv@roe.ac.uk>
date Sun Aug 26 16:57:46 2018 +0300 (23 months ago)
parents 1e706591caff
children 163151c72008
files src/freeform_sql/misc.py
line diff
     1.1 --- a/src/freeform_sql/misc.py	Sun Aug 26 16:16:05 2018 +0300
     1.2 +++ b/src/freeform_sql/misc.py	Sun Aug 26 16:57:46 2018 +0300
     1.3 @@ -866,7 +866,7 @@
     1.4      
     1.5      
     1.6          if query_results_id!="" and query_results_id!=None:
     1.7 -            query_id_content = '<span style="height:33px;text-align:left;margin-left:20px;font-size:13px;color:#C2BEAD">Query ID <a id="toggle_query_info">[+]</a><a id="toggle_query_info_help">[?]</a><span id="toggle_query_info_div" style="display:none">'+ query_results_id.split("/")[-1]  + '</span></span><br>' 
     1.8 +            query_id_content = '<div class="sub_button toggle_metadata"><a id="toggle_metadata">Metadata</a></div><span style="height:33px;text-align:left;margin-left:20px;font-size:13px;color:#C2BEAD">Query ID <a id="toggle_query_info">[+]</a><a id="toggle_query_info_help">[?]</a><span id="toggle_query_info_div" style="display:none">'+ query_results_id.split("/")[-1]  + '</span></span><br>' 
     1.9          else :
    1.10              query_id_content = ""
    1.11          
    1.12 @@ -881,8 +881,8 @@
    1.13              tap_endpoint=get_info(query_results_id)["results"]["table"]
    1.14              tap_endpoint=get_parent_workspace(get_parent_workspace(tap_endpoint))
    1.15              if tap_endpoint!="" and query!="" and mode=='adql':
    1.16 -                content = '<span style="height:33px;text-align:left;float:right;font-size:12px;color:#C2BEAD">Query ID <a id="toggle_query_info">[+]</a><a id="toggle_query_info_help">[?]</a><br/><span id="toggle_query_info_div" style="display:none">'+ query_results_id.split("/")[-1]  + '</span></span>'
    1.17 -                content += '<form style="float:left;z-index:100;position: relative;" class="launch_viewer" action="' + survey_prefix + '/viewer" method="post" target="_blank"><input type="hidden" name="query" value="'+ string_functions.encode(query) +'"/><input type="hidden" name="cols" value="'+ html_functions.escape(json.dumps(cols)) +'"/><input type="hidden" name="filepath" id="temp_file" value="'+ pathname +'"/><input type="hidden" name="tap_endpoint" value="'+ tap_endpoint +'"/>'
    1.18 +                content = '<div class="sub_button toggle_metadata"><a id="toggle_metadata">Metadata</a></div><span style="height:33px;text-align:left;float:right;font-size:12px;color:#C2BEAD">Query ID <a id="toggle_query_info">[+]</a><a id="toggle_query_info_help">[?]</a><br/><span id="toggle_query_info_div" style="display:none">'+ query_results_id.split("/")[-1]  + '</span></span>'
    1.19 +                content += '<form style="float:right;margin-right:120px;z-index:100;position: relative;" class="launch_viewer" action="' + survey_prefix + '/viewer" method="post" target="_blank"><input type="hidden" name="query" value="'+ string_functions.encode(query) +'"/><input type="hidden" name="cols" value="'+ html_functions.escape(json.dumps(cols)) +'"/><input type="hidden" name="filepath" id="temp_file" value="'+ pathname +'"/><input type="hidden" name="tap_endpoint" value="'+ tap_endpoint +'"/>'
    1.20                  content += '<input type="hidden" name="adql_table" id="adql_table" value="'+ adql_table +'"/>'
    1.21                  content += '<div style="color:white;font-style:italic;width:130px;height:23px;font-size:12px;">Plot Results <input style="margin-left:3px;" type="submit" class="plotter_button" value="" /> </div>'
    1.22