trying to variablise the title of the blank page
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -42,7 +42,7 @@ def redirect_to_key(request,key):
|
||||
value = r.get(key)
|
||||
if value == None:
|
||||
print(key+" is not setup, displaying default page")
|
||||
return render(request, 'blank_page.html',{})
|
||||
return render(request, 'blank_page.html', {'title': key})
|
||||
else:
|
||||
value_extracted = str(value.decode('utf-8'))
|
||||
print(key+" is setup to : "+value_extracted)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="icon" type="image/x-icon" href="https://cdn-icons-png.flaticon.com/512/6402/6402576.png">
|
||||
<title>Streaming</title>
|
||||
<title>{{ title }}</title>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user