diff options
author | Frederick Muriuki Muriithi | 2023-06-19 08:37:23 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-06-20 13:36:50 +0300 |
commit | 30d2d8c3bea51a705752aaae519ff7b5ab70ba26 (patch) | |
tree | 7c7985720b5fa62fd8b6a893a22608f58eb69b51 /wqflask | |
parent | 286027a1c07c0bf6ca113715f87ee7f1380d09e0 (diff) | |
download | genenetwork2-30d2d8c3bea51a705752aaae519ff7b5ab70ba26.tar.gz |
Remove intermediate blueprint.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/__init__.py | 18 | ||||
-rw-r--r-- | wqflask/wqflask/templates/base.html | 18 | ||||
-rw-r--r-- | wqflask/wqflask/templates/correlation_error_page.html | 8 | ||||
-rw-r--r-- | wqflask/wqflask/templates/correlation_page.html | 28 | ||||
-rw-r--r-- | wqflask/wqflask/templates/loading.html | 6 | ||||
-rw-r--r-- | wqflask/wqflask/templates/loading_corrs.html | 6 | ||||
-rw-r--r-- | wqflask/wqflask/templates/search_result_page.html | 24 | ||||
-rw-r--r-- | wqflask/wqflask/templates/show_trait.html | 30 | ||||
-rw-r--r-- | wqflask/wqflask/templates/show_trait_details.html | 4 | ||||
-rw-r--r-- | wqflask/wqflask/templates/tool_buttons.html | 2 | ||||
-rw-r--r-- | wqflask/wqflask/top_level_routes.py | 22 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 2 |
12 files changed, 80 insertions, 88 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index 3b7551e6..b9ad5c84 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -23,7 +23,14 @@ from wqflask.group_manager import group_management from wqflask.resource_manager import resource_management from wqflask.metadata_edits import metadata_edit -from wqflask.top_level_routes import toplevel +from base.trait import trait_bp +from wqflask.api import api_bp +from wqflask.views import main_views +from wqflask.user_login import ulogin_bp +from wqflask.user_session import usession_bp +from wqflask.collect import collections_bp +from wqflask.partial_correlations_views import pcorrs_bp + from wqflask.api.markdown import glossary_blueprint from wqflask.api.markdown import references_blueprint from wqflask.api.markdown import links_blueprint @@ -83,7 +90,14 @@ def create_app(): app = webqtlConfig.init_app(app) # Registering blueprints - app.register_blueprint(toplevel) + app.register_blueprint(trait_bp) + app.register_blueprint(pcorrs_bp) + app.register_blueprint(ulogin_bp) + app.register_blueprint(main_views) + app.register_blueprint(usession_bp) + app.register_blueprint(collections_bp) + app.register_blueprint(api_bp, url_prefix="/api") + app.register_blueprint(glossary_blueprint, url_prefix="/glossary") app.register_blueprint(references_blueprint, url_prefix="/references") app.register_blueprint(links_blueprint, url_prefix="/links") diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index 5a881f51..7cda4bab 100644 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -12,7 +12,7 @@ </script> <link rel="icon" type="image/png" sizes="64x64" href="/static/new/images/CITGLogo.png"> <link rel="apple-touch-icon" type="image/png" sizes="64x64" href="/static/new/images/CITGLogo.png"> - <link REL="stylesheet" TYPE="text/css" href="{{ url_for('toplevel.main_views.css', filename='bootstrap/css/bootstrap.css') }}" /> + <link REL="stylesheet" TYPE="text/css" href="{{ url_for('main_views.css', filename='bootstrap/css/bootstrap.css') }}" /> <link REL="stylesheet" TYPE="text/css" href="/static/new/css/bootstrap-custom.css" /> <link REL="stylesheet" TYPE="text/css" href="/static/new/css/non-responsive.css" /> <link REL="stylesheet" TYPE="text/css" href="/static/new/css/docs.css" /> @@ -30,10 +30,10 @@ border-radius: 1rem; } table.dataTable thead .sorting_asc { - background-image: url({{ url_for("toplevel.main_views.js", filename="DataTables/images/sort_asc_disabled.png") }}); + background-image: url({{ url_for("main_views.js", filename="DataTables/images/sort_asc_disabled.png") }}); } table.dataTable thead .sorting_desc { - background-image: url({{ url_for("toplevel.main_views.js", filename="DataTables/images/sort_desc_disabled.png") }}); + background-image: url({{ url_for("main_views.js", filename="DataTables/images/sort_desc_disabled.png") }}); } @@ -336,8 +336,8 @@ <!-- <button class="btn btn-primary">Save changes</button>--> <!--</div>--> </div> - <script src="{{ url_for('toplevel.main_views.js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> - <script src="{{ url_for('toplevel.main_views.js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> + <script src="{{ url_for('main_views.js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> + <script src="{{ url_for('main_views.js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> <script src="/static/new/javascript/search_autocomplete.js"></script> <script> //http://stackoverflow.com/questions/11521763/bootstrap-scrollspy-not-working @@ -389,11 +389,11 @@ }); </script> - <script src="{{ url_for('toplevel.main_views.js', filename='jquery-cookie/jquery.cookie.js') }}" type="text/javascript"></script> + <script src="{{ url_for('main_views.js', filename='jquery-cookie/jquery.cookie.js') }}" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> - <!-- <script src="{{ url_for('toplevel.main_views.js', filename='jquery-ui/jquery-ui.min.js') }}" type="text/javascript"></script> --> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='colorbox/jquery.colorbox-min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/parsley.min.js') }}"></script> + <!-- <script src="{{ url_for('main_views.js', filename='jquery-ui/jquery-ui.min.js') }}" type="text/javascript"></script> --> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='colorbox/jquery.colorbox-min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/parsley.min.js') }}"></script> {% block js %} {% endblock %} <script type="text/javascript"> diff --git a/wqflask/wqflask/templates/correlation_error_page.html b/wqflask/wqflask/templates/correlation_error_page.html index 34f4c601..be3da15a 100644 --- a/wqflask/wqflask/templates/correlation_error_page.html +++ b/wqflask/wqflask/templates/correlation_error_page.html @@ -2,10 +2,10 @@ {%block title%}Correlation Results{%endblock%} {%block css%} -<link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> -<link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttonsBootstrap/css/buttons.bootstrap.css') }}" /> -<link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css') }}" /> -<link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='fontawesome/css/all.min.css') }}"/> +<link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> +<link rel="stylesheet" type="text/css" href="{{ url_for('main_views.js', filename='DataTablesExtensions/buttonsBootstrap/css/buttons.bootstrap.css') }}" /> +<link rel="stylesheet" type="text/css" href="{{ url_for('main_views.js', filename='DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css') }}" /> +<link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='fontawesome/css/all.min.css') }}"/> <link rel="stylesheet" type="text/css" href="/static/new/css/trait_list.css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" /> {%endblock%} diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index 70b996db..853a6c0a 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -1,10 +1,10 @@ {% extends "base.html" %} {% block title %}Correlation Results{% endblock %} {% block css %} - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttonsBootstrap/css/buttons.bootstrap.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css') }}"> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='fontawesome/css/all.min.css') }}"/> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.js', filename='DataTablesExtensions/buttonsBootstrap/css/buttons.bootstrap.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.js', filename='DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css') }}"> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='fontawesome/css/all.min.css') }}"/> <link rel="stylesheet" type="text/css" href="/static/new/css/trait_list.css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" /> {% endblock %} @@ -131,16 +131,16 @@ {% endblock %} {% block js %} - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/md5.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/underscore.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='jszip/jszip.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/underscore.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttons/js/dataTables.buttons.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttons/js/buttons.html5.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='fontawesome/js/all.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/md5.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/underscore.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='jszip/jszip.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/underscore.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/buttons/js/dataTables.buttons.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/buttons/js/buttons.html5.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='fontawesome/js/all.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> <script type="text/javascript" src="/static/new/javascript/search_results.js"></script> <script type="text/javascript" src="/static/new/javascript/table_functions.js"></script> <script type="text/javascript" src="/static/new/javascript/create_datatable.js"></script> diff --git a/wqflask/wqflask/templates/loading.html b/wqflask/wqflask/templates/loading.html index 35a58586..3d4c4643 100644 --- a/wqflask/wqflask/templates/loading.html +++ b/wqflask/wqflask/templates/loading.html @@ -1,5 +1,5 @@ <title>Loading {{ start_vars.tool_used }} Results</title> -<link REL="stylesheet" TYPE="text/css" href="{{ url_for('toplevel.main_views.css', filename='bootstrap/css/bootstrap.css') }}" /> +<link REL="stylesheet" TYPE="text/css" href="{{ url_for('main_views.css', filename='bootstrap/css/bootstrap.css') }}" /> <link REL="stylesheet" TYPE="text/css" href="/static/new/css/bootstrap-custom.css" /> <form method="post" action="" name="loading_form" id="loading_form" class="form-horizontal"> {% for key, value in start_vars.items() %} @@ -100,8 +100,8 @@ </div> </div> </form> -<script src="{{ url_for('toplevel.main_views.js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> -<script src="{{ url_for('toplevel.main_views.js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> +<script src="{{ url_for('main_views.js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> +<script src="{{ url_for('main_views.js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> <script type="text/javascript"> $('#show_full_diff').click(function() { if ($('#diff_table_container').is(':visible')){ diff --git a/wqflask/wqflask/templates/loading_corrs.html b/wqflask/wqflask/templates/loading_corrs.html index 4772b8ce..bfcbcf57 100644 --- a/wqflask/wqflask/templates/loading_corrs.html +++ b/wqflask/wqflask/templates/loading_corrs.html @@ -8,7 +8,7 @@ <meta http-equiv="refresh" content="5"> <link rel="stylesheet" type="text/css" - href="{{url_for('toplevel.main_views.css', filename='bootstrap/css/bootstrap.css')}}" /> + href="{{url_for('main_views.css', filename='bootstrap/css/bootstrap.css')}}" /> <link rel="stylesheet" type="text/css" href="/static/new/css/bootstrap-custom.css" /> </head> @@ -21,8 +21,8 @@ </div> </div> - <script src="{{ url_for('toplevel.main_views.js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> - <script src="{{ url_for('toplevel.main_views.js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> + <script src="{{ url_for('main_views.js', filename='jquery/jquery.min.js') }}" type="text/javascript"></script> + <script src="{{ url_for('main_views.js', filename='bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script> </body> </html> diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index fb92b9ed..15ec75d7 100644 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -1,10 +1,10 @@ {% extends "base.html" %} {% block title %}Search Results{% endblock %} {% block css %} - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='fontawesome/css/font-awesome.min.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css') }}"> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='fontawesome/css/all.min.css') }}"/> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='fontawesome/css/font-awesome.min.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.js', filename='DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css') }}"> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='fontawesome/css/all.min.css') }}"/> <link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" /> <link rel="stylesheet" type="text/css" href="static/new/css/trait_list.css" /> @@ -153,14 +153,14 @@ {% endblock %} {% block js %} - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/md5.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='jszip/jszip.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttons/js/dataTables.buttons.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/buttons/js/buttons.colVis.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='fontawesome/js/all.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/md5.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='jszip/jszip.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/buttons/js/dataTables.buttons.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/buttons/js/buttons.colVis.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='fontawesome/js/all.min.js') }}"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/search_results.js"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/table_functions.js"></script> diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index 3b3a8ac7..414a6ec0 100644 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -8,9 +8,9 @@ <link rel="stylesheet" type="text/css" href="/static/new/css/box_plot.css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/prob_plot.css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/scatter-matrix.css" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='d3-tip/d3-tip.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url_for('toplevel.main_views.css', filename='nouislider/nouislider.min.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='d3-tip/d3-tip.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='DataTables/css/jquery.dataTables.css') }}" /> + <link rel="stylesheet" type="text/css" href="{{ url_for('main_views.css', filename='nouislider/nouislider.min.css') }}" /> <link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/trait_list.css" /> <link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" /> @@ -139,13 +139,13 @@ $('.collapse').collapse() </script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='d3js/d3.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/underscore.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='underscore-string/underscore.string.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='d3-tip/d3-tip.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='js_alt/jstat.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='shapiro-wilk/shapiro-wilk.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='plotly/plotly.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='d3js/d3.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/underscore.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='underscore-string/underscore.string.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='d3-tip/d3-tip.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='js_alt/jstat.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='shapiro-wilk/shapiro-wilk.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='plotly/plotly.min.js') }}"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/colorbrewer.js"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/stats.js"></script> @@ -154,11 +154,11 @@ <script language="javascript" type="text/javascript" src="/static/new/javascript/compare_traits_scatterplot.js"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTables/js/jquery.dataTables.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/plugins/sorting/scientific.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> - <script language="javascript" type="text/javascript" src="{{ url_for('toplevel.main_views.js', filename='nouislider/nouislider.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTables/js/jquery.dataTables.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/plugins/sorting/scientific.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> + <script language="javascript" type="text/javascript" src="{{ url_for('main_views.js', filename='nouislider/nouislider.js') }}"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/table_functions.js"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/create_datatable.js"></script> <script language="javascript" type="text/javascript" src="/static/new/javascript/initialize_show_trait_tables.js"></script> diff --git a/wqflask/wqflask/templates/show_trait_details.html b/wqflask/wqflask/templates/show_trait_details.html index e8cedb95..795267dd 100644 --- a/wqflask/wqflask/templates/show_trait_details.html +++ b/wqflask/wqflask/templates/show_trait_details.html @@ -63,7 +63,7 @@ {{ dataset.fullname }} </a> <br/> - <a href="{{ url_for('toplevel.main_views.get_dataset', name=dataset.name) }}" target="_blank"> + <a href="{{ url_for('main_views.get_dataset', name=dataset.name) }}" target="_blank"> GN2 Link: {{ dataset.fullname }} </a> </td> @@ -229,7 +229,7 @@ {% endif %} {% if this_trait.symbol != None %} <button type="button" class="btn btn-default" title="Write or review comments about this gene" onclick="window.open('http://gn1.genenetwork.org/webqtl/main.py?FormID=geneWiki&symbol={{ this_trait.symbol }}', '_blank')">(GN1) GeneWiki</button> - <button type="button" class="btn btn-default" title="Write or review comments about this gene" onclick="window.open('{{ url_for('toplevel.main_views.display_generif_page', symbol=this_trait.symbol) }}', '_blank')">(GN2) GeneWiki</button> + <button type="button" class="btn btn-default" title="Write or review comments about this gene" onclick="window.open('{{ url_for('main_views.display_generif_page', symbol=this_trait.symbol) }}', '_blank')">(GN2) GeneWiki</button> {% if dataset.group.species == "mouse" or dataset.group.species == "rat" %} <button type="button" class="btn btn-default" title="View SNPs and Indels" onclick="window.open('/snp_browser?first_run=true&species={{ dataset.group.species }}&gene_name={{ this_trait.symbol }}&limit_strains=on', '_blank')">SNPs</button> {% endif %} diff --git a/wqflask/wqflask/templates/tool_buttons.html b/wqflask/wqflask/templates/tool_buttons.html index 95064dbb..50e26486 100644 --- a/wqflask/wqflask/templates/tool_buttons.html +++ b/wqflask/wqflask/templates/tool_buttons.html @@ -32,7 +32,7 @@ <button id="partial-correlations" class="btn btn-primary submit_special" - data-url="{{url_for('toplevel.partial_correlations.partial_correlations')}}" + data-url="{{url_for('partial_correlations.partial_correlations')}}" title="Run partial correlations with the selected traits"> Partial Correlations </button> diff --git a/wqflask/wqflask/top_level_routes.py b/wqflask/wqflask/top_level_routes.py deleted file mode 100644 index b733d955..00000000 --- a/wqflask/wqflask/top_level_routes.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Top-Level routes.""" -from flask import Blueprint - -from .api import api_bp -from .views import main_views -from base.trait import trait_bp -from .user_login import ulogin_bp -from .user_session import usession_bp -from .collect import collections_bp -from .partial_correlations_views import pcorrs_bp - -# oauth2 = Blueprint("oauth2", __name__, template_folder="templates/oauth2") - -toplevel = Blueprint("toplevel", __name__) - -toplevel.register_blueprint(trait_bp) -toplevel.register_blueprint(pcorrs_bp) -toplevel.register_blueprint(ulogin_bp) -toplevel.register_blueprint(main_views) -toplevel.register_blueprint(usession_bp) -toplevel.register_blueprint(collections_bp) -toplevel.register_blueprint(api_bp, url_prefix="/api") diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 95019219..3ce7d0cb 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -876,7 +876,7 @@ def corr_compute_page(): }) jobs.run(job_id, get_setting(app, "REDIS_URL")) - return redirect(url_for("toplevel.main_views.corr_compute_page", job_id=str(job_id))) + return redirect(url_for("main_views.corr_compute_page", job_id=str(job_id))) job = jobs.job( rconn, UUID(request.args.get("job_id"))).maybe( |