mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-10 14:58:02 +00:00
35 lines
1.0 KiB
Twig
35 lines
1.0 KiB
Twig
<form name="room" action="{{ path('room_index') }}" method="get">
|
|
<input type="text" name="namespace" value="{{ room.namespace }}" placeholder="{{ 'join room by kevacoin namespace...' | trans }}" />
|
|
</form>
|
|
{% if list %}
|
|
{% set i = 0 %}
|
|
{% for namespace, name in list %}
|
|
{% if i %}•{% endif %}
|
|
<h2>
|
|
{% if room.namespace == namespace %}
|
|
{{ name }}
|
|
{% else %}
|
|
<a href="{{ namespace }}">{{ name }}</a>
|
|
{% endif %}
|
|
</h2>
|
|
{% set i = i + 1 %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{# @TODO alternative implementation draft
|
|
{% if room.name %}
|
|
<h1>{{ room.name }}</h1>
|
|
{% endif %}
|
|
{% if list %}
|
|
<ul>
|
|
{% for namespace, name in list %}
|
|
<li>
|
|
{% if room.namespace == namespace %}
|
|
{{ name }}
|
|
{% else %}
|
|
<a href="{{ namespace }}">{{ name }}</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
#} |