Allow "outercontent" template block to use full page width

This allows us to create full-width layouts for specific campaigns.
This commit is contained in:
Ben Sturmfels 2023-10-20 16:48:21 +11:00
parent 1707c327e0
commit 012bb1e7e4
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
16 changed files with 24 additions and 13 deletions

View file

@ -8,7 +8,7 @@
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="content-with-donate-sidebar"> <div class="content-with-donate-sidebar mw8 center ph2 ph3">
<div id="container"> <div id="container">
<div id="mainContent"> <div id="mainContent">
{% block content %} {% block content %}

View file

@ -1,6 +1,7 @@
{% extends "assignment/base_assignment.html" %} {% extends "assignment/base_assignment.html" %}
{% block category %}Copyright Assignment{% endblock %} {% block category %}Copyright Assignment{% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="mw8 center ph2 ph3">
<h1>Copyright Assignment</h1> <h1>Copyright Assignment</h1>
<div class="mw7 mb5"> <div class="mw7 mb5">
@ -25,7 +26,7 @@
<p><button type="submit" class="ph3 pv2">Submit</button></p> <p><button type="submit" class="ph3 pv2">Submit</button></p>
</form> </form>
</div> </div>
</div>
<script> <script>
'use strict'; 'use strict';

View file

@ -2,6 +2,7 @@
{% load static %} {% load static %}
{% block category %}Copyright Assignment{% endblock %} {% block category %}Copyright Assignment{% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="mw8 center ph2 ph3">
<h1>Thanks! <svg style="color: #ff41b4; width: 30px; height: 30px; vertical-align: middle;"><use href="{% static 'img/font_awesome.svg' %}#heart"></use></svg></h1> <h1>Thanks! <svg style="color: #ff41b4; width: 30px; height: 30px; vertical-align: middle;"><use href="{% static 'img/font_awesome.svg' %}#heart"></use></svg></h1>
<div class="mw7 mb5"> <div class="mw7 mb5">
@ -12,4 +13,5 @@
{{ form.as_p }} {{ form.as_p }}
</form> </form>
</div> </div>
</div>
{% endblock %} {% endblock %}

View file

@ -1,7 +1,7 @@
{% extends "base_conservancy.html" %} {% extends "base_conservancy.html" %}
{% block category %}WhoWeAre{% endblock %} {% block category %}WhoWeAre{% endblock %}
{% block outercontent %} {% block outercontent %}
<div id="container"> <div id="container" class="mw8 center ph2 ph3">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
<h2>Who We Are</h2> <h2>Who We Are</h2>

View file

@ -7,7 +7,7 @@
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
<div id="container"> <div id="container" class="mw8 center ph2 ph3">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
{% if all_year_list %} {% if all_year_list %}

View file

@ -8,7 +8,7 @@
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="content-with-donate-sidebar"> <div class="content-with-donate-sidebar mw8 center ph2 ph3">
<div id="container"> <div id="container">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">

View file

@ -85,8 +85,8 @@
{% include "fundgoal/fundraiser_goal_banner_partial.html" %} {% include "fundgoal/fundraiser_goal_banner_partial.html" %}
{% endif %} {% endif %}
<div class="mw8 center ph2 ph3"> <div>
{% block outercontent %}<div id="mainContent"> {% block content %}{% endblock %}</div>{% endblock %} {% block outercontent %}<div id="mainContent" class="mw8 center ph2 ph3"> {% block content %}{% endblock %}</div>{% endblock %}
</div> </div>
<div id="conservancyfooter" class="mt4-ns pt3 ph3 bg-light-gray"> <div id="conservancyfooter" class="mt4-ns pt3 ph3 bg-light-gray">

View file

@ -1,7 +1,7 @@
{% extends "base_conservancy.html" %} {% extends "base_conservancy.html" %}
{% block category %}Learn{% endblock %} {% block category %}Learn{% endblock %}
{% block outercontent %} {% block outercontent %}
<div id="container"> <div id="container" class="mw8 center ph2 ph3">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
<h2>Learn</h2> <h2>Learn</h2>

View file

@ -8,7 +8,7 @@
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="content-with-donate-sidebar"> <div class="content-with-donate-sidebar mw8 center ph2 ph3">
<div id="container"> <div id="container">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">

View file

@ -1,6 +1,6 @@
{% extends "base_conservancy.html" %} {% extends "base_conservancy.html" %}
{% block outercontent %} {% block outercontent %}
<div id="container"> <div id="container" class="mw8 center ph2 ph3">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
<h2>What We Do</h2> <h2>What We Do</h2>

View file

@ -1,9 +1,11 @@
{% extends "base_conservancy.html" %} {% extends "base_conservancy.html" %}
{% block outercontent %} {% block outercontent %}
<div class="mw8 center ph2 ph3">
<div class="internalNavigate"> <div class="internalNavigate">
{% block internal_navigate %}{% endblock %} {% block internal_navigate %}{% endblock %}
</div> </div>
<div class="singleColumn">{% block content %}{% endblock %}</div> <div class="singleColumn">{% block content %}{% endblock %}</div>
</div>
{% endblock %} {% endblock %}

View file

@ -8,7 +8,7 @@
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="content-with-donate-sidebar"> <div class="content-with-donate-sidebar mw8 center ph2 ph3">
<div id="container"> <div id="container">
<div id="mainContent">{% block content %}{% endblock %}</div> <div id="mainContent">{% block content %}{% endblock %}</div>
<div id="sidebar" class="VizioTopBar {% block submenuselection %}{% endblock %}"> <div id="sidebar" class="VizioTopBar {% block submenuselection %}{% endblock %}">

View file

@ -11,6 +11,7 @@
border: 1px solid #D0DD98; border: 1px solid #D0DD98;
} }
</style> </style>
<div class="mw8 center ph2 ph3">
<h1>CCS Candidate Upload</h1> <h1>CCS Candidate Upload</h1>
<div class="mw7 mb4"> <div class="mw7 mb4">
@ -31,4 +32,5 @@
<p><button type="submit" class="ph3 pv2">Next</button></p> <p><button type="submit" class="ph3 pv2">Next</button></p>
</form> </form>
</div> </div>
</div>
{% endblock %} {% endblock %}

