40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
% # vim:set sts=4 sw=4 ts=4 ft=html.epl expandtab:
|
|
<h2><%= l('My files') %></h2>
|
|
<hr>
|
|
|
|
<p>
|
|
<a href="#" onclick="purgeExpired();" class="pull-right btn btn-info btn-xs"><%= l('Purge expired files from localStorage') %></a>
|
|
<%= l('Only the files sent with this browser will be listed here. The informations are stored in localStorage: if you delete your localStorage data, you\'ll loose this informations.') %>
|
|
</p>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center"><%= l('File name') %></th>
|
|
<th class="text-center"><%= l('Download link') %></th>
|
|
<th class="text-center"><%= l('Counter') %></th>
|
|
<th class="text-center"><%= l('Delete at first download?') %></th>
|
|
<th class="text-center"><%= l('Uploaded at') %></th>
|
|
<th class="text-center"><%= l('Expires at') %></th>
|
|
<th class="text-center"><%= l('Deletion link') %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="myfiles">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
%= javascript begin
|
|
var baseURL = '<%== url_for('/')->to_abs() %>';
|
|
var counterURL = '<%== url_for('counter') %>';
|
|
var i18n = {
|
|
noExpiration: '<%== url_for('counter') %>',
|
|
};
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
populateFilesTable();
|
|
});
|
|
% end
|
|
%= javascript '/js/lufi-files.js'
|
|
%= javascript '/js/moment-with-locales.min.js'
|