replace static KevaChat string with .env app name

This commit is contained in:
ghost 2023-12-19 08:56:59 +02:00
parent bdfc6420ae
commit 2554d2dd95
7 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block head_title_content %}{{ 'KevaChat' | trans }}{% endblock %}</title> <title>{% block head_title_content %}{{ app.name }}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{{ url('room_index') }}css/default.css?{{ app.version }}"/> <link rel="stylesheet" type="text/css" href="{{ url('room_index') }}css/default.css?{{ app.version }}"/>
</head> </head>
<body data-mode="{% if request.get('mode') %}stream{% else %}webapp{% endif %}"> <body data-mode="{% if request.get('mode') %}stream{% else %}webapp{% endif %}">

View File

@ -48,7 +48,7 @@
{% endmacro %} {% endmacro %}
{% from _self import recursive_post_tree %} {% from _self import recursive_post_tree %}
{% extends 'default/layout.html.twig' %} {% extends 'default/layout.html.twig' %}
{% block head_title_content %}{{ request.get('namespace') | keva_namespace_value }} - {{ 'KevaChat' | trans }}{% endblock %} {% block head_title_content %}{{ request.get('namespace') | keva_namespace_value }} - {{ app.name }}{% endblock %}
{% block main_content %} {% block main_content %}
{% if tree %} {% if tree %}
{{ recursive_post_tree(request.get('mode'), request.get('namespace'), tree) }} {{ recursive_post_tree(request.get('mode'), request.get('namespace'), tree) }}

View File

@ -2,7 +2,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel> <channel>
<atom:link href="{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : 'latest' }) }}" rel="self" type="application/rss+xml"></atom:link> <atom:link href="{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : 'latest' }) }}" rel="self" type="application/rss+xml"></atom:link>
<title>{{ request.get('namespace') | keva_namespace_value }} - {{ 'KevaChat' | trans }}</title> <title>{{ request.get('namespace') | keva_namespace_value }} - {{ app.name }}</title>
<link>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : 'latest' }) }}</link> <link>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : 'latest' }) }}</link>
{% for post in feed %} {% for post in feed %}
<item> <item>

View File

@ -1,5 +1,5 @@
{% extends 'default/layout.html.twig' %} {% extends 'default/layout.html.twig' %}
{% block head_title_content %}{{ 'Rooms' | trans }} - {{ 'KevaChat' | trans }}{% endblock %} {% block head_title_content %}{{ 'Rooms' | trans }} - {{ app.name }}{% endblock %}
{% block main_content %} {% block main_content %}
{% if list | length %} {% if list | length %}
<ul> <ul>

View File

@ -2,7 +2,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel> <channel>
<atom:link href="{{ url('room_list') }}" rel="self" type="application/rss+xml"></atom:link> <atom:link href="{{ url('room_list') }}" rel="self" type="application/rss+xml"></atom:link>
<title>{{ 'Rooms' | trans }} - {{ 'KevaChat' | trans }}</title> <title>{{ 'Rooms' | trans }} - {{ app.name }}</title>
<link>{{ url('room_list') }}</link> <link>{{ url('room_list') }}</link>
{% for room in list %} {% for room in list %}
<item> <item>

View File

@ -1,5 +1,5 @@
{% extends 'default/layout.html.twig' %} {% extends 'default/layout.html.twig' %}
{% block head_title_content %}{{ 'Join' | trans }} - {{ 'KevaChat' | trans }}{% endblock %} {% block head_title_content %}{{ 'Join' | trans }} - {{ app.name }}{% endblock %}
{% block main_content %} {% block main_content %}
<form name="join" action="{{ path('user_add') }}" method="post"> <form name="join" action="{{ path('user_add') }}" method="post">
{% if request.get('error') %} {% if request.get('error') %}

View File

@ -1,5 +1,5 @@
{% extends 'default/layout.html.twig' %} {% extends 'default/layout.html.twig' %}
{% block head_title_content %}{{ 'Login' | trans }} - {{ 'KevaChat' | trans }}{% endblock %} {% block head_title_content %}{{ 'Login' | trans }} - {{ app.name }}{% endblock %}
{% block main_content %} {% block main_content %}
<form name="login" action="{{ path('user_auth') }}" method="post"> <form name="login" action="{{ path('user_auth') }}" method="post">
{% if request.get('error') %} {% if request.get('error') %}