1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

nginx/templates/iiab.conf.j2, usb_lib/files/upload/button.html: Adding button to upload2usb app on every usb/ directory listing page.

This commit is contained in:
avni 2025-01-22 10:22:38 +01:00
parent f79a43e305
commit 335d8ad4c1
2 changed files with 21 additions and 0 deletions

View file

@ -5,10 +5,12 @@ location / {
location /usb {
alias /library/www/html/local_content/;
fancyindex on; # autoindex on;
add_before_body /usb/upload/button.html;
}
location /local_content/ {
fancyindex on; # autoindex on;
add_before_body /usb/upload/button.html;
}
location /info {

View file

@ -0,0 +1,19 @@
<style>
.button {
background-color: #343a40;
border: none;
border-radius:.25rem;
color: white;
padding: .5rem .75rem;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1rem;
font-weight:bold;
float:right;
}
.button:hover {
color: #ddd;
}
</style>
<a class="button" href="/local_content/upload/">Upload to USB</a>