Browse Source

replace static KevaChat string with .env app name

main
ghost 11 months ago
parent
commit
2554d2dd95
  1. 2
      templates/default/layout.html.twig
  2. 2
      templates/default/room/index.html.twig
  3. 2
      templates/default/room/index.rss.twig
  4. 2
      templates/default/room/list.html.twig
  5. 2
      templates/default/room/list.rss.twig
  6. 2
      templates/default/user/join.html.twig
  7. 2
      templates/default/user/login.html.twig

2
templates/default/layout.html.twig

@ -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 %}">

2
templates/default/room/index.html.twig

@ -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) }}

2
templates/default/room/index.rss.twig

@ -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>

2
templates/default/room/list.html.twig

@ -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>

2
templates/default/room/list.rss.twig

@ -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>

2
templates/default/user/join.html.twig

@ -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') %}

2
templates/default/user/login.html.twig

@ -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') %}

Loading…
Cancel
Save