View file

@ -1,5 +1,6 @@
{% extends 'fossy/base.html' %} {% extends 'fossy/base.html' %}
{% block outercontent %} {% block outercontent %}
<div class="mw8 center ph2 ph3">
<h1><abbr title="Free and Open Source Software Yearly">FOSSY</abbr>: Propose a Commmunity Track!</h1> <h1><abbr title="Free and Open Source Software Yearly">FOSSY</abbr>: Propose a Commmunity Track!</h1>
<div class="mw7 mb5"> <div class="mw7 mb5">
<p>SFC will be hosting a community oriented conference this coming summer July 13-16, 2023 in Portland, Oregon in the United States. Focused on the creation and impact of free and open source software, uplifting contributors of all experience. As this is the first year we are running a conference of this scale, we plan to have 8 tracks of talks over 4 days. We plan to dedicate a substantial portion of these track to community run tracks, similar to the DevRooms at FOSDEM or the miniconfs at LinuxConfAU. We'd like to invite you to run a track based on a topic you're passionate about. If selected, you will be responsible for inviting speakers, selecting talks and organising the schedule for your track. If that sounds good to you, please fill in the form to tell us more about your idea. If you have any questions please don't hesitate to email us at <a href="mailto:conference@sfconservancy.org">conference@sfconservancy.org</a>.</p> <p>SFC will be hosting a community oriented conference this coming summer July 13-16, 2023 in Portland, Oregon in the United States. Focused on the creation and impact of free and open source software, uplifting contributors of all experience. As this is the first year we are running a conference of this scale, we plan to have 8 tracks of talks over 4 days. We plan to dedicate a substantial portion of these track to community run tracks, similar to the DevRooms at FOSDEM or the miniconfs at LinuxConfAU. We'd like to invite you to run a track based on a topic you're passionate about. If selected, you will be responsible for inviting speakers, selecting talks and organising the schedule for your track. If that sounds good to you, please fill in the form to tell us more about your idea. If you have any questions please don't hesitate to email us at <a href="mailto:conference@sfconservancy.org">conference@sfconservancy.org</a>.</p>
@ -22,4 +23,5 @@
<p><button type="submit" class="ph3 pv2">Submit</button></p> <p><button type="submit" class="ph3 pv2">Submit</button></p>
</form> </form>
</div> </div>
</div>
{% endblock %} {% endblock %}

View file

@ -15,6 +15,7 @@
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
<div class="mw8 center ph2 ph3">
<h1>Thanks! <svg style="color: #ff41b4; width: 30px; height: 30px; vertical-align: middle;"><use href="{% static 'img/font_awesome.svg' %}#heart"></use></svg></h1> <h1>Thanks! <svg style="color: #ff41b4; width: 30px; height: 30px; vertical-align: middle;"><use href="{% static 'img/font_awesome.svg' %}#heart"></use></svg></h1>
<div class="mw7 mb5"> <div class="mw7 mb5">
@ -23,4 +24,5 @@
{{ form.as_p }} {{ form.as_p }}
</form> </form>
</div> </div>
</div>
{% endblock %} {% endblock %}

View file

@ -2,7 +2,7 @@
{% block subtitle %}News - {% endblock %} {% block subtitle %}News - {% endblock %}
{% block outercontent %} {% block outercontent %}
<div id="container"> <div id="container" class="mw8 center ph2 ph3">
<div id="mainContent"> <div id="mainContent">
<div class="breadcrumbs"> <div class="breadcrumbs">
<p><a href="/">Home</a> / <a href="/news/">News</a></p> <p><a href="/">Home</a> / <a href="/news/">News</a></p>