Merge branch 'fix-166' into 'development'
🐛 — Fix #166 — Same behavior on files and invitations tables See merge request fiat-tux/hat-softwares/lufi!38
This commit is contained in:
commit
784ed3867b
|
@ -2,6 +2,9 @@ Revision history for Lufi
|
||||||
|
|
||||||
?.??.? ????-??-??
|
?.??.? ????-??-??
|
||||||
- Fix invitations sorting order (#163)
|
- Fix invitations sorting order (#163)
|
||||||
|
- Same behavior on files and invitations tables (striped, invert selection
|
||||||
|
button) (#166)
|
||||||
|
- Change row color on hover
|
||||||
|
|
||||||
0.04.3 2019-09 29
|
0.04.3 2019-09 29
|
||||||
- Translate dates in invitations (#161)
|
- Translate dates in invitations (#161)
|
||||||
|
|
|
@ -150,7 +150,7 @@ msgstr ""
|
||||||
msgid "Could not find the file. Are you sure of the URL?"
|
msgid "Could not find the file. Are you sure of the URL?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:28
|
#: themes/default/templates/files.html.ep:29
|
||||||
msgid "Counter"
|
msgid "Counter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -166,15 +166,15 @@ msgstr ""
|
||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:29 themes/default/templates/index.html.ep:90
|
#: themes/default/templates/files.html.ep:30 themes/default/templates/index.html.ep:90
|
||||||
msgid "Delete at first download?"
|
msgid "Delete at first download?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:18
|
#: themes/default/templates/files.html.ep:19
|
||||||
msgid "Delete selected files"
|
msgid "Delete selected files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:32 themes/default/templates/partial/index.js.ep:19
|
#: themes/default/templates/files.html.ep:33 themes/default/templates/partial/index.js.ep:19
|
||||||
msgid "Deletion link"
|
msgid "Deletion link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ msgstr ""
|
||||||
msgid "Download aborted."
|
msgid "Download aborted."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:27 themes/default/templates/partial/index.js.ep:20
|
#: themes/default/templates/files.html.ep:28 themes/default/templates/partial/index.js.ep:20
|
||||||
msgid "Download link"
|
msgid "Download link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ msgstr ""
|
||||||
msgid "Expire at"
|
msgid "Expire at"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:31
|
#: themes/default/templates/files.html.ep:32
|
||||||
msgid "Expires at"
|
msgid "Expires at"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ msgstr ""
|
||||||
msgid "File deleted"
|
msgid "File deleted"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:26
|
#: themes/default/templates/files.html.ep:27
|
||||||
msgid "File name"
|
msgid "File name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ msgstr ""
|
||||||
msgid "Information about delays"
|
msgid "Information about delays"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/invitations/my_invitations.html.ep:12
|
#: themes/default/templates/files.html.ep:18 themes/default/templates/invitations/my_invitations.html.ep:12
|
||||||
msgid "Invert selection"
|
msgid "Invert selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ msgstr ""
|
||||||
msgid "Lufi recently changed its way to store files information.\\n\\nNo files have been found in the new localStorage location but we found files in the old one.\\nDo you want to import those informations?\\n\\nPlease note that this is the only time that we will ask you this."
|
msgid "Lufi recently changed its way to store files information.\\n\\nNo files have been found in the new localStorage location but we found files in the old one.\\nDo you want to import those informations?\\n\\nPlease note that this is the only time that we will ask you this."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:33
|
#: themes/default/templates/files.html.ep:34
|
||||||
msgid "Mail"
|
msgid "Mail"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -678,7 +678,7 @@ msgstr ""
|
||||||
msgid "Upload generated zip file"
|
msgid "Upload generated zip file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: themes/default/templates/files.html.ep:30
|
#: themes/default/templates/files.html.ep:31
|
||||||
msgid "Uploaded at"
|
msgid "Uploaded at"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -254,6 +254,10 @@ button.pulse {
|
||||||
text-transform: initial !important;
|
text-transform: initial !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.highlight > tbody > tr:hover {
|
||||||
|
background-color: #c6d4ee;
|
||||||
|
}
|
||||||
|
|
||||||
.white-background {
|
.white-background {
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,20 @@ function itemExists(name) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function invertSelection(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
$('input[type="checkbox"]').each(function() {
|
||||||
|
var el = $(this);
|
||||||
|
el.click();
|
||||||
|
if (el.attr('data-checked') && el.attr('data-checked') === 'data-checked') {
|
||||||
|
el.attr('data-checked', null);
|
||||||
|
} else {
|
||||||
|
el.attr('data-checked', 'data-checked');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
evaluateMassDelete();
|
||||||
|
}
|
||||||
|
|
||||||
function purgeExpired(event) {
|
function purgeExpired(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var files = JSON.parse(localStorage.getItem(window.prefix + 'files'));
|
var files = JSON.parse(localStorage.getItem(window.prefix + 'files'));
|
||||||
|
|
|
@ -9,17 +9,18 @@
|
||||||
<%= l('Rows in red mean that the files have expired and are no longer available.') %>
|
<%= l('Rows in red mean that the files have expired and are no longer available.') %>
|
||||||
</p>
|
</p>
|
||||||
<div class="files-buttons">
|
<div class="files-buttons">
|
||||||
<a href="#" id="exportStorage" class="btn left-mg cyan"><%= l('Export localStorage data') %></a>
|
<a href="#" id="exportStorage" class="btn left-mg cyan"><%= l('Export localStorage data') %></a>
|
||||||
<a href="#" id="purgeExpired" class="btn left-mg cyan"><%= l('Purge expired files from localStorage') %></a>
|
<a href="#" id="purgeExpired" class="btn left-mg cyan"><%= l('Purge expired files from localStorage') %></a>
|
||||||
<a href="#" id="clickImport" class="btn left-mg cyan"><%= l('Import localStorage data') %></a>
|
<a href="#" id="clickImport" class="btn left-mg cyan"><%= l('Import localStorage data') %></a>
|
||||||
<span class="file-field input-field">
|
<span class="file-field input-field">
|
||||||
<input type="file" id="import" onchange="importStorage(this.files)">
|
<input type="file" id="import" onchange="importStorage(this.files)">
|
||||||
</span>
|
</span>
|
||||||
|
<a href="#" id="invertSelection" class="btn left-mg cyan"><%= l('Invert selection') %></a>
|
||||||
<a href="#" class="btn left-mg cyan disabled" id="mass-delete" disabled><%= l('Delete selected files') %></a>
|
<a href="#" class="btn left-mg cyan disabled" id="mass-delete" disabled><%= l('Delete selected files') %></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<table class="responsive-table striped">
|
<table class="responsive-table highlight striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="center-align"></th>
|
<th class="center-align"></th>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<table class="responsive-table highlight">
|
<table class="responsive-table highlight striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="center-align"> </th>
|
<th class="center-align"> </th>
|
||||||
|
|
|
@ -13,6 +13,7 @@ var i18n = {
|
||||||
};
|
};
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
populateFilesTable();
|
populateFilesTable();
|
||||||
|
$('#invertSelection').on('click', invertSelection);
|
||||||
$('#exportStorage').on('click', exportStorage);
|
$('#exportStorage').on('click', exportStorage);
|
||||||
$('#purgeExpired').on('click', purgeExpired);
|
$('#purgeExpired').on('click', purgeExpired);
|
||||||
$('#clickImport').on('click', clickImport);
|
$('#clickImport').on('click', clickImport);
|
||||||
|
|
Loading…
Reference in New Issue