Changeset - caa0ff7b861d
[Not reviewed]
0 3 0
Ben Sturmfels (bsturmfels) - 3 months ago 2024-02-26 22:25:05
ben@sturm.com.au
Load JS through Django's staticfiles app

This avoids the need for adjustments during development and allows production to
be served under a single /static declaration in Apache.
3 files changed with 18 insertions and 16 deletions:
0 comments (0 inline, 0 general)
conservancy/static/sustainer/original-supporter-appeal.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load static %}
 

	
 
{% block subtitle %}Support Conservancy - {% endblock %}
...
 
@@ -5,3 +7,3 @@
 
{% block head %}
 
<script type="text/javascript" src="/js/supporter-page.js"></script>
 
<script type="text/javascript" src="{% static 'js/supporter-page.js' %}"></script>
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
...
 
@@ -23,6 +25,6 @@
 
<h4><a href="#monthly"><span class="donate-box-highlight">Monthly supporter</span> via PayPal, ACH, or credit card.</a></h4>
 
   
 

 
<span class="donate-box-highlight">Other annual supporters methods:</span>
 
<div class="toggle-unit">
 
    <h4 class="toggle-control" data-text="Wire Transfer" 
 
    <h4 class="toggle-control" data-text="Wire Transfer"
 
    data-expanded-text="Wire Transfer:">Wire Transfer</h4>
...
 
@@ -36,3 +38,3 @@
 
<div class="toggle-unit">
 
    <h4 class="toggle-control" data-text="Paper Check" 
 
    <h4 class="toggle-control" data-text="Paper Check"
 
    data-expanded-text="Paper Check:">Paper Check</h4>
...
 
@@ -43,3 +45,3 @@
 
    BROOKLYN, NY 11201-3548 &nbsp; USA<br/>
 
    Please write <q>SUPPORTER</q> and t-shirt size in memo line. 
 
    Please write <q>SUPPORTER</q> and t-shirt size in memo line.
 
    </div><!-- /.toggle-content -->
...
 
@@ -57,3 +59,3 @@
 
open source software. We are the home of over
 
<a href="/members/current/">30 projects</a> like 
 
<a href="/members/current/">30 projects</a> like
 
<a href="http://git-scm.org">Git</a>,
...
 
@@ -90,5 +92,5 @@ software. We advocate for free and open source software and provide
 
education around that mission.  We form partnerships across our
 
communities to work more effectively.  Check out <a 
 
communities to work more effectively.  Check out <a
 
href="https://copyleft.org/">copyleft.org</a>
 
or sign up to join the <a 
 
or sign up to join the <a
 
href="/news/2014/aug/12/tax-exempt-working-group/">
...
 
@@ -96,3 +98,3 @@ tax exempt working group</a>.</li>
 

	
 
<li>we seek to solve problems for the public through free and open 
 
<li>we seek to solve problems for the public through free and open
 
source
...
 
@@ -114,5 +116,5 @@ of dollars in licensing fees for subpar accounting software.</li>
 

	
 
<p>As an organization, we try to do everything transparently; even 
 
<p>As an organization, we try to do everything transparently; even
 
our
 
<a 
 
<a
 
href="https://gitorious.org/conservancy/policies/source/master:">
...
 
@@ -163,3 +165,3 @@ internal policies</a> are published and available for scrutiny.</p>
 
                      <input type="radio" name="on1" value="publicAckNo" />No<br/>
 
            
 

 
                      <label for="joinList"><strong>Join Conservancy's
conservancy/templates/base_conservancy.html
Show inline comments
...
 
@@ -17,4 +17,4 @@
 
    <link rel="stylesheet" type="text/css" media="(min-width: 67em)" href="/css/conservancy-bigscreen.css" />
 
    <script type="text/javascript" src="/js/jquery-1.7.2.js"></script>
 
    <script type="text/javascript" src="/js/conservancy.js"></script>
 
    <script type="text/javascript" src="{% static 'js/jquery-1.7.2.js' %}"></script>
 
    <script type="text/javascript" src="{% static 'js/conservancy.js' %}"></script>
 
    {% block head %}{% endblock %}
conservancy/templates/supporter/index.html
Show inline comments
...
 
@@ -6,3 +6,3 @@
 
{% block head %}
 
<script type="text/javascript" src="/js/supporter-page.js"></script>
 
<script type="text/javascript" src="{% static 'js/supporter-page.js' %}"></script>
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
...
 
@@ -177,3 +177,3 @@ Our Executive Director Karen Sandler received an honorary doctorate from
 
Katholieke Universiteit Leuven for her incredible work in FOSS leadership, and
 
her advocacy and pursuit of software freedom and rights for all. 
 
her advocacy and pursuit of software freedom and rights for all.
 
In November she spoke at <a href="https://www.sfscon.it/talks/the-history-of-and-path-forward-for-copyleft-and-the-gpl/">SFSCON about "The History of, and Path forward for, Copyleft and the GPL"</a>.</p>
0 comments (0 inline, 0 general)