Changeset - 18de3adfce7a
[Not reviewed]
0 9 0
Ben Sturmfels (bsturmfels) - 3 months ago 2024-02-26 22:34:11
ben@sturm.com.au
Similarly load CSS via Django staticfiles app
9 files changed with 15 insertions and 12 deletions:
0 comments (0 inline, 0 general)
conservancy/static/activities/index.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load cache %}
 
{% load humanize %}
 
{% load static %}
 
{% block category %}WhatWeDo{% endblock %}
 
{% block head %}
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 

	
 
{% endblock %}
 

	
 
{% block outercontent %}
 
<div class="content-with-donate-sidebar mw8 center ph2 ph3">
 
    <div id="container">
 
         <div id="mainContent">
 
           {% block content %}
 
           <h1>What We Do</h1>
 
           <p>Software Freedom Conservancy is a nonprofit organization
 
           centered around ethical technology. Our mission is to ensure the
 
           right to repair, improve and reinstall software. We promote and
 
           defend these rights through fostering free and open source
 
           software (FOSS) projects, driving initiatives that actively make
 
           technology more inclusive, and advancing policy strategies that
 
             defend FOSS (such as copyleft).</p>
 

	
 
           <p>Our work on <a href="/copyleft-compliance/">copyleft
 
           compliance</a>, including enforcement of the General Public
 
           License (GPL), is world-renowned.  We believe fundamentally that
 
           copyleft licenses are the best tool available today to empower
 
           users and consumers to take control of their electronic devices,
 
           liberate themselves from planned obsolesce, and join a free market
 
           where they choose who provides their software.</p>
conservancy/static/sustainer/event.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load static %}
 
{% block subtitle %}Attend Supporter Night - {% endblock %}
 
{% block category %}supporter{% endblock %}
 

	
 
{% block head %}
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 
{% endblock %}
 

	
 
{% block content %}
 
<div class="content-with-donate-sidebar">
 
  <h1>Conservancy Supporter Night 2015</h1>
 
  <p>
 
  <dl>
 
    <dt>Who</dt> <dd><strong>Everyone</strong>: just show up at 6:30PM with &euro;50!
 
    &mdash;  <a href="/supporter#annual">Conservancy Annual Supporters</a> attend <em>gratis</em>.</dd>
 
    <dt>When</dt> <dd>Friday 30 January 2015 at 18:30 (6:30PM)</dd>
 
    <dt>Where</dt> <dd><a href="http://www.drugopera.be/">Drug Opera</a>
 
    Restaurant at Rue Gr&eacute;try 51, 1000 Brussels, Belgium
 
    (<a href="http://www.openstreetmap.org/node/2698048172#map=18/50.84898/4.35214">map</a>)</dd>
 
    <dt>What</dt> <dd>Full prix fixe dinner (one drink included)</dd>
 
    <dt>Why</dt> <dd>Enjoy a meal while meeting and discussing Free Software
 
    with fellow Conservancy enthusiasts
 
    and <a href="/about/staff/#bkuhn">Bradley</a> and
 
    <a href="/about/staff/#karen">Karen</a> from
 
    Conservancy's executive team (and the <a href="http://faif.us"><cite>Free
 
        as in Freedom</cite> audcast</a>).</dd>
 
    </dl>
 
    </p>
 

	
 
  <p>Conservancy's Annual Supporter Night will be held this year on the
conservancy/static/sustainer/original-supporter-appeal.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load static %}
 

	
 
{% block subtitle %}Support Conservancy - {% endblock %}
 
{% block category %}supporter{% endblock %}
 

	
 
{% block head %}
 
<script type="text/javascript" src="{% static 'js/supporter-page.js' %}"></script>
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 
{% endblock %}
 

	
 
{% block content %}
 
<div class="donate-sidebar">
 
<table style="background-color:#afe478;width:100%;">
 
<tr><td style="text-align:center;padding:10px;padding-bottom:10px;">
 

	
 
<div id="donate-box" class="toggle-unit"><h1 class="toggle-content">Support
 
    Now!</h1></div>
 

	
 
<h3 class="donate-box-highlight">Become a Supporter Now:</h3>
 

	
 
<p>Support us now!</p>
 

	
 
