Commit a7521a26 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Added listing storages in the computing UI element.

parent 8b28c6cd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -586,7 +586,6 @@ th, td {
.image-version-box { 
  width: 100%; 
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 5px;
+31 −11
Original line number Diff line number Diff line
@@ -19,11 +19,6 @@
        <td>{{ data.computing.description }}</td>
       </tr>

       <tr>
        <td width="110px"><b>ID</b></td>
        <td>{{ data.computing.id }}</a></td>
       </tr>

       <tr>
        <td><b>Type</b></td>
        <td>{{ data.computing.type }}</td>
@@ -45,15 +40,28 @@
       </tr>

       <tr>
        <td><b>Owner</b></td>
        <td>{% if data.computing.user %}{{ data.computing.user }}{% else %}platform{% endif %}</td>
        <td><b>Container runtimes</b></td>
        <td>{{ data.computing.container_runtimes }}</td>
       </tr>


       <tr>
        <td><b>Container runtimes</b></td>
        <td>{{ data.computing.container_runtimes }}</td>
        <td><b>Storages</b></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>



      </table>
      </div>
      
@@ -77,11 +85,23 @@
        {% endif %}
        <div class="image-version-box">
        <b>Type:</b> {{ computing.type }}<br/>
        {% if computing.auth_mode == 'user_keys' %}
        <b>Access:</b> restricted
        <!--  -->{% if computing.auth_mode == 'user_keys' %}
        <b>Access:</b> user keys
        {% else %}
        <b>Access:</b> open
        {% 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>
        <!-- ><b>Access:</b> {{ computing.access_mode }}<br/> --
        <!-- <b>Owner:</b> {% if computing.user %}{{ computing.user }}{% else %}Platform{% endif %}<br/> -->