From 28145f910c4179f8e84aa7fa3e250dea292439c5 Mon Sep 17 00:00:00 2001 From: Zachary Sloan Date: Fri, 17 Oct 2014 20:34:38 +0000 Subject: Added reference, policies, and links pages Improved the appearance of the header menu and "title bar" --- wqflask/base/data_set.py | 2 + wqflask/secure_server.py | 2 +- .../wqflask/static/packages/bootstrap/css/docs.css | 11 ++--- wqflask/wqflask/templates/base.html | 4 +- wqflask/wqflask/templates/search_result_page.html | 49 +++++++++++++++++++++- wqflask/wqflask/user_manager.py | 17 ++++++++ wqflask/wqflask/views.py | 12 ++++++ 7 files changed, 87 insertions(+), 10 deletions(-) diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index 3fb7203d..685cd648 100755 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -699,6 +699,8 @@ class PhenotypeDataSet(DataSet): if not this_trait.year.isdigit(): this_trait.pubmed_text = "N/A" + else: + this_trait.pubmed_text = this_trait.year if this_trait.pubmed_id: this_trait.pubmed_link = webqtlConfig.PUBMEDLINK_URL % this_trait.pubmed_id diff --git a/wqflask/secure_server.py b/wqflask/secure_server.py index d5f1a291..5595aad9 100755 --- a/wqflask/secure_server.py +++ b/wqflask/secure_server.py @@ -72,7 +72,7 @@ if __name__ == '__main__': app.run(host='0.0.0.0', - port=app.config['SERVER_PORT'], + port=5002, use_debugger=False, threaded=True, use_reloader=True) diff --git a/wqflask/wqflask/static/packages/bootstrap/css/docs.css b/wqflask/wqflask/static/packages/bootstrap/css/docs.css index 967989a7..7af23b4c 100755 --- a/wqflask/wqflask/static/packages/bootstrap/css/docs.css +++ b/wqflask/wqflask/static/packages/bootstrap/css/docs.css @@ -27,7 +27,8 @@ h3 code { -------------------------------------------------- */ body > .navbar { - font-size: 13px; + font-size: 16px; + font-weight: bold; } /* Change the docs' brand */ @@ -89,7 +90,7 @@ hr.soften { ------------------------- */ .jumbotron { position: relative; - padding: 40px 0; + padding: 0px 0; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075); @@ -112,7 +113,7 @@ hr.soften { line-height: 1; } .jumbotron p { - font-size: 24px; + font-size: 20px; font-weight: 300; line-height: 30px; margin-bottom: 30px; @@ -238,7 +239,7 @@ hr.soften { border-bottom: 1px solid #ddd; } .subhead h1 { - font-size: 60px; + font-size: 40px; } .subhead p { margin-bottom: 20px; @@ -925,7 +926,7 @@ form.bs-docs-example { /* Downsize the jumbotrons */ .jumbotron h1 { - font-size: 60px; + font-size: 40px; } .jumbotron p, .jumbotron .btn { diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index 48078670..b989294a 100755 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -77,7 +77,7 @@