diff options
Diffstat (limited to 'management-interface')
-rw-r--r-- | management-interface/views/images.htm | 58 |
1 files changed, 33 insertions, 25 deletions
diff --git a/management-interface/views/images.htm b/management-interface/views/images.htm index 20b9bbe..6167a8e 100644 --- a/management-interface/views/images.htm +++ b/management-interface/views/images.htm @@ -1,25 +1,33 @@ -<div class="container"> - <div class="jumbotron"> - <h2>List of all images</h2> - <table class="table table-striped table-responsive"> - <thead> - <tr> - <th>UUID</th> - <th>Name</th> - <th>Owner</th> - <th>Missing blocks</th> - </tr> - </thead> - <tbody> - <repeat group="{{ @result }}" value="{{ @item }}"> - <tr> - <td>{{ @item.UUID }}</td> - <td>{{ @item.image_name }}</td> - <td>{{ @item.image_owner }}</td> - <td>{{ @item.missingBlocks }}</td> - </tr> - </repeat> - </tbody> - </table> - </div> -</div> <!-- /container --> +<check if="{{ @loggedin }}"> + <true> + <div class="container"> + <div class="jumbotron"> + <h2>List of all images</h2> + <table class="table table-striped table-responsive"> + <thead> + <tr> + <th>UUID</th> + <th>Name</th> + <th>Owner</th> + <th>Missing blocks</th> + <th>Path</th> + </tr> + </thead> + <tbody> + <repeat group="{{ @result }}" value="{{ @item }}"> + <tr> + <td style="font-size: 0.8em; white-space: nowrap;">{{ @item.UUID }}</td> + <td>{{ @item.image_name }}</td> + <td style="white-space: nowrap;">{{ @item.image_owner }}</td> + <td><check if="{{ @item.missingBlocks }}==''"><true>no</true<false>yes</false></check></td> + <td>{{ @item.image_path }}</td> + </tr> + </repeat> + </tbody> + </table> + </div> + </div> <!-- /container --> + </true> + <false> + <p class="bg-danger">Please <a href="{{ $hostname }}site/login">login</a></p> + </false> |