Skip to content

Commit

Permalink
made all single quote to double quote for html attributes (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsollet authored and CelineBoudier committed Mar 23, 2018
1 parent ca63cc5 commit b60fa65
Show file tree
Hide file tree
Showing 50 changed files with 374 additions and 377 deletions.
2 changes: 1 addition & 1 deletion portal/templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h4>Kirsty says you&rsquo;re not allowed there.</h4>
<a class="button button--regular button--primary--general-educate" href="{% url 'home' %}">Back to homepage</a>
</div>

<img title="Kirsty" alt="Kirsty" src='{% static "portal/img/kirsty_hi_res.png" %}'/>
<img title="Kirsty" alt="Kirsty" src="{% static 'portal/img/kirsty_hi_res.png' %}"/>
</div>

{% endblock content %}
2 changes: 1 addition & 1 deletion portal/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h4>Sorry, Nigel can&rsquo;t find the page you were looking for.</h4>
<a class="button button--regular button--primary--general-educate" href="{% url 'home' %}">Back to homepage</a>
</div>

<img title="Nigel" alt="Nigel" src='{% static "portal/img/nigel_hi_res.png" %}'/>
<img title="Nigel" alt="Nigel" src="{% static 'portal/img/nigel_hi_res.png' %}"/>
</div>

{% endblock content %}
18 changes: 9 additions & 9 deletions portal/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>Code For Life - there has been an error</title>

<link rel="stylesheet" type="text/css" href='{% static "portal.css" %}'>
<link rel="stylesheet" type="text/css" href="{% static 'portal.css' %}">
<link href="https://fonts.googleapis.com/css?family=Baloo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">

Expand All @@ -19,7 +19,7 @@
<div class="menu col-sm-12">
<div class="menu__left-side col-sm-6 col-sm-offset-2">
<button class="hamburger" data-toggle="collapse" data-target="#menu-items"></button>
<a href="{% url 'home' %}"><img class="logo-horizontal" src='{% static "portal/img/logo_c4l_horizontal.png" %}'></a>
<a href="{% url 'home' %}"><img class="logo-horizontal" src="{% static 'portal/img/logo_c4l_horizontal.png' %}"></a>
<a href="{% url 'home' %}" class="button--regular button--secondary--no-border home-icon"><div class="glyphicon glyphicon-home"></div></a>
{% block leftMenuButtons %}
{% if user|is_logged_in %}
Expand Down Expand Up @@ -103,17 +103,17 @@ <h4>Oh dear! Something technical has gone wrong.</h4>
<a class="button button--regular button--primary--general-educate" href="{% url 'home' %}">Back to homepage</a>
</div>

<img title="Dee" alt="Dee" src='{% static "portal/img/dee_hi_res.png" %}'/>
<img title="Dee" alt="Dee" src="{% static 'portal/img/dee_hi_res.png' %}"/>
</div>
</div>

<div class="push"></div>
</div>

<div class="footer">
<a id="back_to_top_button" class="back-to-top" href="#top"><img class="no-padding" src='{% static "portal/img/footer_arrow.png" %}'></a>
<a id="back_to_top_button" class="back-to-top" href="#top"><img class="no-padding" src="{% static 'portal/img/footer_arrow.png' %}"></a>
<p><a href="#top"><small>BACK TO TOP</small></a></p>
<img class="col-sm-3" src='{% static "portal/img/logo_c4l_horizontal.png" %}'>
<img class="col-sm-3" src="{% static 'portal/img/logo_c4l_horizontal.png' %}">
<div class="row">
<p><a href="{% url 'about' %}">About us</a></p>
<p><a href="{% url 'teach' %}">Teachers</a></p>
Expand All @@ -123,11 +123,11 @@ <h4>Oh dear! Something technical has gone wrong.</h4>
<p><a href="{% url 'terms' %}">Terms of use</a></p>
</div>
<div class="row social-media"><br>
<a target="_blank" href="https://twitter.com/codeforlifeuk"><img src='{% static "portal/img/twitter.png" %}'></a>
<a target="_blank" href="https://www.facebook.com/codeforlifeuk/"><img src='{% static "portal/img/facebook.png" %}'></a>
<a target="_blank" href="https://plus.google.com/u/0/100583499170006777522"><img src='{% static "portal/img/google+.png" %}'></a>
<a target="_blank" href="https://twitter.com/codeforlifeuk"><img src="{% static 'portal/img/twitter.png' %}"></a>
<a target="_blank" href="https://www.facebook.com/codeforlifeuk/"><img src="{% static 'portal/img/facebook.png' %}"></a>
<a target="_blank" href="https://plus.google.com/u/0/100583499170006777522"><img src="{% static 'portal/img/google+.png' %}"></a>
</div>
<a target="_blank" href="http://www.ocadotechnology.com/"><img src='{% static "portal/img/logo_ocado.png" %}'></a>
<a target="_blank" href="http://www.ocadotechnology.com/"><img src="{% static 'portal/img/logo_ocado.png' %}"></a>
<p><small>&copy; Ocado Technology 2017</small></p>
</div>

Expand Down
10 changes: 5 additions & 5 deletions portal/templates/portal/2FA_redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
<h2>Two Factor Authentication</h2><br>
<p>Loading Two Factor Login. Please wait.</p>
<div style="display: none">
<form action='/account/login/' method='post' id='redirect_form'>
<form action="/account/login/" method="post" id="redirect_form">

{% csrf_token %}

<input id="id_login_view-current_step" name="login_view-current_step" type="hidden" value="auth">

<input id='id_auth-username' name='auth-username'>
<input id='id_auth-password' name='auth-password'>
<input id="id_auth-username" name="auth-username">
<input id="id_auth-password" name="auth-password">

<button type="submit">Submit</button>
</form>
</div>

<script type='text/javascript'>
<script type="text/javascript">
$('#id_auth-username').val('{{ username }}')
$('#id_auth-password').val('{{ password }}')
$('#redirect_form').submit();
</script>

{% endblock content %}
{% endblock content %}
20 changes: 10 additions & 10 deletions portal/templates/portal/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ block.super }}
{% endblock scripts %}

