This is an automated email from the ASF dual-hosted git repository. gstein pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/steve.git
commit ef344aa160bda4f351bd75f80dc75298d6d269dc Author: Greg Stein <[email protected]> AuthorDate: Fri Sep 26 11:26:18 2025 -0500 Use [title] and add missing pages. --- v3/server/pages.py | 36 ++++++++++++++++++++++---- v3/server/templates/about.ezt | 2 +- v3/server/templates/{profile.ezt => admin.ezt} | 2 +- v3/server/templates/header.ezt | 2 +- v3/server/templates/privacy.ezt | 2 +- v3/server/templates/profile.ezt | 2 +- v3/server/templates/settings.ezt | 2 +- v3/server/templates/{profile.ezt => voter.ezt} | 2 +- 8 files changed, 38 insertions(+), 12 deletions(-) diff --git a/v3/server/pages.py b/v3/server/pages.py index e9f6c4b..d06ff41 100644 --- a/v3/server/pages.py +++ b/v3/server/pages.py @@ -23,19 +23,41 @@ APP = asfquart.APP @APP.get('/') @APP.use_template('templates/home.ezt') async def home_page(): - return { } + return { + 'title': 'Home', + } + + [email protected]('/voter') [email protected]_template('templates/voter.ezt') +async def voter_page(): + return { + 'title': 'Voting', + } + + [email protected]('/admin') [email protected]_template('templates/admin.ezt') +async def admin_page(): + return { + 'title': 'Administration', + } @APP.get('/profile') @APP.use_template('templates/profile.ezt') async def profile_page(): - return { } + return { + 'title': 'Profile', + } @APP.get('/settings') @APP.use_template('templates/settings.ezt') async def settings_page(): - return { } + return { + 'title': 'Settings', + } @APP.get('/sign-out') @@ -47,13 +69,17 @@ async def sign_out(): @APP.get('/privacy') @APP.use_template('templates/privacy.ezt') async def privacy_page(): - return { } + return { + 'title': 'Privacy', + } @APP.get('/about') @APP.use_template('templates/about.ezt') async def about_page(): - return { } + return { + 'title': 'About', + } # Route to serve static files (CSS and JS) diff --git a/v3/server/templates/about.ezt b/v3/server/templates/about.ezt index f7b7a84..4d95432 100644 --- a/v3/server/templates/about.ezt +++ b/v3/server/templates/about.ezt @@ -1,6 +1,6 @@ [include "header.ezt"] <div class="container"> - <h1>Profile</h1> + <h1>[title]</h1> <p> TBD </p> diff --git a/v3/server/templates/profile.ezt b/v3/server/templates/admin.ezt similarity index 83% copy from v3/server/templates/profile.ezt copy to v3/server/templates/admin.ezt index f7b7a84..4d95432 100644 --- a/v3/server/templates/profile.ezt +++ b/v3/server/templates/admin.ezt @@ -1,6 +1,6 @@ [include "header.ezt"] <div class="container"> - <h1>Profile</h1> + <h1>[title]</h1> <p> TBD </p> diff --git a/v3/server/templates/header.ezt b/v3/server/templates/header.ezt index 147723e..17805c4 100644 --- a/v3/server/templates/header.ezt +++ b/v3/server/templates/header.ezt @@ -3,7 +3,7 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>Apache STeVe: Profile</title> + <title>Apache STeVe: [title]</title> <link href="/static/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"> </head> <body> diff --git a/v3/server/templates/privacy.ezt b/v3/server/templates/privacy.ezt index f7b7a84..4d95432 100644 --- a/v3/server/templates/privacy.ezt +++ b/v3/server/templates/privacy.ezt @@ -1,6 +1,6 @@ [include "header.ezt"] <div class="container"> - <h1>Profile</h1> + <h1>[title]</h1> <p> TBD </p> diff --git a/v3/server/templates/profile.ezt b/v3/server/templates/profile.ezt index f7b7a84..4d95432 100644 --- a/v3/server/templates/profile.ezt +++ b/v3/server/templates/profile.ezt @@ -1,6 +1,6 @@ [include "header.ezt"] <div class="container"> - <h1>Profile</h1> + <h1>[title]</h1> <p> TBD </p> diff --git a/v3/server/templates/settings.ezt b/v3/server/templates/settings.ezt index f7b7a84..4d95432 100644 --- a/v3/server/templates/settings.ezt +++ b/v3/server/templates/settings.ezt @@ -1,6 +1,6 @@ [include "header.ezt"] <div class="container"> - <h1>Profile</h1> + <h1>[title]</h1> <p> TBD </p> diff --git a/v3/server/templates/profile.ezt b/v3/server/templates/voter.ezt similarity index 83% copy from v3/server/templates/profile.ezt copy to v3/server/templates/voter.ezt index f7b7a84..4d95432 100644 --- a/v3/server/templates/profile.ezt +++ b/v3/server/templates/voter.ezt @@ -1,6 +1,6 @@ [include "header.ezt"] <div class="container"> - <h1>Profile</h1> + <h1>[title]</h1> <p> TBD </p>
