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.
 
 
 
 
 
 

120 lines
5.2 KiB

  1. {% load static from staticfiles %}
  2. {% load compress %}
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  8. <!-- ___ ___ ___
  9. / /\ ___ /__/\ / /\ ___
  10. / /::\ / /\ \ \:\ / /::\ /__/|
  11. / /:/\:\ / /:/ \ \:\ / /:/\:\ | |:|
  12. / /:/~/:/ /__/::\ _____\__\:\ / /:/~/:/ | |:|
  13. /__/:/ /:/ \__\/\:\__ /__/::::::::\ /__/:/ /:/___ __|__|:|
  14. \ \:\/:/ \ \:\/\ \ \:\~~\~~\/ \ \:\/:::::/ /__/::::\
  15. \ \::/ \__\::/ \ \:\ ~~~ \ \::/~~~~ ~\~~\:\
  16. \ \:\ /__/:/ \ \:\ \ \:\ \ \:\
  17. \ \:\ \__\/ \ \:\ \ \:\ \__\/
  18. \__\/ \__\/ \__\/ -->
  19. <title>{% block title %}{{ SITE_NAME }}{% endblock %}</title>
  20. <!-- CSS -->
  21. <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Monoton"/>
  22. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/css/bootstrap.min.css"/>
  23. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.1.1/fineuploader.css"/>
  24. {% compress css %}
  25. <link rel="stylesheet" href="{% static "css/messages.css" %}"/>
  26. <link rel="stylesheet" href="{% static "css/lightbox.css" %}"/>
  27. <link rel="stylesheet" href="{% static "css/pinry.css" %}"/>
  28. {% endcompress %}
  29. {% compress css inline %}
  30. {% block extra_css %}{% endblock %}
  31. {% endcompress %}
  32. <!-- End CSS -->
  33. <!-- Start JavaScript Variables -->
  34. <script>
  35. var apiLimitPerPage = {{ API_LIMIT_PER_PAGE }},
  36. errors = {% if not messages %}null,{% else %}[
  37. {% for message in messages %}{
  38. tags: "{{ message.tags }}",
  39. text: "{{ message }}"
  40. }{% endfor %}
  41. ],{% endif %}
  42. currentUser = {
  43. id: "{{ user.id }}",
  44. username: "{{ user.username }}",
  45. gravatar: "{{ user.gravatar }}"
  46. },
  47. tagFilter = "{{ request.resolver_match.kwargs.tag }}",
  48. userFilter = "{{ request.resolver_match.kwargs.user }}";
  49. </script>
  50. <!-- End JavaScript Variables -->
  51. </head>
  52. <body>
  53. <!-- Navigation -->
  54. <div class="navbar navbar-fixed-top">
  55. <div class="navbar-inner">
  56. <a href="{% url 'core:recent-pins' %}" class="brand pull-left">{{ SITE_NAME }}</a>
  57. <ul class="nav pull-right">
  58. {% if user.is_authenticated %}
  59. <li>{% include "includes/bookmarklet_link.html" %}</li>
  60. <li><a onclick="pinForm()">New Pin</a></li>
  61. <li><a href="{% url 'users:logout' %}">Logout</a></li>
  62. {% else %}
  63. <li><a href="{% url 'users:login' %}">Login</a></li>
  64. <li><a href="{% url 'users:register' %}">Register</a></li>
  65. {% endif %}
  66. </ul>
  67. </div>
  68. </div>
  69. <!-- End Navigation -->
  70. <!-- Messages -->
  71. <ul id="messages"></ul>
  72. <!-- End Messages -->
  73. <!-- No Script -->
  74. <div id="noscript">
  75. <noscript>Scripting is not enabled in your browser, if you are using
  76. a plugin like NoScript *high five*! Our code is open source and
  77. you can view it on
  78. <a href="https://github.com/pinry/pinry/">GitHub</a>.
  79. <style>.spinner{display:none;}</style></noscript>
  80. </div>
  81. <!-- End No Script -->
  82. <!-- Content -->
  83. {% block yield %}{% endblock %}
  84. <!-- End Content -->
  85. <!-- Templates -->
  86. {% include "includes/messages.html" %}
  87. {% include "includes/lightbox.html" %}
  88. {% include "includes/pins.html" %}
  89. {% include "includes/pin_form.html" %}
  90. {% block extra_templates %}{% endblock %}
  91. <!-- End Templates -->
  92. <!-- JavaScript -->
  93. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  94. <script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script>
  95. <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.min.js"></script>
  96. <script src="//cdnjs.cloudflare.com/ajax/libs/file-uploader/3.1.1/jquery.fineuploader.min.js"></script>
  97. {% compress js %}
  98. <script src="{% static "js/helpers.js" %}"></script>
  99. <script src="{% static "js/messages.js" %}"></script>
  100. <script src="{% static "js/lightbox.js" %}"></script>
  101. <script src="{% static "js/pinry.js" %}"></script>
  102. <script src="{% static "js/pin-form.js" %}"></script>
  103. {% endcompress %}
  104. {% compress js inline %}
  105. {% block extra_js %}{% endblock %}
  106. {% endcompress %}
  107. <!-- End JavaScript -->
  108. </body>
  109. </html>