The web design and pages for my personal website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.3 KiB

  1. {% block title %}Download Manager{% endblock %}
  2. {% block content %}
  3. {% if method == "index" %}
  4. <h1>Project {{ project }}</h1>
  5. You are about to download the file <strong>{{ file }}</strong> from the
  6. project <strong>{{ project }}</strong>. This file has been downloaded
  7. {{ hits }} time(s).
  8. <h1>Download</h1>
  9. To continue your download, click on the button below.
  10. <br><br><br>
  11. <form name="download" action="/download" method="POST">
  12. <input type="hidden" name="token" value="{{ csrf_token() }}">
  13. <input type="hidden" name="method" value="get">
  14. <input type="hidden" name="project" value="{{ project }}">
  15. <input type="hidden" name="file" value="{{ file }}">
  16. <span style="background-color: #88AADD; padding: 15px; border-top: 2px solid #006699;
  17. border-left: 2px solid #006699; border-right: 2px solid #AACCFF; border-bottom: 2px solid #AACCFF">
  18. <button type="submit">Download Now</button>
  19. </span>
  20. </form>
  21. {% elif method == "get" %}
  22. <h1>Downloading File...</h1>
  23. Your download of <strong>{{ file }}</strong> will begin shortly. If it doesn't,
  24. <a href="/projects/{{ project }}/{{ file }}">download it directly</a>.
  25. {% endif %}
  26. {% endblock %}
  27. {% block scripts %}
  28. {% if method == "get" %}
  29. <script>
  30. $(document).ready(function() {
  31. window.location.href = "/projects/{{ project }}/{{ file }}";
  32. });
  33. </script>
  34. {% endif %}
  35. {% endblock %}