KevaChat is distributed chat platform for open, uncensored and privacy respectable communication with permanent data storage in blockchain.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<form name="room" action="{{ path('room_namespace', { namespace : room.namespace }) }}" 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 namespace == room.namespace %}
|
|
|
|
{{ name }}
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ path('room_namespace', { namespace : 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 %}
|
|
|
|
#}
|