Changeset - 18de3adfce7a
[Not reviewed]
0 9 0
Ben Sturmfels (bsturmfels) - 2 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">
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>
conservancy/static/sustainer/original-supporter-appeal.html
Show inline comments
...
 
@@ -3,13 +3,13 @@
 

	
 
{% 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;">
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">
conservancy/templates/base_conservancy.html
Show inline comments
...
 
@@ -9,15 +9,15 @@
 
    <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 %}">
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">
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">
conservancy/templates/supporter/index.html
Show inline comments
...
 
@@ -2,13 +2,13 @@
 
{% 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">
conservancy/urls.py
Show inline comments
...
 
@@ -26,15 +26,13 @@ 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()),
0 comments (0 inline, 0 general)