Skip to content

Commit

Permalink
Use 'asset_url_for' template tag for static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzjooste committed Jan 9, 2018
1 parent 80957cc commit 798a9e4
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions brigade/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ <h2>Code of Conduct</h2>
<div class="panel__body layout-centered">
<h4>Funders</h4>
<ul class="list list--inline">
<li><a href="https://www.rallydev.com/about/rally-for-impact" target="_blank"><img src="{{ url_for('static', filename='images/CAlogo.png') }}" height="60px"></a></li>
<li><a href="https://www.esri.com/" target="_blank"><img src="{{ url_for('static', filename='images/logo_esri.png') }}" height="60px"></a></li>
<li><a href="https://knightfoundation.org/" target="_blank"><img src="{{ url_for('static', filename='images/logo_knightfoundation.png') }}" height="60px"></a></li>
<li><a href="https://www.rallydev.com/about/rally-for-impact" target="_blank"><img src="{{ asset_url_for('images/CAlogo.png') }}" height="60px"></a></li>
<li><a href="https://www.esri.com/" target="_blank"><img src="{{ asset_url_for('images/logo_esri.png') }}" height="60px"></a></li>
<li><a href="https://knightfoundation.org/" target="_blank"><img src="{{ asset_url_for('images/logo_knightfoundation.png') }}" height="60px"></a></li>
</ul>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions brigade/templates/free_software.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ <h2>Cloud Hosting</h2>
<div class="inkind-card-list">
<a class="inkind-card" href="{{ url_for(".free_software_show", software="heroku") }}">
<div class="inkind-card__logo">
<img src="/static/images/software_heroku.png" width="102px" />
<img src="{{ asset_url_for('images/software_heroku.png') }}" width="102px" />
</div>
<p>Heroku is a simple, easy-to-use cloud hosting service which is perfect for small to medium projects.</p>
<div class="button">Learn more</div>
</a>

<a class="inkind-card" href="{{ url_for(".free_software_show", software="bizspark") }}">
<div class="inkind-card__logo">
<img src="/static/images/software_bizspark.jpg" width="200px" />
<img src="{{ asset_url_for('images/software_bizspark.jpg') }}" width="200px" />
</div>
<p>Microsoft's Bizspark program offers free Microsoft software and credits for their cloud platform, Azure.</p>
<div class="button">Learn more</div>
</a>

<a class="inkind-card" href="{{ url_for(".free_software_show", software="twilio") }}">
<div class="inkind-card__logo">
<img src="/static/images/software_twilio.png" width="200px" />
<img src="{{ asset_url_for('images/software_twilio.png') }}" width="200px" />
</div>
<p>Twilio is the easiest way to send SMS messages or handle phone calls for your project.</p>
<div class="button">Learn more</div>
Expand All @@ -59,7 +59,7 @@ <h2>Communications</h2>
<div class="inkind-card-list">
<a class="inkind-card" href="{{ url_for(".free_software_show", software="slack") }}">
<div class="inkind-card__logo">
<img src="/static/images/software_slack.png" width="200px" />
<img src="{{ asset_url_for('images/software_slack.png') }}" width="200px" />
</div>
<p>Slack is a group communication tool built around chat.</p>
<div class="button">Learn more</div>
Expand All @@ -71,7 +71,7 @@ <h2>Mapping Software</h2>
<div class="inkind-card-list">
<a class="inkind-card" href="{{ url_for(".free_software_show", software="carto") }}">
<div class="inkind-card__logo">
<img src="/static/images/software_carto.png" width="200px" />
<img src="{{ asset_url_for('images/software_carto.png') }}" width="200px" />
</div>
<p>CARTO helps you easily work with and visualize geospatial data.</p>
<div class="button">Learn more</div>
Expand All @@ -84,7 +84,7 @@ <h2>Other</h2>
<div class="inkind-card-list">
<a class="inkind-card" href="{{ url_for(".free_software_show", software="github") }}">
<div class="inkind-card__logo">
<img src="/static/images/software_github.png" width="200px" />
<img src="{{ asset_url_for('images/software_github.png') }}" width="200px" />
</div>
<p>GitHub offers code hosting and project management tools for open source projects.</p>
<div class="button">Learn more</div>
Expand Down
4 changes: 2 additions & 2 deletions brigade/templates/free_software/aws.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/static/images/software_aws.png" width="200px" />
<img src="{{ asset_url_for('images/software_aws.png') }}" width="200px" />
{% endblock %}

{% block software %}
Expand All @@ -19,7 +19,7 @@ <h5>How do you get access?</h5>

<p>If you have an existing account, make sure the Account Name is the name of your brigade.</p>