{% block pageID %}id='homeWrapper'{% endblock %}
{% block pageID %}id="homeWrapper"{% endblock %}

{% block subNav %}
{{ block.super }}
Expand Down Expand Up @@ -113,14 +113,14 @@ <h4>Teachers, parents, and creatives</h4>
<section class="col-sm-7 col-center">
<h3>We would like to thank our friends who have contributed to this initiative</h3>
<div class="row image-row">
<img title="10x" alt="10x logo" src='{% static "portal/img/10x_logo.png" %}'>
<img title="BCS" alt="BCS logo" src='{% static "portal/img/bcs_logo.png" %}'>
<img title="ICL" alt="Imperial logo" src='{% static "portal/img/icl_logo.png" %}'>
<img title="Barefoot" alt="Barefoot logo" src='{% static "portal/img/barefoot_logo.png" %}'>
<img title="MC Saatchi" alt="MC Saatchi logo" src='{% static "portal/img/mc_saatchi_logo.png" %}'>
<img title="HOPE" alt="HOPE logo" src='{% static "portal/img/hope_logo.png" %}'>
<img title="GLA" alt="GLA logo" src='{% static "portal/img/gla_logo.png" %}'>
<img title="Pressure Cooker" alt="Pressure Cooker logo" src='{% static "portal/img/pressure_cooker_logo.png" %}'>
<img title="10x" alt="10x logo" src="{% static 'portal/img/10x_logo.png' %}">
<img title="BCS" alt="BCS logo" src="{% static 'portal/img/bcs_logo.png' %}">
<img title="ICL" alt="Imperial logo" src="{% static 'portal/img/icl_logo.png' %}">
<img title="Barefoot" alt="Barefoot logo" src="{% static 'portal/img/barefoot_logo.png' %}">
<img title="MC Saatchi" alt="MC Saatchi logo" src="{% static 'portal/img/mc_saatchi_logo.png' %}">
<img title="HOPE" alt="HOPE logo" src="{% static 'portal/img/hope_logo.png' %}">
<img title="GLA" alt="GLA logo" src="{% static 'portal/img/gla_logo.png' %}">
<img title="Pressure Cooker" alt="Pressure Cooker logo" src="{% static 'portal/img/pressure_cooker_logo.png' %}">
</div>
<p><small>10X, BCS Academy of Computing, Barefoot Computing, Computing at School, The National Museum of Computing, Imperial College London,
M&C Saatchi, Alvaro Ramirez, Jason Fingland, Ramneet Loyall, Sharon Harrison, Keith Avery, Dale Coan, Rob Whitehouse, Mandy Nash, Tanya
Expand All @@ -130,7 +130,7 @@ <h3>We would like to thank our friends who have contributed to this initiative</

