mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-17 21:08:20 +01:00
[FEATURE] Show download link in admin panel
Show the download link for a file in the admin panel, to find it again easily if the uploader has lost it somehow. Move the "direct download" action into the last column instead. Refs #68
This commit is contained in:
parent
26d3657f83
commit
752f34d41b
@ -613,11 +613,8 @@ jirafeau_admin_list ($name, $file_hash, $link_hash)
|
||||
/* Print link informations. */
|
||||
echo '<tr>';
|
||||
echo '<td>' .
|
||||
'<form action = "admin.php" method = "post">' .
|
||||
'<input type = "hidden" name = "action" value = "download"/>' .
|
||||
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
|
||||
'<input type = "submit" value = "' . htmlspecialchars($l['file_name']) . '" />' .
|
||||
'</form>';
|
||||
'<strong><a id="upload_link" href="/f.php?h='. htmlspecialchars($node) .'" title="' .
|
||||
t('Download page') . '">' . htmlspecialchars($l['file_name']) . '</a></strong>';
|
||||
echo '</td>';
|
||||
echo '<td>' . $l['mime_type'] . '</td>';
|
||||
echo '<td>' . jirafeau_human_size ($l['file_size']) . '</td>';
|
||||
@ -633,6 +630,11 @@ jirafeau_admin_list ($name, $file_hash, $link_hash)
|
||||
echo '<td>' . $l['ip'] . '</td>';
|
||||
echo '<td>' .
|
||||
'<form action = "admin.php" method = "post">' .
|
||||
'<input type = "hidden" name = "action" value = "download"/>' .
|
||||
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
|
||||
'<input type = "submit" value = "' . t('Download') . '" />' .
|
||||
'</form>' .
|
||||
'<form action = "admin.php" method = "post">' .
|
||||
'<input type = "hidden" name = "action" value = "delete_link"/>' .
|
||||
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
|
||||
'<input type = "submit" value = "' . t('Del link') . '" />' .
|
||||
|
Loading…
x
Reference in New Issue
Block a user