diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-21 21:47:09 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-21 21:47:09 +0200 |
commit | a531c5e12a65ac7c216bb3f91e510c1d31fbb06e (patch) | |
tree | c306bfc36f54815759cfe4b15b8f296865e2b70e /templates | |
parent | modify gitignore (diff) | |
download | scout-subs-a531c5e12a65ac7c216bb3f91e510c1d31fbb06e.tar.gz scout-subs-a531c5e12a65ac7c216bb3f91e510c1d31fbb06e.zip |
static files, last improvements0.1
Diffstat (limited to '')
-rw-r--r-- | templates/registration/base.html | 10 | ||||
-rw-r--r-- | templates/registration/base_client.html | 14 | ||||
-rw-r--r-- | templates/registration/base_custom.html | 10 | ||||
-rw-r--r-- | templates/registration/base_simple.html | 5 |
4 files changed, 15 insertions, 24 deletions
diff --git a/templates/registration/base.html b/templates/registration/base.html index 2e4f5b2..7af2fb7 100644 --- a/templates/registration/base.html +++ b/templates/registration/base.html @@ -1,8 +1,9 @@ <!DOCTYPE html> <html> <head> + {% load static %} <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> + <link rel="stylesheet" type="text/css" href="{% static 'materialize.min.css' %}"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta charset="utf-8"> <title>{% block title %}Scout Brega{% endblock %}</title> @@ -34,11 +35,8 @@ {% block content %} {% endblock %} </main> - <script - src="https://code.jquery.com/jquery-3.5.1.min.js" - integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" - crossorigin="anonymous"></script> - <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> + <script type="text/javascript" src="{% static 'jquery-3.5.1.min.js' %}"></script> + <script type="text/javascript" src="{% static 'materialize.min.js' %}"></script> <script> {% block script %} {% endblock%} diff --git a/templates/registration/base_client.html b/templates/registration/base_client.html index 6a0da38..6ae83df 100644 --- a/templates/registration/base_client.html +++ b/templates/registration/base_client.html @@ -1,8 +1,9 @@ <!DOCTYPE html> <html> <head> + {% load static %} <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> + <link rel="stylesheet" type="text/css" href="{% static 'materialize.min.css' %}"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta charset="utf-8"> <title>{% block title %}Scout Brega{% endblock %}</title> @@ -34,16 +35,9 @@ {% block content %} {% endblock %} </main> - <script - src="https://code.jquery.com/jquery-3.5.1.min.js" - integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" - crossorigin="anonymous"></script> - <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> + <script type="text/javascript" src="{% static 'jquery-3.5.1.min.js' %}"></script> + <script type="text/javascript" src="{% static 'materialize.min.js' %}"></script> <script> - document.addEventListener('DOMContentLoaded', function() { - var elems = document.querySelectorAll('.tooltipped'); - var instances = M.Tooltip.init(elems, {}); - }); {% block script %} {% endblock%} </script> diff --git a/templates/registration/base_custom.html b/templates/registration/base_custom.html index 9843f5e..7a5bfee 100644 --- a/templates/registration/base_custom.html +++ b/templates/registration/base_custom.html @@ -1,8 +1,9 @@ <!DOCTYPE html> <html> <head> + {% load static %} <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> + <link rel="stylesheet" type="text/css" href="{% static 'materialize.min.css' %}"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta charset="utf-8"> <title>{% block title %}Scout Brega{% endblock %}</title> @@ -14,11 +15,8 @@ {% block content %} {% endblock %} </main> - <script - src="https://code.jquery.com/jquery-3.5.1.min.js" - integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" - crossorigin="anonymous"></script> - <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> + <script type="text/javascript" src="{% static 'jquery-3.5.1.min.js' %}"></script> + <script type="text/javascript" src="{% static 'materialize.min.js' %}"></script> <script type="text/javascript"> {% block script %} {% endblock %} diff --git a/templates/registration/base_simple.html b/templates/registration/base_simple.html index 82087bc..980aeca 100644 --- a/templates/registration/base_simple.html +++ b/templates/registration/base_simple.html @@ -1,8 +1,9 @@ <!DOCTYPE html> <html> <head> + {% load static %} <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> + <link rel="stylesheet" type="text/css" href="{% static 'materialize.min.css' %}"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta charset="utf-8"> <title>{% block title %}Scout Brega{% endblock %}</title> @@ -12,6 +13,6 @@ {% block content %} {% endblock %} </main> - <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> + <script type="text/javascript" src="{% static 'materialize.min.js' %}"></script> </body> </html>
\ No newline at end of file |