<section class="background col-sm-5 col-center">
<h3>Dedicated to Sharon Harrison</h3>
<img title="Sharon Harrison" alt="Sharon Harrison portrait" class="portrait" src='{% static "portal/img/sharon_harrison.jpg" %}'>
<img title="Sharon Harrison" alt="Sharon Harrison portrait" class="portrait" src="{% static 'portal/img/sharon_harrison.jpg' %}">
<h4>1956 &mdash; 2015</h4>
<p>Sharon was instrumental in helping to create Code for Life. At the beginning of 2014 she was recruited to act as our Educational Consultant.
The project drew on her previous skills as a pioneering computing teacher and education consultant.</p>
Expand Down
40 changes: 20 additions & 20 deletions portal/templates/portal/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@

{% block css %}
{% cache 3600 fragment-base_new-css %}
<link href='{% static "portal.css" %}' type="text/css" rel="stylesheet">
<link href="{% static 'portal.css' %}" type="text/css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Baloo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
{% endcache %}
{% endblock css %}

{% cache 3600 fragment-base_new-javascript %}
<script type='text/javascript' src='{% static "portal/js/lib/jquery.js" %}'></script>
<script type="text/javascript" src='{% static "portal/js/lib/jquery-ui.js" %}'></script>
<script type='text/javascript' src='{% static "portal/js/bootstrap.js" %}'></script>
<script type="text/javascript" src='{% static "portal/js/lib/modernizr.custom.79639.js" %}'></script>
<script type="text/javascript" src='{% static "portal/js/common.js" %}'></script>
<script type="text/javascript" src='{% static "portal/js/deleteWorkspaces.js" %}'></script>
<script type="text/javascript" src="{% static 'portal/js/lib/jquery.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/lib/jquery-ui.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/bootstrap.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/lib/modernizr.custom.79639.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/common.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/deleteWorkspaces.js' %}"></script>
{% endcache %}
<script type="text/javascript" src='{% static "portal/js/jquery.placeholder.js" %}'></script>
<script type="text/javascript" src='{% static "portal/js/lib/jquery.colorbox.js" %}'></script>
<script type="text/javascript" src="{% static 'portal/js/jquery.placeholder.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/lib/jquery.colorbox.js' %}"></script>
<script type="text/javascript" src="{% static 'portal/js/sticky_subnav.js' %}"></script>
{% block check_user_status %}
<script>
Expand Down Expand Up @@ -81,14 +81,14 @@
{% include 'portal/mouseflow.html' %}

