index.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {% extends "homepage/base.html" %}
  2. {% load static %}
  3. {% load i18n %}
  4. {% block title %}GPS Logging{% endblock %}
  5. {% block header %}GPS Logging{% endblock %}
  6. {% block status %}
  7. {% if user.is_authenticated %}
  8. <p style="text-align:center">
  9. {% trans "Hello" %} {% firstof user.first_name user.username %}!<br/>
  10. <a href="{% url 'logout' %}" class="link">{% trans "Logout" %}</a>
  11. </p>
  12. {% else %}
  13. <p style="text-align:center">
  14. <a href="{% url 'login' %}?next={request.path}" class="link">{% trans "Login" %}</a>
  15. </p>
  16. {% endif %}
  17. {% endblock %}
  18. {% block sidebar %}
  19. {% endblock %}
  20. {% block head %}
  21. <link href="{% static 'gps_logger/css/stylesheet.css' %}" rel="stylesheet" type="text/css">
  22. <link href="{% static 'gps_logger/cesium-1.60/Widgets/widgets.css' %}" rel="stylesheet" type="text/css">
  23. {% endblock %}
  24. {% block content %}
  25. <div id="map" class="fullSize"></div>
  26. {% endblock %}
  27. {% block body %}
  28. <div class="popup shadow" id="shadow" onclick="hide()"></div>
  29. <div class="popup frame" id="frame">
  30. <div class="demo-container">
  31. <div id="placeholder" class="demo-placeholder"></div>
  32. </div>
  33. <div class="demo-container" style="height:150px;">
  34. <div id="overview" class="demo-placeholder"></div>
  35. </div>
  36. <p></p>
  37. <p>{% trans "Zoom to:" %}
  38. <button id="whole">{% trans "All" %}</button>
  39. <button id="track">{% trans "Track" %}</button>
  40. </p>
  41. <p>{% trans "Move:" %}
  42. <button id="left">{% trans "Left" %}</button>
  43. <button id="right">{% trans "Right" %}</button>
  44. </p>
  45. <ul id="tracks">
  46. </ul>
  47. </div>
  48. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.min.js' %}"></script>
  49. <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/excanvas.min.js' %}"></script><![endif]-->
  50. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.min.js' %}"></script>
  51. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.time.min.js' %}"></script>
  52. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.selection.min.js' %}"></script>
  53. <script language="javascript" type="text/javascript" src="{% static 'gps_logger/flot/jquery.flot.navigate.min.js' %}"></script>
  54. <script src="{% static 'gps_logger/cesium-1.60/Cesium.js' %}" type="text/javascript"></script>
  55. <script src="{% static 'gps_logger/js/tracks.js' %}" type="text/javascript"></script>
  56. <script src="{% static 'gps_logger/js/main.js' %}" type="text/javascript"></script>
  57. {% endblock %}