Skip to content

Commit

Permalink
general info on mdims
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrodes committed Dec 30, 2024
1 parent 8764b3f commit 6c0d9db
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apps/wizard/app_pages/dataset_preview/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,18 @@ def st_show_indicator(indicator, indicator_charts):
st.header(f"[{title}]({OWID_ENV.dataset_admin_site(DATASET_ID)})")

with st_horizontal():
if dataset["isPrivate"] == 1:
st_tag("Private", color="blue", icon=":material/lock")
if dataset["isArchived"] == 1:
st_tag("Archived", color="red", icon=":material/delete_forever")

st.markdown(f":material/schedule: Last modified: {dataset['updatedAt'].strftime('%Y-%m-%d')}")
st.markdown(f"{len(indicators)} indicators")
st.markdown(f"{len(df_charts)} charts")

if dataset["isPrivate"] == 1:
st_tag("Private", color="blue", icon=":material/lock")
if dataset["isArchived"] == 1:
st_tag("Archived", color="gray", icon=":material/delete_forever")
# Any mdim?
if any(ind.is_mdim for ind in indicators):
st_tag(tag_name="indicators with dimensions", color="primary", icon=":material/deployed_code")

# 4/ Tabs
tab_indicators, tab_charts = st.tabs(["Indicators", "Charts"])

Expand Down

0 comments on commit 6c0d9db

Please sign in to comment.