|
| 1 | +{% load static compress %} |
| 2 | + |
| 3 | +<!DOCTYPE html> |
| 4 | +<html> |
| 5 | +<head> |
| 6 | + <meta charset="utf-8"> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + |
| 9 | + <title>{% block title %}Plataforma Plano Diretor{% endblock %}</title> |
| 10 | + |
| 11 | + <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'> |
| 12 | + <link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'> |
| 13 | + {% compress css %} |
| 14 | + <link type="text/x-scss" rel="stylesheet" href="{% static "sass/style.scss" %}" media="screen,projection"/> |
| 15 | + {% endcompress %} |
| 16 | +</head> |
| 17 | + |
| 18 | +<body> |
| 19 | + {% block content %} |
| 20 | + |
| 21 | + {% endblock %} |
| 22 | + |
| 23 | + {% block bottom_scripts %} |
| 24 | + {% compress js %} |
| 25 | + <script type="text/javascript" src="{% static "js/jquery-2.1.4.js" %}"></script> |
| 26 | + <script type="text/javascript" src="{% static "js/materialize.js" %}"></script> |
| 27 | + <script type="text/javascript" src="{% static "js/diff.min.js" %}"></script> |
| 28 | + <script type="text/javascript" src="{% static "js/lodash.min.js" %}"></script> |
| 29 | + <script type="text/javascript" src="{% static "js/css3-animate-it.js" %}"></script> |
| 30 | + <script type="text/javascript" src="{% static "js/scripts.js" %}"></script> |
| 31 | + {% endcompress %} |
| 32 | + |
| 33 | + {% if messages %} |
| 34 | + <script type="text/javascript"> |
| 35 | + {% comment %} |
| 36 | + FIXME This is a utterly idiotic way to handle messages. |
| 37 | + |
| 38 | + Here's why: |
| 39 | + |
| 40 | + * What if there is no JS available? |
| 41 | + |
| 42 | + * What if the user is browsing another tab and the toasts go away? (3000ms of duration) |
| 43 | + |
| 44 | + * No color. |
| 45 | + |
| 46 | + * Toasts in web browsers suck. We are not Google. This isn't Inbox. |
| 47 | + |
| 48 | + * It isn't even working. |
| 49 | + {% endcomment %} |
| 50 | + $.ready(function() { |
| 51 | + {% for message in messages %} |
| 52 | + Materialize.toast("{% if message.tags %}{{ message.tags }}: {% endif %}{{ message }}", 3000); |
| 53 | + {% endfor %} |
| 54 | + }); |
| 55 | + </script> |
| 56 | + {% endif %} |
| 57 | + {% endblock %} |
| 58 | + |
| 59 | + {% block partialscript %} |
| 60 | + |
| 61 | + {% endblock %} |
| 62 | + |
| 63 | + |
| 64 | + <!-- Go to www.addthis.com/dashboard to customize your tools --> |
| 65 | + <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-56d59e5f7525348b"></script> |
| 66 | + |
| 67 | +</body> |
| 68 | +</html> |
0 commit comments