Skip to content
Snippets Groups Projects
Verified Commit 58a82fe4 authored by ornanovitch's avatar ornanovitch
Browse files

table lists, again

parent ed491908
No related branches found
No related tags found
No related merge requests found
......@@ -3,21 +3,25 @@
{% if room and room.get("room_id") %}
<div class="row">
<div class="col-md-6">
<div class="table-responsive no-padding">
<table class="table table-hover">
<tr>
<th>{% trans %}Member{% endtrans %}</th>
</tr>
{% for member, profile in members.items() %}
<tr>
{% if profile %}
<td><a href="{{ url_for("profile.action", service_uuid=service.uuid, profile_uuid=profile.uuid, action="get_user_details") }}">{{ member }}</a></td>
{% else %}
<td>{{ member }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
<div class="table-responsive p-0">
<table class="table table-striped table-hover text-nowrap">
<thead>
<tr>
<th>{% trans %}Member{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for member, profile in members.items() %}
<tr>
{% if profile %}
<td><a href="{{ url_for("profile.action", service_uuid=service.uuid, profile_uuid=profile.uuid, action="get_user_details") }}">{{ member }}</a></td>
{% else %}
<td>{{ member }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="col-md-6">
......@@ -27,8 +31,8 @@
<dd>{{ value }}</dd>
{% endfor %}
</dl>
</div>
</div>
</div>
</div>
{% endif %}
\ No newline at end of file
</div>
</div>
{% endif %}
......@@ -2,32 +2,36 @@
{{ macros.form(form) }}
{% if results %}
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<tr>
<th>{% trans %}RoomID{% endtrans %}</th>
<th>{% trans %}Alias{% endtrans %}</th>
<th>{% trans %}Version{% endtrans %}</th>
<th>{% trans %}Name{% endtrans %}</th>
<th>{% trans %}Members (local){% endtrans %}</th>
<th>{% trans %}Properties{% endtrans %}</th>
</tr>
{% for room in results["rooms"] %}
<tr>
<td><a href="{{ url_for("service.action", service_uuid=service.uuid, action="get_room", roomid=room["room_id"]) }}">{{ room["room_id"] }}</a></td>
<td>{{ room["canonical_alias"] }}</td>
<td>{{ room["name"] }}</td>
<td>{{ room["version"] }}</td>
<td>{{ room["joined_members"] }} ({{ room["joined_local_members"] }})</td>
<td>{{ room["join_rules"] }}, {{ room["history_visibility"] }}</td>
</tr>
{% endfor %}
</table>
<div class="col">
<div class="card">
<div class="card-body table-responsive p-0">
<table class="table table-striped table-hover text-nowrap">
<thead>
<tr>
<th>{% trans %}RoomID{% endtrans %}</th>
<th>{% trans %}Alias{% endtrans %}</th>
<th>{% trans %}Version{% endtrans %}</th>
<th>{% trans %}Name{% endtrans %}</th>
<th>{% trans %}Members (local){% endtrans %}</th>
<th>{% trans %}Properties{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for room in results["rooms"] %}
<tr>
<td><a href="{{ url_for("service.action", service_uuid=service.uuid, action="get_room", roomid=room["room_id"]) }}">{{ room["room_id"] }}</a></td>
<td>{{ room["canonical_alias"] }}</td>
<td>{{ room["name"] }}</td>
<td>{{ room["version"] }}</td>
<td>{{ room["joined_members"] }} ({{ room["joined_local_members"] }})</td>
<td>{{ room["join_rules"] }}, {{ room["history_visibility"] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
\ No newline at end of file
</div>
{% endif %}
{% if user %}
<div class="row">
<div class="col-md-6">
<div class="table-responsive no-padding">
<table class="table table-hover">
<tr>
<th>{% trans %}Room{% endtrans %}</th>
</tr>
{% for room in user["joined_rooms"] %}
<tr>
<td><a href="{{ url_for("service.action", service_uuid=profile.service.uuid, action="get_room", roomid=room) }}">{{ room }}</a></td>
</tr>
{% endfor %}
<div class="col-md-6">
<div class="card">
<div class="card-body table-responsive p-0">
<table class="table table-striped table-hover text-nowrap">
<thead>
<tr>
<th>{% trans %}Room{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for room in user["joined_rooms"] %}
<tr>
<td><a href="{{ url_for("service.action", service_uuid=profile.service.uuid, action="get_room", roomid=room) }}">{{ room }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
......@@ -25,4 +30,4 @@
</div>
</div>
</div>
{% endif %}
\ No newline at end of file
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment