set window titles
This commit is contained in:
parent
60767f1463
commit
1c47e088e8
@ -1,5 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import asyncio
|
||||||
|
from functools import partial
|
||||||
from typing import * # type: ignore
|
from typing import * # type: ignore
|
||||||
|
|
||||||
import rio
|
import rio
|
||||||
@ -10,6 +12,10 @@ from .. import components as comps
|
|||||||
|
|
||||||
|
|
||||||
class About(rio.Component):
|
class About(rio.Component):
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Über den Verein")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
return build_page(rio.Column(
|
return build_page(rio.Column(
|
||||||
comps.NewsPost(
|
comps.NewsPost(
|
||||||
|
|||||||
@ -9,6 +9,10 @@ from .. import components as comps
|
|||||||
|
|
||||||
|
|
||||||
class Constitution(rio.Component):
|
class Constitution(rio.Component):
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Satzung")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
return build_page(rio.Column(
|
return build_page(rio.Column(
|
||||||
comps.NewsPost(
|
comps.NewsPost(
|
||||||
|
|||||||
@ -10,6 +10,10 @@ from .. import components as comps
|
|||||||
|
|
||||||
|
|
||||||
class Home(rio.Component):
|
class Home(rio.Component):
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V.")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
return build_page(rio.Column(
|
return build_page(rio.Column(
|
||||||
rio.Rectangle(
|
rio.Rectangle(
|
||||||
|
|||||||
@ -10,6 +10,10 @@ from .. import components as comps
|
|||||||
|
|
||||||
|
|
||||||
class Imprint(rio.Component):
|
class Imprint(rio.Component):
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Impressum")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
return build_page(rio.Column(
|
return build_page(rio.Column(
|
||||||
comps.NewsPost(
|
comps.NewsPost(
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import asyncio
|
||||||
from typing import * # type: ignore
|
from typing import * # type: ignore
|
||||||
|
|
||||||
import rio
|
import rio
|
||||||
@ -9,6 +10,10 @@ from .. import components as comps
|
|||||||
|
|
||||||
|
|
||||||
class Join(rio.Component):
|
class Join(rio.Component):
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Mitglied werden")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
return build_page(rio.Column(
|
return build_page(rio.Column(
|
||||||
comps.NewsPost(
|
comps.NewsPost(
|
||||||
|
|||||||
@ -14,6 +14,10 @@ class Member(rio.Component):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self._database_service = database_service
|
self._database_service = database_service
|
||||||
|
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Mitglieder")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
grid = rio.Grid()
|
grid = rio.Grid()
|
||||||
for i, member in enumerate(self._database_service.get_members()):
|
for i, member in enumerate(self._database_service.get_members()):
|
||||||
|
|||||||
@ -15,6 +15,10 @@ class Pics(rio.Component):
|
|||||||
self._database_service = database_service
|
self._database_service = database_service
|
||||||
self._active_picture: Optional[rio.URL] = None
|
self._active_picture: Optional[rio.URL] = None
|
||||||
|
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Galerie")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
if self._active_picture is None:
|
if self._active_picture is None:
|
||||||
grid = rio.Grid(row_spacing=0.4, column_spacing=0.5, margin_right=1)
|
grid = rio.Grid(row_spacing=0.4, column_spacing=0.5, margin_right=1)
|
||||||
|
|||||||
@ -10,6 +10,10 @@ from .. import components as comps
|
|||||||
|
|
||||||
|
|
||||||
class Privacy(rio.Component):
|
class Privacy(rio.Component):
|
||||||
|
@rio.event.on_populate
|
||||||
|
async def on_populate(self) -> None:
|
||||||
|
await self.session.set_title("EZ GG e.V. - Datenschutz")
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
return build_page(rio.Column(
|
return build_page(rio.Column(
|
||||||
comps.NewsPost(
|
comps.NewsPost(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user