-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db7c087
commit f8f9876
Showing
4 changed files
with
127 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,53 @@ | ||
{% extends 'layouts/base.html' %} | ||
|
||
|
||
{% block beforeContent %} | ||
<a href="{{ url_for('main.index') }}" class="govuk-back-link">Back</a> | ||
{% endblock beforeContent %} | ||
|
||
{% block content %} | ||
<div class='govuk-grid-row'> | ||
<div class='govuk-grid-column-two-thirds'> | ||
{% block content_primary %} | ||
|
||
<h1 class="govuk-heading-l">Statistics</h1> | ||
|
||
<h2 class="govuk-heading-m">Completeness</h2> | ||
|
||
<ul class="govuk-list"> | ||
<li class="dl-data-item"> | ||
<div class="dl-data-item__number">{{ data.total }}</div> | ||
<div class="dl-data-item__label">Total planning considerations</div> | ||
</li> | ||
<li class="dl-data-item dl-data-item--inline"> | ||
<span class="dl-data-item__number">{{ data.with.legislation }}</span> | ||
<span class="dl-data-item__label">with legislation</span> | ||
</li> | ||
<li class="dl-data-item dl-data-item--inline"> | ||
<span class="dl-data-item__number">{{ data.with.specification }}</span> | ||
<span class="dl-data-item__label">with a specification</span> | ||
</li> | ||
<li class="dl-data-item dl-data-item--inline"> | ||
<span class="dl-data-item__number">{{ data.with.schemas }}</span> | ||
<span class="dl-data-item__label">with associated schemas</span> | ||
</li> | ||
<li class="dl-data-item dl-data-item--inline"> | ||
<span class="dl-data-item__number">{{ data.with.github_discussion }}</span> | ||
<span class="dl-data-item__label">with an active github discussion</span> | ||
</li> | ||
<li class="dl-data-item dl-data-item--inline"> | ||
<span class="dl-data-item__number">{{ data.with.useful_links }}</span> | ||
<span class="dl-data-item__label">with useful links</span> | ||
</li> | ||
</ul> | ||
|
||
<h2 class="govuk-heading-m">Progress</h2> | ||
|
||
<ul class="govuk-list"> | ||
<li class="dl-data-item"> | ||
<div class="dl-data-item__number">{{ data.edits.total }}</div> | ||
<div class="dl-data-item__label">Total updates to planning considerations</div> | ||
</li> | ||
<li class="dl-data-item dl-data-item--inline"> | ||
<span class="dl-data-item__number">{{ data.edits.recent }}</span> | ||
<span class="dl-data-item__label">since {{ since.strftime('%Y-%m-%d') }}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
{% endblock content %} | ||
<h2 class="govuk-heading-m">Completeness 📊</h2> | ||
|
||
<div class="app-stats"> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.total }}</div> | ||
<div class="app-stats__value">Total planning considerations</div> | ||
</div> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.with.legislation }}</div> | ||
<div class="app-stats__value">with legislation</div> | ||
</div> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.with.specification }}</div> | ||
<div class="app-stats__value">with a specification</div> | ||
</div> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.with.schemas }}</div> | ||
<div class="app-stats__value">with associated schemas</div> | ||
</div> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.with.github_discussion }}</div> | ||
<div class="app-stats__value">with an active github discussion</div> | ||
</div> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.with.useful_links }}</div> | ||
<div class="app-stats__value">with useful links</div> | ||
</div> | ||
</div> | ||
|
||
<h2 class="govuk-heading-m">Progress 📈</h2> | ||
|
||
<div class="app-stats"> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.edits.total }}</div> | ||
<div class="app-stats__value">Total updates to planning considerations</div> | ||
</div> | ||
<div class="app-stats__card"> | ||
<div class="app-stats__key">{{ data.edits.recent }}</div> | ||
<div class="app-stats__value">since {{ since.strftime('%Y-%m-%d') }}</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock content_primary %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.app-stats { | ||
display: flex; | ||
justify-content: flex-start; | ||
gap: 5px; | ||
&:not(:last-of-type) { | ||
@include govuk-responsive-margin(8, "bottom"); | ||
} | ||
flex-wrap: wrap; | ||
* { | ||
box-sizing: border-box;; | ||
} | ||
&__card { | ||
background: $govuk-brand-colour; | ||
padding: 1em; | ||
color: white; | ||
margin: 0; | ||
@include govuk-font(19); | ||
flex-grow: 1; | ||
} | ||
&__key { | ||
@include govuk-font(36, 'bold'); | ||
} | ||
} |