Skip to content

Commit

Permalink
Github
Browse files Browse the repository at this point in the history
  • Loading branch information
woodthom2 committed May 31, 2023
1 parent 69a040a commit d95b88f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions front_end/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,20 @@
output=[Output("login-button", "style"),
Output("logout-button", "style"),
Output("server-div", "style"),
Output("export_pdf", "style")
Output("export_pdf", "style"),
Output("github", "style")
],
inputs=[Input("location", "href")]
)
def show_hide_login_button(location):
print ("Location is", location)
if "nl" in location:
return [{'display': 'none'}, {'display': 'none'}, {'display': 'none'}, {'display': 'none'}]
return [{'display': 'none'}, {'display': 'none'}, {'display': 'none'}, {'display': 'none'}, {'display': 'none'}]
auth_user = flask.request.cookies.get('AUTH-USER')
if auth_user is None:
return [{'display': 'block'}, {'display': 'none'}, {'display': 'none'}, {}]
return [{'display': 'block'}, {'display': 'none'}, {'display': 'none'}, {}, {}]
else:
return [{'display': 'none'}, {'display': 'block'}, {'display': 'block'}, {}]
return [{'display': 'none'}, {'display': 'block'}, {'display': 'block'}, {}, {}]



Expand Down
2 changes: 1 addition & 1 deletion front_end/layout/body.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@
html.A(["Fast Data Science"], href="https://fastdatascience.com", target="fds"),
". ",
html.A(["View source code on Github"], href="https://github.com/fastdatascience/clinical_trial_risk",
target="github"),
target="github", id="github"),
html.Br(),
html.Div(["How to cite this tool: Wood TA and McNair D. ", html.I(
" Clinical Trial Risk Tool: software application using natural language processing to identify the risk of trial uninformativeness [version 1; peer review: awaiting peer review]."),
Expand Down

0 comments on commit d95b88f

Please sign in to comment.