summaryrefslogtreecommitdiffstats
path: root/management-interface
diff options
context:
space:
mode:
authorNils Schwabe2014-06-30 17:11:03 +0200
committerNils Schwabe2014-06-30 17:11:03 +0200
commit1a3dbab6ca7118f4ca9f61043f416f074ede13bc (patch)
treefad14555be544c3ba2afdf31b8f315364a67e7a6 /management-interface
parent[Webinterface] Add "images" tab (diff)
downloadmasterserver-1a3dbab6ca7118f4ca9f61043f416f074ede13bc.tar.gz
masterserver-1a3dbab6ca7118f4ca9f61043f416f074ede13bc.tar.xz
masterserver-1a3dbab6ca7118f4ca9f61043f416f074ede13bc.zip
Add implementation for the new up- and download protocoll
Remove some old stuff that is not needed anymore Fix some small bugs
Diffstat (limited to 'management-interface')
-rw-r--r--management-interface/views/images.htm58
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>