webapp/templates/default/module/rooms.html.twig

53 lines
2.8 KiB
Twig
Raw Normal View History

<form name="rooms" action="{{ path('room_index', { mode : request.get('mode') }) }}" method="get">
<input type="text" name="namespace" value="{{ request.get('namespace') }}" placeholder="{{ 'join room by kevacoin namespace...' | trans }}" />
2023-12-05 03:16:06 +00:00
</form>
2023-12-05 15:51:14 +00:00
{% if list %}
{% for i, namespace in list %}
2023-12-05 15:51:14 +00:00
{% if i %}&bull;{% endif %}
<h2>
{% if namespace == request.get('namespace') %}
{{ namespace | keva_namespace_value }}
2023-12-05 15:51:14 +00:00
{% else %}
<a href="{{ path('room_namespace', { mode : request.get('mode'), namespace : namespace, _fragment : 'latest' }) }}">{{ namespace | keva_namespace_value }}</a>
2023-12-05 15:51:14 +00:00
{% endif %}
</h2>
2023-12-06 08:02:02 +00:00
<sup>
2023-12-10 08:50:32 +00:00
<a href="{{ path('room_namespace', { namespace : namespace, feed : 'rss' }) }}" title="{{ 'RSS' | trans }}" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
2023-12-06 08:02:02 +00:00
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2m0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2m.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>
</svg></a>
</sup>
2023-12-05 15:51:14 +00:00
{% endfor %}
2023-12-09 17:31:54 +00:00
{% endif %}
{% if list %}
&bull;
2023-12-11 17:38:00 +00:00
{% endif %}
<h2>
2023-12-19 22:03:16 +00:00
<i>
{% if 'room_list' == request.get('_route') %}
{{ 'rooms' | trans }}
{% else %}
<a href="{{ path('room_list', { mode : request.get('mode') }) }}">{{ 'rooms' | trans }}</a>
{% endif %}
</i>
2023-12-11 17:38:00 +00:00
</h2>
<sup>
<a href="{{ path('room_list', { feed : 'rss' }) }}" title="{{ 'RSS' | trans }}" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2m0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2m.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>
</svg></a>
</sup>
&bull;
2023-12-19 22:03:16 +00:00
<h2>
<i>
{% if 'user_list' == request.get('_route') %}
{{ 'users' | trans }}
{% else %}
<a href="{{ path('user_list', { mode : request.get('mode') }) }}">{{ 'users' | trans }}</a>
{% endif %}
</i>
</h2>
<sup>
<a href="{{ path('user_list', { feed : 'rss' }) }}" title="{{ 'RSS' | trans }}" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2m0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2m.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>
</svg></a>
</sup>
2023-12-11 17:38:00 +00:00
<hr />