Update styles for file list (#1067)

This commit is contained in:
Cønstantine Kovalensky 2023-11-08 23:17:57 +04:00 committed by GitHub
commit b12c8e4d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ $file_list = $torrent->fileTreeTable($tor['info']['file tree']);
$date = '';
$name = htmlCHR($tor['info']['name'] ?? '');
$client = htmlCHR(substr($tor['created by'], 0, 20) ?? 'unknown');
$client = htmlCHR(substr($tor['created by'] ?? 'unknown client', 0, 20));
if (isset($tor['creation date']) && is_numeric($tor['creation date'])) {
$date = date("d M Y | G:i:s T", $tor['creation date']);
}
@ -96,7 +96,7 @@ echo implode('', $file_list['list']);
echo '</center>
</table>
<p style = "width: 100%; left: 0; position: absolute; bottom: 0px; text-align: center">Generated by <a href = "https://github.com/torrentpier/torrentpier" target="_blank">TorrentPier</a></p>
<p>Generated by <a href = "https://github.com/torrentpier/torrentpier" target="_blank">TorrentPier</a></p>
</body>
</html>';