Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding gdpr notices if provided #314

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies = [
"openpyxl",
"numpy",
"plotly",
"streamlit>=1.31",
"streamlit_extras",
"streamlit-plotly-events",
"matplotlib",
Expand Down
14 changes: 9 additions & 5 deletions webinterface/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ def _preface(self):
unsafe_allow_html=True,
)
st.image("logos/logo_participants/logos_all.png")
st.markdown(
"""
This site is hosted by the BMBF-funded de.NBI Cloud within the German Network for Bioinformatics Infrastructure (de.NBI)
"""
)

# add hosting information if provided
if "hosting" in st.secrets.keys():
st.markdown(st.secrets["hosting"]["information"])

@abstractmethod
def _main_page(self):
Expand All @@ -61,3 +60,8 @@ def _main_page(self):
def _sidebar(self):
"""Format sidebar."""
st.sidebar.image("logos/logo_funding/main_logos_sidebar.png", width=300)

# add gdpr links if provided
if "gdpr_links" in st.secrets.keys():
st.sidebar.page_link(st.secrets["gdpr_links"]["privacy_notice_link"], label="-> privacy notice")
st.sidebar.page_link(st.secrets["gdpr_links"]["legal_notice_link"], label="-> legal notice")
Loading