diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-03 09:32:37 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-03 09:52:26 +0200 |
commit | c1ac88e47c8562699edc9f5304649762366191e0 (patch) | |
tree | 2e7c0f970e603652805c900cbf656d92b86ec55e /ogcp/templates/actions | |
parent | 15f5af00e73bac87d329d47de257cad50a591b06 (diff) |
templates: fix ip card list spacing
Remove unwanted witespace caused by tabs and spaces.
Add margin to the ip card style to define an explicit spacing.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r-- | ogcp/templates/actions/cache.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/oglive.html | 22 | ||||
-rw-r--r-- | ogcp/templates/actions/select_client.html | 4 | ||||
-rw-r--r-- | ogcp/templates/actions/session.html | 4 |
4 files changed, 13 insertions, 21 deletions
diff --git a/ogcp/templates/actions/cache.html b/ogcp/templates/actions/cache.html index d64aebe..17d8cb4 100644 --- a/ogcp/templates/actions/cache.html +++ b/ogcp/templates/actions/cache.html @@ -42,9 +42,7 @@ <div>∘︎ Checksum: {{images_data[image.selected.label.text]['checksum']}}</div> </td> <td> - {% for ip in images_data[image.selected.label.text]['clients'] %} - <div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div> - {% endfor %} + {% for ip in images_data[image.selected.label.text]['clients'] %}<div class="card d-inline-block" style="padding: 5px; margin: 3px;">{{ ip }}</div>{% endfor %} </td> </tr> {% endfor %} diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html index 82bd957..dfffd04 100644 --- a/ogcp/templates/actions/oglive.html +++ b/ogcp/templates/actions/oglive.html @@ -22,21 +22,19 @@ <table class="table table-hover"> <thead class="thead-light"> - <tr> - <th>ogLive</th> - <th>Clients</th> - </tr> + <tr> + <th>ogLive</th> + <th>Clients</th> + </tr> </thead> <tbody class="text-left"> {% for oglive, clients in oglives_set.items() %} - <tr> - <th>{{oglive}}</th> - <td> - {% for ip in clients %} - <div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div> - {% endfor %} - </td> - </tr> + <tr> + <th>{{oglive}}</th> + <td> + {% for ip in clients %}<div class="card d-inline-block" style="padding: 5px; margin: 3px;">{{ ip }}</div>{% endfor %} + </td> + </tr> {% endfor %} </tbody> </table> diff --git a/ogcp/templates/actions/select_client.html b/ogcp/templates/actions/select_client.html index a44c551..92c6ecb 100644 --- a/ogcp/templates/actions/select_client.html +++ b/ogcp/templates/actions/select_client.html @@ -44,9 +44,7 @@ {% endif %} </td> <td> - {% for ip in ips %} - <div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div> - {% endfor %} + {% for ip in ips %}<div class="card d-inline-block" style="padding: 5px; margin: 3px;">{{ ip }}</div>{% endfor %} </td> </tr> {% endfor %} diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html index 421226d..bcca791 100644 --- a/ogcp/templates/actions/session.html +++ b/ogcp/templates/actions/session.html @@ -40,9 +40,7 @@ The selected clients have different installed OS: <b>{{ os_choice.label.text }}</b> </td> <td> - {% for ip in os_groups[os_choice.data] %} - <div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div> - {% endfor %} + {% for ip in os_groups[os_choice.data] %}<div class="card d-inline-block" style="padding: 5px; margin: 3px;">{{ ip }}</div>{% endfor %} </td> </tr> {% endfor %} |