<h4><a href="#annual"><span class="donate-box-highlight">Annual supporter</span> via PayPal, ACH, or credit card.</a></h4>
 
<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"
 
    data-expanded-text="Wire Transfer:">Wire Transfer</h4>
 
    <div class="toggle-content">
 
       Contact <a href="mailto:accounting@sfconservancy.org">Conservancy
 
            by email</a><br/> for wire transfer instructions.<br/>
conservancy/templates/base_compliance.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% block category %}WhatWeDo{% endblock %}
 
{% load cache %}
 
{% load humanize %}
 
{% load static %}
 
{% block head %}
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 

	
 
{% endblock %}
 

	
 
{% block outercontent %}
 
<div class="content-with-donate-sidebar mw8 center ph2 ph3">
 
    <div id="container">
 
         <div id="mainContent">{% block content %}{% endblock %}</div>
 
         <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
 
            <h2>What We Do</h2>
 
            {% include 'submenus/what_we_do_partial.html' %}
 
            <h2>Vizio Lawsuit</h2>
 
            <ul>
 
            <li class="VizioMain"><a href="/copyleft-compliance/vizio.html">About the Lawsuit</a></li>
 
            <li class="VizioPressRelease"><a href="/copyleft-compliance/vizio-filing-press-release.html">Press Release</a></li>
 
            <li class="VizioComplaint"><a href="/docs/software-freedom-conservancy-v-vizio-complaint-2021-10-19.pdf">Complaint</a></li>
 
            <li class="VizioQandA"><a href="/press/qanda.html">Q&amp;A</a></li>
 
            </ul>
 
            <h2>Resources for Journalists on Vizio</h2>
 
            <ul>
 
            <li class="VizioPressKit"><a href="/docs/software-freedom-conservancy-v-vizio-announce-press-kit.pdf">Press Kit</a></li>
 
            <li class="VizioPhotoAssets"><a href="/docs/software-freedom-conservancy-v-vizio-photo-assets.zip">Photo Assets</a></li>
 
            <li class="Glossary"><a href="/copyleft-compliance/glossary.html">Glossary</a></li>
 
            </ul>
 
            <h2>More About Copyleft Compliance</h2>
conservancy/templates/base_conservancy.html
Show inline comments
 
{% load min %}
 
{% load static %}
 

	
 
<!DOCTYPE html>
 

	
 
<html lang="en" prefix="og: http://ogp.me/ns#">
 

	
 
  <head>
 
    <title>{% block title %}{% block subtitle %}{% endblock %}Software Freedom Conservancy{% endblock %}</title>
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
 
    <meta name="description" content="The Software Freedom Conservancy provides a non-profit home and services to Free, Libre and Open Source Software (FLOSS) projects." />
 
    <meta name="keywords" content="software, freedom, conservancy, open source, gnu, GNU, Open Source, Free and Open Source, Free and Open Source Software, FLOSS, FOSS, protect, protection, help, policy, linux, non-profit" />
 
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
 
    <link rel="stylesheet" type="text/css" href="/css/tachyons.css"/>
 
    <link rel="stylesheet" type="text/css" media="screen" href="/css/conservancy.css" />
 
    <link rel="stylesheet" type="text/css" media="(min-width: 67em)" href="/css/conservancy-bigscreen.css" />
 
    <link rel="stylesheet" type="text/css" href="{% static 'css/tachyons.css' %}"/>
 
    <link rel="stylesheet" type="text/css" media="screen" href="{% static 'css/conservancy.css' %}" />
 
    <link rel="stylesheet" type="text/css" media="(min-width: 67em)" href="{% static 'css/conservancy-bigscreen.css' %}" />
 
    <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 %}
 
  </head>
 

	
 
  <body class="conservancy-{% block category %}{% endblock %}">
 
    <header>
 
      <div class="flex-ns center mw8">
 
        <div class="w-60-ns">
 
          <h1 id="conservancyheader" class="mt2 mt3-ns mb2 mb3-ns">
 
            <a href="/">
 
              <img src="/img/conservancy-header.svg" alt="Software Freedom Conservancy" class="db center mh3-ns" />
 
            </a>
 
          </h1>
 
        </div>
 

	
 
        <ul id="feature-menu" class="w-40-ns mt2 mt4-ns mb2 mb2-ns mh2 pt1 flex flex-wrap justify-center items-center list">
 
            <li><span id="menu-icon" class="dn-ns ph2 pointer">
 
            <svg style="color: var(--orange); width: 30px; height: 30px;"><use href="{% static 'img/font_awesome.svg' %}#bars"></use></svg>
 
            </span></li>
 
            <li class="donate"><a href="/donate/" class="f5 mh1 mv1 ph2 pv1 ttu b btn-orange">Donate</a></li>
 
            <li class="sustainer"><a href="/sustainer/" class="f5 mh1 mv1 ph2 pv1 ttu b btn-orange">Join</a></li>
 
            <li class="vizio"><a href="/vizio/" class="f5 mh1 mv1 ph2 pv1 ttu b btn-orange">Vizio</a></li>
 
            <li><span id="search-icon" class="dib ph2 pointer">
