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.
|
|
|
{% extends 'default/layout.html.twig' %}
|
|
|
|
{% block head_title_content %}{{ 'Rooms' | trans }} - {{ 'KevaChat' | trans }}{% endblock %}
|
|
|
|
{% block main_content %}
|
|
|
|
{{
|
|
|
|
render(
|
|
|
|
controller(
|
|
|
|
'App\\Controller\\ModuleController::rooms',
|
|
|
|
{
|
|
|
|
request: request
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
{% if list | length %}
|
|
|
|
<ul>
|
|
|
|
{% for room in list %}
|
|
|
|
<li>
|
|
|
|
<div>
|
|
|
|
<strong>
|
|
|
|
<a href="{{ path('room_namespace', { namespace : room.namespace }) }}">{{ room.namespace | keva_namespace_value }}</a>
|
|
|
|
</strong>
|
|
|
|
{{ room.total }}
|
|
|
|
<a href="{{ path('room_namespace', { namespace : room.namespace, feed : 'rss' }) }}" title="{{ 'RSS' | trans }}" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" 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>
|
|
|
|
{% if room.pinned %}
|
|
|
|
<i title="{{ 'pinned' | trans }}">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 16 16" title="{{ 'pinned' | trans }}" style="float:right">
|
|
|
|
<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146z"/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<div>
|
|
|
|
{{ 'rooms not found' | trans }}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block footer_content %}
|
|
|
|
{{
|
|
|
|
render(
|
|
|
|
controller(
|
|
|
|
'App\\Controller\\ModuleController::room',
|
|
|
|
{
|
|
|
|
request: request
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
{% endblock %}
|