Skip to content


Add new LESS file for page, and use CSS counters for heading numbering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gervase Markham committed Jan 22, 2015
1 parent 769f05d commit 224e1da
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
Expand Up @@ -7,6 +7,11 @@
{% block page_title %}{{ _('Commit Access Requirements') }}{% endblock %}
{% block body_id %}commit-access-requirements{% endblock %}

{% block extrahead %}
{{ super() }}
{{ css('commit-access-requirements') }}
{% endblock %}

{% block article %}
<h1 class="title-shadow-box">{{ self.page_title() }}</h1>

Expand All @@ -18,7 +23,7 @@ <h1 class="title-shadow-box">{{ self.page_title() }}</h1>
<p>{{ _('For the avoidance of doubt: this document commits you to a set of
good behaviours; it is not a copyright assignment.') }}</p>

<h2>{{ _('1. Treatment of Account') }}</h2>
<h2>{{ _('Treatment of Account') }}</h2>

<p>{{ _('You will receive one or more sets of Mozilla project access credentials, and/or
one or more sets of credentials you already have will be given the power to
Expand All @@ -34,7 +39,7 @@ <h2>{{ _('1. Treatment of Account') }}</h2>
of it, may be attached to your contributions and so be visible worldwide via
the Internet.') }}</p>

<h2>{{ _('2. License Terms') }}</h2>
<h2>{{ _('License Terms') }}</h2>

{% trans license_policy='',
Expand All @@ -50,7 +55,7 @@ <h2>{{ _('2. License Terms') }}</h2>
{% endtrans %}

<h2>{{ _('3. Notices and Knowledge') }}</h2>
<h2>{{ _('Notices and Knowledge') }}</h2>

<p>{{ _('By contributing Code, You confirm that, to the best of Your knowledge, the Code
does not violate the rights of any person or entity.') }}</p>
Expand All @@ -60,7 +65,7 @@ <h2>{{ _('3. Notices and Knowledge') }}</h2>
such Code in a Mozilla Repository and that it meets these
requirements.') }}</p>

<h2>{{ _('4. Committing Code Created by Others') }}</h2>
<h2>{{ _('Committing Code Created by Others') }}</h2>

<p>{{ _('You may check in Code to a Mozilla Foundation repository that was not written
by You, provided that:') }}</p>
Expand Down
3 changes: 3 additions & 0 deletions bedrock/settings/
Expand Up @@ -127,6 +127,9 @@ def JINJA_CONFIG():
'commit-access-policy': (
'commit-access-requirements': (
'about-forums': (
Expand Down
13 changes: 13 additions & 0 deletions media/css/mozorg/commit-access-requirements.less
@@ -0,0 +1,13 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at

@import "../sandstone/lib.less";

h2 {
counter-increment: step-counter;

h2::before {
content: counter(step-counter) ". ";

0 comments on commit 224e1da

Please sign in to comment.