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

small corrections: indent size and remove trailing div

parent bc48d4c3
No related branches found
No related tags found
1 merge request!24Admin lte3 corrections
......@@ -2,37 +2,40 @@
{{ macros.form(form) }}
{% if room and room.get("room_id") %}
<div class="row">
<div class="col-md-6">
<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 class="col-md-6">
<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 class="col-md-6">
<dl>
{% for name, value in room.items() %}
<dt>{{ name }}</dt>
<dd>{{ value }}</dd>
{% endfor %}
</dl>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<dl>
{% for name, value in room.items() %}
<dt>{{ name }}</dt>
<dd>{{ value }}</dd>
{% endfor %}
</dl>
</div>
</div>
{% endif %}
......@@ -2,36 +2,40 @@
{{ macros.form(form) }}
{% if results %}
<div class="row">
<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 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>
{% 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