fix: improved UI of certified participants page

This commit is contained in:
Jannat Patel
2025-04-11 18:36:12 +05:30
parent a21020e226
commit cfbe60b731
4 changed files with 47 additions and 88 deletions

View File

@@ -28,7 +28,7 @@ def get_context():
def get_meta(app_path, title, favicon, description):
meta = {}
meta = frappe._dict()
if app_path:
meta = get_meta_from_document(app_path)
@@ -46,7 +46,7 @@ def get_meta(app_path, title, favicon, description):
meta["keywords"] = f"{meta.get('keywords', '')} {row.value}"
elif row.key == "link":
meta["link"] = row.value
print(meta)
if not meta.get("description"):
meta["description"] = description
@@ -273,3 +273,10 @@ def get_meta_from_document(app_path):
"keywords": "All Programs, Programs, Learn",
"link": "/programs",
}
if app_path == "certified-participants":
return {
"title": _("Certified Participants"),
"keywords": "All Certified Participants, Certified Participants, Learn, Certification",
"link": "/certified-participants",
}