fix: improved UI of certified participants page
This commit is contained in:
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user