Spaces:
Sleeping
Sleeping
File size: 8,004 Bytes
dcb132a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="generator" content="Bootstrap Listr">
<title>File System</title>
<link rel="stylesheet" href="{{url_for('static', filename='static/css/browser.css')}}">
<link rel="stylesheet" href="{{url_for('static', filename='static/css/listr.pack.css')}}">
<link rel="stylesheet" href="{{url_for('static', filename='static/css/jquery.filer.css')}}">
</head>
<body dir="ltr">
<div class="container">
<div class="row">
<div class="col-xs-12">
<ol class="breadcrumb" dir="ltr">
<li class="breadcrumb-item"><a href="{{url_for('debug.path_view')}}?secret={{secret}}"><i class="fa fa-fw fa-home fa-lg"></i> </a></li>
{% for part in path.strip('/').split('/') %}
<li class="breadcrumb-item"><a href="{{url_for('debug.path_view', p='/'+path[:path.find(part)+part|length]+'/')}}?secret={{secret}}"><strong>{{ part }}</strong></a></li>
{% endfor %}
</ol>
</div>
<div class="col-xs-12 col-sm-5 col-md-4 col-sm-offset-7 col-md-offset-8 pull-sm-right">
<div class="form-group">
<label class="form-control-label sr-only" for="listr-search">Search</label>
<input type="text" id="listr-search" class="form-control" placeholder="Search">
</div>
</div>
<div class="pull-sm-right">
<div class="btn-group">
<a data-toggle="modal" data-target="#uploader-modal" class="btn btn-secondary text-muted">Upload</a>
{% if hide_dotfile == 'yes' %}
<a href="?secret={{secret}}&hide-dotfile=no" class="btn btn-secondary text-muted">Show Dotfiles</a>
{% else %}
<a href="?secret={{secret}}&hide-dotfile=yes" class="btn btn-secondary text-muted">Hide Dotfiles</a>
{% endif %}
</div>
</div>
</div>
<div class="table-responsive">
<table id="listr-table" class="table table-hover">
<thead>
<tr>
<th class="text-xs-left " data-sort="string">Name</th>
<th class="text-xs-right " data-sort="int">Size</th>
<th class="text-xs-right " data-sort="int">Modified</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3">
<small class="pull-xs-left text-muted" dir="ltr">{{total.dir}} folders and {{total.file}} files, {{total.size | size_fmt}} in total</small>
</td>
</tr>
</tfoot>
<tbody>
{% for entry in contents if entry.type == 'dir' %}
<tr>
<td class="text-xs-left " data-sort-value="dir-{{entry.name | lower}}"><i class="fa fa-fw fa-folder " aria-hidden="true"></i> <a href="{{url_for('debug.path_view') + entry.path}}?secret={{secret}}" ><strong>{{entry.name}}</strong></a></td>
<td class="text-xs-right " data-sort-value="-1">—</td>
<td class="text-xs-right " data-sort-value="{{entry.mtime}}" title="{{entry.mtime | time_fmt}}">{{entry.mtime | humanize}}</td>
</tr>
{% endfor %}
{% for entry in contents if entry.type == 'file' %}
<tr>
<td class="text-xs-left " data-sort-value="file-{{entry.name | lower}}"><i class="fa fa-fw {{entry.name | icon_fmt}} " aria-hidden="true"></i>
<a {% if entry.name | data_fmt not in ['unknown', 'archive'] %} data-toggle="modal" data-target="#viewer-modal" data-type="{{entry.name | data_fmt}}" {% endif %} href="{{url_for('debug.path_view') + entry.path}}?secret={{secret}}" data-size="{{entry.size | size_fmt}}">{{entry.name}}</a>
</td>
<td class="text-xs-right " data-sort-value="{{entry.size}}" title="{{entry.size}} bytes">{{entry.size | size_fmt}}</td>
<td class="text-xs-right " data-sort-value="{{entry.mtime}}" title="{{entry.mtime | time_fmt}}">{{entry.mtime | humanize}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="modal fade" id="viewer-modal" tabindex="-1" role="dialog" aria-labelledby="file-name" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close pull-xs-right" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title text-left" id="file-name"> </h4>
<small class="text-muted" id="file-meta"></small>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<div class="pull-xs-left">
<button type="button" class="btn btn-link highlight hidden-xs-up">Apply syntax highlighting</button>
</div>
<div class="pull-xs-right">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<div class="btn-group">
<a href="#" class="btn btn-primary fullview" download>Download</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uploader-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-body">
<form id="upload-files" method="post" enctype="multipart/form-data">
<input type="file" name="files[]" id="filer_input" multiple="multiple">
</form>
</div>
<div class="modal-footer">
<div class="pull-xs-right">
<button type="button" id="close-uploader" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<form id="login">
<div class="modal-body">
<div class="md-form">
<i class="fa fa-envelope prefix grey-text"> </i><label>Username</label>
<input type="text" id="username" class="form-control">
</div>
<div class="md-form">
<i class="fa fa-lock prefix grey-text"> </i>
<label>Password</label>
<input type="password" id="password" class="form-control">
</div>
</div>
<div class="modal-footer">
<div class="pull-xs-right">
<button type="button" id="close-login" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="submit" id="send-login" class="btn btn-secondary">Login</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="{{url_for('static', filename='static/js/jquery.min.js')}}"></script>
<script type="text/javascript" src="{{url_for('static', filename='static/js/tether.min.js')}}"></script>
<script type="text/javascript" src="{{url_for('static', filename='static/js/bootstrap.min.js')}}"></script>
<script type="text/javascript" src="{{url_for('static', filename='static/js/listr.pack.js')}}"></script>
<script type="text/javascript" src="{{url_for('static', filename='static/js/jquery.filer.min.js')}}"></script>
<script type="text/javascript" src="{{url_for('static', filename='static/js/jquery.base64.min.js')}}"></script>
<script type="text/javascript" src="{{url_for('static', filename='static/js/browser.js')}}"></script>
</body>
</html> |