| {# |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| #} |
| <html> |
| |
| <head> |
| <link rel="shortcut icon" href="{{ url_for("static", path="img/logo54x54.png") }}" type="image/x-icon" > |
| <link href="{{ url_for("static", path="css/bootstrap.css") }}" rel="stylesheet"> |
| <style type="text/css"> |
| div.tight |
| { |
| height:85%; |
| overflow:auto; |
| } |
| ul.files li |
| { |
| list-style: none; |
| line-height: normal; |
| font-family: monospace; |
| white-space: pre; |
| } |
| </style> |
| <title>Path browser for {{ path }}</title> |
| |
| </head> |
| |
| <body> |
| <div class="container"> |
| <div class="span6"> |
| <strong> Path </strong> {{ path }} |
| </div> |
| |
| <div class="span12 tight"> |
| |
| <ul class="files"> |
| {%- for fpath, finfo in filestats | dictsort -%} |
| <li {%- if finfo.is_dir%} class="directory" {%- endif %}> |
| {#- All rows have the preformtted filestats -#} |
| <span class="file-stat">{{- finfo.formatted_stat -}}</span> |
| {%- if fpath == ".." -%} |
| <a href="{{ url_for("file_stats_page", cluster=cluster, environment=environ, topology=topology, container=container) }}?path={{ path.rpartition("/")[0] | urlencode }}" title="explore"> ../</a> |
| {%- elif finfo.is_dir -%} |
| <a href="{{ url_for("file_stats_page", cluster=cluster, environment=environ, topology=topology, container=container) }}?path={{ "{}/{}".format(path, fpath) | urlencode }}" title="explore"> {{ fpath }}/</a> |
| {%- else -%} |
| <a href="{{ url_for("file_page", cluster=cluster, environment=environ, topology=topology, container=container) }}?path={{ "{}/{}".format(path, fpath) | urlencode }}" title="preview"> {{ fpath }}</a> |
| {#- -#} |
| <a href="{{ url_for("file_download", cluster=cluster, environment=environ, topology=topology, container=container) }}?path={{ "{}/{}".format(path, fpath) | urlencode }}" title="download"><span class="glyphicon glyphicon-download"></span></a> |
| {%- endif -%} |
| </li> |
| {%- endfor -%} |
| </ul> |
| </div> |
| </div> |
| </body> |
| </html> |