|
334 | 334 | {% if bridge_configured %} |
335 | 335 | <li>{{ _("The <tt>rascsi_bridge</tt> network bridge is active and ready to be used by an emulated network adapter!") }}</li> |
336 | 336 | {% endif %} |
| 337 | + <li>{{ _("To browse the modern web, install a vintage web proxy like <a href=\"%(url)s\">Macproxy</a>.", url="https://github.com/akuker/RASCSI/wiki/Vintage-Web-Proxy#macproxy") }}</li> |
337 | 338 | </li> |
338 | 339 | </ul> |
339 | 340 | <li>{{ _("The Printer and Host Services device are currently supported on compatible Atari systems, and require <a href=\"%(url)s\">driver software</a> to be installed on the host system.", url="https://www.hddriver.net/en/rascsi_tools.html") }} |
|
385 | 386 | </tr> |
386 | 387 | {% endfor %} |
387 | 388 | </table> |
388 | | -{% if macproxy_configured %} |
389 | | -<p><small>{{ _("Macproxy is running at %(ip_addr)s (default port 5000)", ip_addr=ip_addr) }}</small></p> |
390 | | -{% else %} |
391 | | -<p><small>{{ _("Install <a href=\"%(url)s\">Macproxy</a> to browse the Web with any vintage browser. It's not just for Macs!", url="https://github.com/akuker/RASCSI/wiki/Vintage-Web-Proxy#macproxy") }}</small></p> |
392 | | -{% endif %} |
393 | 389 |
|
394 | 390 | <hr/> |
395 | 391 | <details> |
396 | 392 | <summary class="heading"> |
397 | | - {{ _("Upload File") }} |
| 393 | + {{ _("Upload File from Local Computer") }} |
398 | 394 | </summary> |
399 | 395 | <ul> |
400 | | - <li>{{ _("Files are uploaded to <tt>%(directory)s</tt>.", directory=base_dir) }}</li> |
401 | 396 | <li>{{ _("The largest file size accepted in this form is %(max_file_size)s MiB. Use other file transfer means for larger files.", max_file_size=max_file_size) }}</li> |
402 | 397 | <li>{{ _("File uploads will progress only if you stay on this page. If you navigate away before the transfer is completed, you will end up with an incomplete file.") }}</li> |
| 398 | + <li>{{ _("Install <a href=\"%(url)s\">Netatalk</a> to use the AFP File Server.", url="https://github.com/akuker/RASCSI/wiki/AFP-File-Sharing") }}</li> |
403 | 399 | </ul> |
404 | 400 | </details> |
405 | 401 |
|
406 | 402 | <table style="border: none;"> |
407 | 403 | <tr style="border: none;"> |
408 | 404 | <td style="border: none; vertical-align:top;"> |
409 | | - <form name="dropper" action="/files/upload" method="post" class="dropzone dz-clickable" enctype="multipart/form-data" id="dropper"></form> |
| 405 | + <form name="dropper" action="/files/upload" method="post" class="dropzone dz-clickable" enctype="multipart/form-data" id="dropper"> |
| 406 | + <p> |
| 407 | + <label for="destination">{{ _("Target directory:") }}</label> |
| 408 | + <select name="destination"> |
| 409 | + <option value="images">{{ base_dir }}</option> |
| 410 | + <option value="afp">{{ AFP_DIR }}</option> |
| 411 | + </select> |
| 412 | + </p> |
| 413 | + </form> |
410 | 414 | </td> |
411 | 415 | </tr> |
412 | 416 | </table> |
|
443 | 447 |
|
444 | 448 | <details> |
445 | 449 | <summary class="heading"> |
446 | | - {{ _("Download File to Images") }} |
| 450 | + {{ _("Download File from the Web") }} |
447 | 451 | </summary> |
448 | 452 | <ul> |
449 | | - <li>{{ _("Given a URL, download that file to the <tt>%(directory)s</tt> directory.", directory=base_dir) }}</li> |
| 453 | + <li>{{ _("Choose the desination directory and download a file from the Web to your Raspberry Pi.") }}</li> |
| 454 | + <li>{{ _("Install <a href=\"%(url)s\">Netatalk</a> to use the AFP File Server.", url="https://github.com/akuker/RASCSI/wiki/AFP-File-Sharing") }}</li> |
450 | 455 | </ul> |
451 | 456 | </details> |
452 | 457 |
|
453 | 458 | <table style="border: none"> |
454 | 459 | <tr style="border: none"> |
455 | 460 | <td style="border: none; vertical-align:top;"> |
456 | | - <form action="/files/download_to_images" method="post"> |
457 | | - <label for="url">{{ _("URL:") }}</label> |
458 | | - <input name="url" placeholder="{{ _("URL") }}" required="" type="url"> |
459 | | - <input type="submit" value="{{ _("Download") }}" onclick="processNotify('{{ _("Downloading File to Images...") }}')"> |
460 | | - </form> |
461 | | - </td> |
462 | | - </tr> |
463 | | -</table> |
464 | | - |
465 | | -<hr/> |
466 | | - |
467 | | -<details> |
468 | | - <summary class="heading"> |
469 | | - {{ _("Download File to AppleShare") }} |
470 | | - </summary> |
471 | | - <ul> |
472 | | - <li>{{ _("Given a URL, download that file to the <tt>%(directory)s</tt> directory and share it over AFP.", directory=AFP_DIR) }}</li> |
473 | | - <li>{{ _("Manage the files you download here through AppleShare on your vintage Mac.") }}</li> |
474 | | - <li>{{ _("Requires <a href=\"%(url)s\">Netatalk</a> to be installed and configured correctly for your network.", url="https://github.com/akuker/RASCSI/wiki/AFP-File-Sharing") }}</li> |
475 | | - </ul> |
476 | | -</details> |
477 | | - |
478 | | -{% if netatalk_configured %} |
479 | | -<table style="border: none"> |
480 | | - <tr style="border: none"> |
481 | | - <td style="border: none; vertical-align:top;"> |
482 | | - <form action="/files/download_to_afp" method="post"> |
| 461 | + <form action="/files/download_url" method="post"> |
| 462 | + <label for="destination">{{ _("Target directory:") }}</label> |
| 463 | + <select name="destination"> |
| 464 | + <option value="images">{{ base_dir }}</option> |
| 465 | + <option value="afp">{{ AFP_DIR }}</option> |
| 466 | + </select> |
483 | 467 | <label for="url">{{ _("URL:") }}</label> |
484 | 468 | <input name="url" placeholder="{{ _("URL") }}" required="" type="url"> |
485 | | - <input type="submit" value="{{ _("Download") }}" onclick="processNotify('{{ _("Downloading File to AppleShare...") }}')"> |
| 469 | + <input type="submit" value="{{ _("Download") }}" onclick="processNotify('{{ _("Downloading File...") }}')"> |
486 | 470 | </form> |
487 | 471 | </td> |
488 | 472 | </tr> |
489 | 473 | </table> |
490 | 474 |
|
491 | | -{% if netatalk_configured == 1 %} |
492 | | -<p><small>{{ _("The AppleShare server is running. No active connections.") }}</small></p> |
493 | | -{% elif netatalk_configured == 2 %} |
494 | | -<p><small>{{ _("%(value)d active AFP connection", value=(netatalk_configured - 1)) }}</small></p> |
495 | | -{% elif netatalk_configured > 2 %} |
496 | | -<p><small>{{ _("%(value)d active AFP connections", value=(netatalk_configured - 1)) }}</small></p> |
497 | | -{% endif %} |
498 | | -{% else %} |
499 | | -<p>{{ _("Install <a href=\"%(url)s\">Netatalk</a> to use the AppleShare File Server.", url="https://github.com/akuker/RASCSI/wiki/AFP-File-Sharing") }}</p> |
500 | | -{% endif %} |
501 | | - |
502 | 475 | <hr/> |
503 | 476 |
|
504 | 477 | <details> |
|
725 | 698 | </tr> |
726 | 699 | </table> |
727 | 700 |
|
| 701 | +<center><tt> |
| 702 | + {% if netatalk_configured == 1 %} |
| 703 | + {{ _("The AppleShare server is running. No active connections.") }} |
| 704 | + {% endif %} |
| 705 | + {% if netatalk_configured == 2 %} |
| 706 | + {{ _("%(value)d active AFP connection", value=(netatalk_configured - 1)) }} |
| 707 | + {% elif netatalk_configured > 2 %} |
| 708 | + {{ _("%(value)d active AFP connections", value=(netatalk_configured - 1)) }} |
| 709 | + {% endif %} |
| 710 | +</center></tt> |
| 711 | +<center><tt> |
| 712 | +{% if macproxy_configured %} |
| 713 | +<center><tt>{{ _("Macproxy is running at %(ip_addr)s (default port 5000)", ip_addr=env['ip_addr']) }}</tt></center> |
| 714 | +{% endif %} |
| 715 | +</center></tt> |
| 716 | + |
728 | 717 | {% endblock content %} |
0 commit comments