conservancy/templates/base_press.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load cache %}
 
{% load humanize %}
 
{% load static %}
 
{% block category %}News{% endblock %}
 
{% block head %}
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 

	
 
{% endblock %}
 

	
 
{% block outercontent %}
 
<div class="content-with-donate-sidebar mw8 center ph2 ph3">
 
    <div id="container">
 
         <div id="mainContent">{% block content %}{% endblock %}</div>
 
         <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
 
            <h2>What We Do</h2>
 
            {% include 'submenus/what_we_do_partial.html' %}
 
            <h2>Resources for Journalists</h2>
 
            <ul>
 
            <li class="News"><a href="/news/">News</a></li>
 
            <li class="PressKit"><a href="/press/">Vizio Press Kit</a></li>
 
            <li class="IssuesInTheNews"><a href="/press/inthenews.html">Our Issues In The News</a></li>
 
            <li class="VizioPress"><a href="/press/vizio-coverage.html">Our Vizio Lawsuit In The News</a></li>
 
            <li class="Glossary"><a href="/copyleft-compliance/glossary.html">Glossary</a></li>
 
            </ul>
 
         </div>
 
    </div>
 
<div class="donate-sidebar">
 
  <details>
 
    <summary>Support Now!</summary>
 

	
conservancy/templates/base_vizio.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load cache %}
 
{% load humanize %}
 
{% load static %}
 
{% block category %}Vizio{% endblock %}
 
{% block head %}
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 

	
 
{% endblock %}
 

	
 
{% block outercontent %}
 
<div class="content-with-donate-sidebar mw8 center ph2 ph3">
 
    <div id="container">
 
         <div id="mainContent">{% block content %}{% endblock %}</div>
 
         <div id="sidebar" class="VizioTopBar {% block submenuselection %}{% endblock %}">
 
            <h2>What We Do</h2>
 
            {% include 'submenus/what_we_do_partial.html' %}
 
            <h2>Vizio Lawsuit</h2>
 
            <ul>
 
            <li class="VizioMain"><a href="/copyleft-compliance/vizio.html">About the Lawsuit</a></li>
 
            <li class="VizioPressRelease"><a href="/copyleft-compliance/vizio-filing-press-release.html">Press Release</a></li>
 
            <li class="VizioComplaint"><a href="/docs/software-freedom-conservancy-v-vizio-complaint-2021-10-19.pdf">Complaint</a></li>
 
            <li class="VizioQandA"><a href="/press/qanda.html">Q&amp;A</a></li>
 
            <li class="VizioPress"><a href="/press/vizio-coverage.html">Vizio Press Coverage</a></li>
 
            </ul>
 
            <h2>Resources for Journalists</h2>
 
            <ul>
 
            <li class="VizioPressKit"><a href="/docs/software-freedom-conservancy-v-vizio-announce-press-kit.pdf">Press Kit</a></li>
 
            <li class="VizioPhotoAssets"><a href="/docs/software-freedom-conservancy-v-vizio-photo-assets.zip">Photo Assets</a></li>
 
            <li class="Glossary"><a href="/copyleft-compliance/glossary.html">Glossary</a></li>
 
            </ul>
conservancy/templates/supporter/index.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% load static %}
 
{% block subtitle %}Support Conservancy - {% endblock %}
 
{% block category %}sustainer{% endblock %}
 

	
 
{% block head %}
 