{% block contentWrapper %}
<div {% block pageID %}id='contentWrapper'{% endblock %}>
<div {% block pageID %}id="contentWrapper"{% endblock %}>
{% block topBar %}
<div class="header">
<a href="{% url 'home' %}"><img class="logo col-sm-offset-1"></a>
<div class="menu col-sm-12">
<div class="menu__left-side col-sm-6 col-sm-offset-2">
<button class="hamburger" data-toggle="collapse" data-target="#menu-items"></button>
<a href="{% url 'home' %}"><img class="logo-horizontal" src='{% static "portal/img/logo_c4l_horizontal.png" %}'></a>
<a href="{% url 'home' %}"><img class="logo-horizontal" src="{% static 'portal/img/logo_c4l_horizontal.png' %}"></a>
<a href="{% url 'home' %}" class="button--regular button--secondary--no-border home-icon"><div class="glyphicon glyphicon-home"></div></a>
{% block leftMenuButtons %}
{% if user|is_logged_in %}
Expand Down Expand Up @@ -173,15 +173,15 @@
{% endblock topBar %}
{% block subNav %}
{% endblock subNav %}
<div id='messages'>
<div id="messages">
{% if messages %}
<div class="sub-nav--message">
{% for message in messages %}
<div class="sub-nav {{ message.tags }}">
<img title="Information" alt="Information sign" src='{% static "portal/img/icon_info.png" %}'>
<img title="Information" alt="Information sign" src="{% static 'portal/img/icon_info.png' %}">
<p>
{% if 'safe' in message.tags %}{{ message|safe }}{% else %}{{ message }}{% endif %}</p>
<a class="x-icon"><img title="Close" alt="Close sign" src='{% static "portal/img/icon_close.png" %}'></a>
<a class="x-icon"><img title="Close" alt="Close sign" src="{% static 'portal/img/icon_close.png' %}"></a>
</div>
{% endfor %}
</div>
Expand Down Expand Up @@ -213,9 +213,9 @@
{% block footer %}
{% cache 3600 fragment-base_new-footer %}
<div class="footer">
<a id="back_to_top_button" class="back-to-top" href="#top"><img class="no-padding" src='{% static "portal/img/footer_arrow.png" %}'></a>
<a id="back_to_top_button" class="back-to-top" href="#top"><img class="no-padding" src="{% static 'portal/img/footer_arrow.png' %}"></a>
<p><a href="#top"><small>BACK TO TOP</small></a></p>
<img class="col-sm-3" src='{% static "portal/img/logo_c4l_horizontal.png" %}'>
<img class="col-sm-3" src="{% static 'portal/img/logo_c4l_horizontal.png' %}">
<div class="row">
<p><a href="{% url 'about' %}">About us</a></p>
<p><a href="{% url 'teach' %}">Teachers</a></p>
Expand All @@ -225,11 +225,11 @@
<p><a href="{% url 'terms' %}">Terms of use</a></p>
</div>
<div class="row social-media"><br>
<a target="_blank" href="https://twitter.com/codeforlifeuk"><img src='{% static "portal/img/twitter.png" %}'></a>
<a target="_blank" href="https://www.facebook.com/codeforlifeuk/"><img src='{% static "portal/img/facebook.png" %}'></a>
<a target="_blank" href="https://plus.google.com/u/0/100583499170006777522"><img src='{% static "portal/img/google+.png" %}'></a>
<a target="_blank" href="https://twitter.com/codeforlifeuk"><img src="{% static 'portal/img/twitter.png' %}"></a>
<a target="_blank" href="https://www.facebook.com/codeforlifeuk/"><img src="{% static 'portal/img/facebook.png' %}"></a>
<a target="_blank" href="https://plus.google.com/u/0/100583499170006777522"><img src="{% static 'portal/img/google+.png' %}"></a>
</div>
<a target="_blank" href="http://www.ocadotechnology.com/"><img src='{% static "portal/img/logo_ocado.png" %}'></a>
<a target="_blank" href="http://www.ocadotechnology.com/"><img src="{% static 'portal/img/logo_ocado.png' %}"></a>
<p><small>&copy; Ocado Technology 2017</small></p>
</div>
{% endcache %}
Expand Down
2 changes: 1 addition & 1 deletion portal/templates/portal/base_no_userprofile.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

{% block subNav %}
{# remove subNav that checks user_status as admin accounts do not have userProfile #}
{% endblock subNav %}
{% endblock subNav %}
Loading

0 comments on commit b60fa65

Please sign in to comment.