upload.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends "homepage/base.html" %}
  2. {% load static %}
  3. {% block title %}GPS Logging{% endblock %}
  4. {% block header %}GPS Logging{% endblock %}
  5. {% block status %}
  6. {% if user.is_authenticated %}
  7. <p style="text-align:center">
  8. Hi {% firstof user.first_name user.username %}!<br/>
  9. <a href="{% url 'logout' %}" class="link">Logout</a>
  10. </p>
  11. {% else %}
  12. <p style="text-align:center">
  13. <a href="{% url 'login' %}" class="link">Login</a>
  14. </p>
  15. {% endif %}
  16. {% endblock %}
  17. {% block sidebar %}
  18. {% endblock %}
  19. {% block head %}
  20. <link href="{% static 'gps_logger/css/stylesheet.css' %}" rel="stylesheet" type="text/css">
  21. {% endblock %}
  22. {% block content %}
  23. <input type="file" id="file-selector" accept=".txt, .nmea" multiple>
  24. <div class="demo-container">
  25. <div id="placeholder" class="demo-placeholder"></div>
  26. </div>
  27. {% endblock %}
  28. {% block body %}
  29. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.min.js' %}"></script>
  30. <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/excanvas.min.js' %}"></script><![endif]-->
  31. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.min.js' %}"></script>
  32. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.selection.min.js' %}"></script>
  33. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.navigate.min.js' %}"></script>
  34. <script src="{% static 'gps_logger/js/preprocessor.js' %}" type="text/javascript"></script>
  35. <script src="{% static 'gps_logger/GPS.js/GPS.min.js' %}" type="text/javascript"></script>
  36. {% endblock %}