<img src="/static/images/software_aws_account.png" />
<img src="{{ asset_url_for('images/software_aws_account.png') }}" />

<p>This is what the account details should look like. Finally, send the Account ID number to <a href="mailto:[email protected]">[email protected]</a> along with the following information:</p>

Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/bizspark.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/static/images/software_bizspark.jpg" width="209px" />
<img src="{{ asset_url_for('images/software_bizspark.jpg') }}" width="209px" />
{% endblock %}

{% block software %}
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/carto.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/static/images/software_carto.png" width="200px" />
<img src="{{ asset_url_for('images/software_carto.png') }}" width="200px" />
{% endblock %}

{% block software %}
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/github.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/static/images/software_github.png" width="140px" />
<img src="{{ asset_url_for('images/software_github.png') }}" width="140px" />
{% endblock %}

{% block software %}
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/gsuite.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/brigade/static/images/software_gsuite.svg" width="200px" />
<img src="{{ asset_url_for('images/software_gsuite.svg') }}" width="200px" />
{% endblock %}

{% block software %}
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/heroku.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/static/images/software_heroku.png" width="192px" />
<img src="{{ asset_url_for('images/software_heroku.png') }}" width="192px" />
{% endblock %}

{% block software %}
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/slack.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/static/images/software_slack.png" width="192px" />
<img src="{{ asset_url_for('images/software_slack.png') }}" width="192px" />
{% endblock %}

{% block software %}
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/free_software/twilio.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "free_software.html" %}

{% block logo %}
<img src="/brigade/static/images/software_twilio.png" width="200px" />
<img src="{{ asset_url_for('images/software_twilio.png') }}" width="200px" />
{% endblock %}

{% block software %}
Expand Down
8 changes: 4 additions & 4 deletions brigade/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<section id="overview">
<div class="panel panel--red" id="intro-panel">
<div class="panel__header">
<img id="logo" src="{{ url_for('static', filename='images/the_brigade.png') }}" />
<img id="logo" src="{{ asset_url_for('images/the_brigade.png') }}" />
</div>
<div class="panel__body padding-top-none">
The Code for America Brigade Network is a national alliance of community organizers, developers, and designers that are putting technology to work in service of our local communities. We believe that government can work, for the people, by the people, in the 21st century, if we all help.
Expand All @@ -30,9 +30,9 @@
<div class="panel__body layout-centered">
<h4>Funders</h4>
<ul class="list list--inline">
<li><a href="https://www.rallydev.com/about/rally-for-impact" target="_blank"><img src="{{ url_for('static', filename='images/CAlogo.png') }}" height="60px"></a></li>
<li><a href="https://www.esri.com/" target="_blank"><img src="{{ url_for('static', filename='images/logo_esri.png') }}" height="60px"></a></li>
<li><a href="https://knightfoundation.org/" target="_blank"><img src="{{ url_for('static', filename='images/logo_knightfoundation.png') }}" height="60px"></a></li>
<li><a href="https://www.rallydev.com/about/rally-for-impact" target="_blank"><img src="{{ asset_url_for('images/CAlogo.png') }}" height="60px"></a></li>
<li><a href="https://www.esri.com/" target="_blank"><img src="{{ asset_url_for('images/logo_esri.png') }}" height="60px"></a></li>
<li><a href="https://knightfoundation.org/" target="_blank"><img src="{{ asset_url_for('images/logo_knightfoundation.png') }}" height="60px"></a></li>
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion brigade/templates/organize/playbook.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h2>Brigade Organizer's Playbook</h2>
<p>The Brigade Organizer's Playbook focuses on the three areas key to running a sustainable Brigade: infrastructure, organizing, and building.</p>
<p>The playbook is a work in progress. We will continue to build on its content, design, and format.</p>
<p><a href="{{ asset_url_for('Playbook_PDF_2_2016.pdf') }}" target="_blank" title="Playbook PDF Download">Download</a> the playbook or <a href="https://docs.google.com/document/d/19bN5RWK5nQTpz0mHUViHrzHiommBUAMSztwNRzUcxYo/edit#" target="_blank" title="Playbook Google Doc view">view the Google doc</a>.</p>
<p><a href="{{ asset_url_for('pdf/Playbook_PDF_2_2016.pdf') }}" target="_blank" title="Playbook PDF Download">Download</a> the playbook or <a href="https://docs.google.com/document/d/19bN5RWK5nQTpz0mHUViHrzHiommBUAMSztwNRzUcxYo/edit#" target="_blank" title="Playbook Google Doc view">view the Google doc</a>.</p>
</div>

</section>
Expand Down

0 comments on commit 798a9e4

Please sign in to comment.