added TINYWIKI_HOME settings for settings the app-specific homepages of the wiki

This commit is contained in:
2025-12-30 05:40:56 +01:00
parent 14c1d9d978
commit 6243f87732
3 changed files with 10 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class HomeView(View):
page = None
if self.user_can_create_system_pages:
if settings.USE_BOOTSTRAP:
create_tw_home = f"<a class=\"icon-link icon-link-hover\" href={reverse('tinywiki:page', kwargs={'slug': 'tw-home'})}>{_('create a new page with the slug <i>tw-home</i>')}<svg class=\"bi\"><use xlink:href=\"{settings.settings.STATIC_URL + 'tinywiki/icons/bootstrap-icons.svg'}#house-add\" ></use></svg></a>" # noqa: E501
create_tw_home = f"<a class=\"icon-link icon-link-hover\" href={reverse('tinywiki:page', kwargs={'slug': settings.TINYWIKI_HOME})}>{_(f'create a new page with the slug <i>{settings.TINYWIKI_HOME}</i>')}<svg class=\"bi\"><use xlink:href=\"{settings.settings.STATIC_URL + 'tinywiki/icons/bootstrap-icons.svg'}#house-add\" ></use></svg></a>" # noqa: E501
else:
create_tw_home = f"<a href={reverse('tinywiki:page', kwargs={'slug': 'tw-home'})}>{_('create a new page with the slug <i>tw-home</i>')}</a>" # noqa: E501
else: