Skip to content
Snippets Groups Projects
Commit a7521a26 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Added listing storages in the computing UI element.

parent 8b28c6cd
No related branches found
No related tags found
No related merge requests found
...@@ -586,7 +586,6 @@ th, td { ...@@ -586,7 +586,6 @@ th, td {
.image-version-box { .image-version-box {
width: 100%; width: 100%;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
margin: 5px; margin: 5px;
......
...@@ -19,11 +19,6 @@ ...@@ -19,11 +19,6 @@
<td>{{ data.computing.description }}</td> <td>{{ data.computing.description }}</td>
</tr> </tr>
<tr>
<td width="110px"><b>ID</b></td>
<td>{{ data.computing.id }}</a></td>
</tr>
<tr> <tr>
<td><b>Type</b></td> <td><b>Type</b></td>
<td>{{ data.computing.type }}</td> <td>{{ data.computing.type }}</td>
...@@ -45,15 +40,28 @@ ...@@ -45,15 +40,28 @@
</tr> </tr>
<tr> <tr>
<td><b>Owner</b></td> <td><b>Container runtimes</b></td>
<td>{% if data.computing.user %}{{ data.computing.user }}{% else %}platform{% endif %}</td> <td>{{ data.computing.container_runtimes }}</td>
</tr> </tr>
<tr> <tr>
<td><b>Container runtimes</b></td> <td><b>Storages</b></td>
<td>{{ data.computing.container_runtimes }}</td> <td>
{% if not computing.storages.all %}
none
{% else %}
{% for storage in computing.storages.all %}
{% if storage.bind_path %}
{{ storage.name }} @ <code>{{ storage.bind_path }}</code><br/>
{% endif %}
{% endfor %}
{% endif %}
</td>
</tr> </tr>
</table> </table>
</div> </div>
...@@ -77,11 +85,23 @@ ...@@ -77,11 +85,23 @@
{% endif %} {% endif %}
<div class="image-version-box"> <div class="image-version-box">
<b>Type:</b> {{ computing.type }}<br/> <b>Type:</b> {{ computing.type }}<br/>
{% if computing.auth_mode == 'user_keys' %} <!-- -->{% if computing.auth_mode == 'user_keys' %}
<b>Access:</b> restricted <b>Access:</b> user keys
{% else %} {% else %}
<b>Access:</b> open <b>Access:</b> open
{% endif %} {% endif %}
<br/>
<b>Storages:</b>
{% if not computing.storages.all %}
none
{% else %}
<br/>
{% for storage in computing.storages.all %}
{% if storage.bind_path %}
&nbsp; {{ storage.name }} @ <code>{{ storage.bind_path }}</code><br/>
{% endif %}
{% endfor %}
{% endif %}
</div> </div>
<!-- ><b>Access:</b> {{ computing.access_mode }}<br/> -- <!-- ><b>Access:</b> {{ computing.access_mode }}<br/> --
<!-- <b>Owner:</b> {% if computing.user %}{{ computing.user }}{% else %}Platform{% endif %}<br/> --> <!-- <b>Owner:</b> {% if computing.user %}{{ computing.user }}{% else %}Platform{% endif %}<br/> -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment