You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/10/17 21:59:15 UTC

svn commit: r1399407 - /incubator/mesos/trunk/src/webui/master/static/browse.html

Author: benh
Date: Wed Oct 17 19:59:14 2012
New Revision: 1399407

URL: http://svn.apache.org/viewvc?rev=1399407&view=rev
Log:
Added another new webui file.

Added:
    incubator/mesos/trunk/src/webui/master/static/browse.html

Added: incubator/mesos/trunk/src/webui/master/static/browse.html
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/webui/master/static/browse.html?rev=1399407&view=auto
==============================================================================
--- incubator/mesos/trunk/src/webui/master/static/browse.html (added)
+++ incubator/mesos/trunk/src/webui/master/static/browse.html Wed Oct 17 19:59:14 2012
@@ -0,0 +1,84 @@
+<ul class="breadcrumb">
+  <li>
+    <a href="#">Home</a>
+    <span class="divider">/</span>
+  </li>
+  <li>
+    <a href="#/slaves">Slaves</a>
+    <span class="divider">/</span>
+  </li>
+  <li>
+    <a href="#/slaves/{{slave_id}}">{{slaves[slave_id].hostname}}</a>
+    <span class="divider">/</span>
+  </li>
+  <li class="active">
+    <em>browse</em>
+  </li>
+</ul>
+
+<ul class="breadcrumb">
+  <li>
+    <em>Path:</em>
+  </li>
+  <li ng-repeat="dir in path.split('/')">
+    <a href="#/slaves/{{slave_id}}/browse?path={{encodeURIComponent(path.split('/').slice(0, $index+1).join('/'))}}">
+      {{dir}}
+    </a>
+    <span class="divider">/</span>
+  </li>
+</ul>
+
+<div class="alert alert-error hide" id="alert">
+  <button class="close" data-dismiss="alert">×</button>
+  <strong>{{alert_message}}</strong>
+</div>
+
+<div class="row hide" id="listing">
+  <div class="span9">
+    <div class="well">
+      <table class="table table-condensed">
+        <thead>
+          <tr>
+            <th>mode</th>
+            <th>nlink</th>
+            <th>uid</th>
+            <th>gid</th>
+            <th>size</th>
+            <th>mtime</th>
+            <th>name</th>
+            <th></th>
+          </tr>
+        </thead>
+        <tbody>
+        <tr ng-repeat="file in listing">
+          <td>{{file.mode}}</td>
+          <td>{{file.nlink}}</td>
+          <td>{{file.uid}}</td>
+          <td>{{file.gid}}</td>
+          <td>{{file.size | dataSize}}</td>
+          <td>{{file.mtime * 1000 | unixDate}}</td>
+          <td ui-if="file.mode[0] == 'd'" align="right">
+            <a href="#/slaves/{{slave_id}}/browse?path={{encodeURIComponent(file.path)}}">
+              {{basename(file.path)}}
+            </a>
+          </td>
+          <td ui-if="file.mode[0] != 'd'" align="right">
+            <a href="" ng-click="pail($event, encodeURIComponent(file.path))">
+              {{basename(file.path)}}
+            </a>
+          </td>
+          <td>
+            <a ui-if="file.mode[0] != 'd'" href="/files/download.json?path={{encodeURIComponent(file.path)}}">
+              <button class="btn btn-mini" type="button">download</button>
+            </a>
+          </td>
+        </tr>
+        <!-- Add a row to the bottom for a consistent look. -->
+        <tr>
+          <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
+        </tr>
+        </tbody>
+      </table>
+    </div>
+  </div>
+</div>
\ No newline at end of file