<script type="text/javascript" src="{% static 'js/supporter-page.js' %}"></script>
 
<link href="/css/forms.css" rel="stylesheet" type="text/css"/>
 
<link href="{% static 'css/forms.css' %}" rel="stylesheet" type="text/css"/>
 
{% include "opengraph_partial.html" with url="/sustainer/" title="Support Conservancy!" description="Software freedom is critical to many of today&rsquo;s most pressing social issues, but it&rsquo;s only effective when FOSS is for everyone. Support Conservancy today to help make that happen!" %}
 
{% include "opengraph_urllist_partial.html" with property='image' urls='' fallback='/img/conservancy-logo.png' %}
 
{% endblock %}
 

	
 
{% block content %}
 
<div class="breadcrumbs">
 
  <p><a href="/">Home</a> / <a href="/about">Who We Are</a></p>
 
</div>
 

	
 

	
 
<div class="content-with-donate-sidebar" id="formStart">
 

	
 

	
 
{% if partial_amount > 0 %}
 
  {% include "supporter/form_partial.html" with form_id="annual" min_amt=minimum_amount partial_amt=partial_amount article="an" only %}
 
{% else %}
 
  <div class="supporter-type-selector">
 
    <strong>Become a Sustainer Now:</strong>
 
    <a id="annualSelector" href="#annual">Annual</a>
 
    | <a id="monthlySelector" href="#monthly">Monthly</a>
 
    | <a id="renewalSelector" href="#renewal">Annual Renew</a>
 
  </div>
 

	
 
  {% include "supporter/form_partial.html" with form_id="annual" min_amt=120 default_amt=128 article="an" only %}
conservancy/urls.py
Show inline comments
...
 
@@ -8,51 +8,49 @@
 
# version 3 of the License, or (at your option) any later version of the
 
# AGPL published by the FSF.
 
#
 
# This program is distributed in the hope that it will be useful, but
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero
 
# General Public License for more details.
 
#
 
# You should have received a copy of the GNU Affero General Public License
 
# along with this program in a file in the toplevel directory called
 
# "AGPLv3".  If not, see <http://www.gnu.org/licenses/>.
 

	
 
from django.conf.urls import url
 
from django.urls import include, path
 
from django.contrib import admin
 

	
 
from . import feeds, frontpage, sponsors
 
from .fundgoal import views as fundgoal_views
 
from .static import views as static_views
 

	
 
admin.autodiscover()
 

	
 
urlpatterns = [
 
    # Uncomment these 3 lines when testing locally to get static content
 
    url(r'^css', static_views.index),
 
    url(r'^img', static_views.index),
 
    url(r'^js', static_views.index),
 
    url(r'^$', frontpage.view),
 
    url(r'^sponsors$', frontpage.view),
 
    url(r'^sponsors/$', sponsors.view),
 
    url(r'^sponsors/index.html$', sponsors.view),
 
    url(r'^admin/', admin.site.urls),
 
    url(r'^feeds/blog/?$', feeds.BlogFeed()),
 
    url(r'^feeds/news/?$', feeds.PressReleaseFeed()),
 
    url(r'^feeds/omnibus/?$', feeds.OmnibusFeed()),
 
    url(r'^feeds/?$', feeds.view),
 
    url(r'^news/', include('conservancy.news.urls')),
 
    url(r'^blog/', include('conservancy.blog.urls')),
 
    # formerly static templated things... (dirs with templates)
 
    url(r'^error/(40[134]|500)(?:/index\.html|/|)$', static_views.handler),
 
    url(r'^error', static_views.index),
 
    url(r'^about', static_views.index),
 
    url(r'^activities', static_views.index),
 
    url(r'^donate', static_views.index),
 
    url(r'^copyleft-compliance', static_views.index, {'fundraiser_sought': 'vmware-match-0'}),
 
    url(r'^learn', static_views.index),
 
    url(r'^press', static_views.index),
 
    url(r'^projects', static_views.index),
 
    url(r'^GiveUpGitHub', static_views.index),
 
    url(r'^npoacct', static_views.index, {'fundraiser_sought': 'npoacct'}),
 
    url(r'^contractpatch', include('conservancy.contractpatch.urls')),
0 comments (0 inline, 0 general)