create a complete signature table. Fixes #72

lektura
max.mehl 2017-09-06 01:34:00 +02:00
parent 086ec8b864
commit 2b9de3e7cb
6 changed files with 41 additions and 38 deletions

View File

@ -150,7 +150,8 @@ DefaultContentLanguage = "en"
[params.subpage]
[params.subpage.signatures]
headline = "Individual Open Letter Signatures"
description = "Following people have signed the letter already and agreed to have their signature be public. Will you be the next?"
description = "Below you find the recent signatures of people who agreed to have their signature be public. Will you be the next?"
allSignatures = "Have a look at [all public signatures](all-signatures/)."
# === TRANSLATIONS ===

View File

@ -1,37 +0,0 @@
---
title: Offener Brief
type: page
layout: subpage
sigtable: true
tableName: Name
tableCountry: Land
tableComment: KOmmentar
---
Publicly funded software has to be [Free and Open Source Software][fs]. While there are plenty of good reasons for that, many politicians don't know about them yet.
{{< fsdefinition type="box">}}
That's where you can help! Sign the open letter to give our message more weight, like **{{< count type="signatures" >}} people** and **{{< count type="organisations" >}} organisations** before you did. We will hand over the letter and signatures to your representatives and make sure that they understand: Public Money? Public Code!
> ## Public Money? Public Code!
>
> Digital services offered and used by our public administrations are the critical infrastructure of 21st century democratic nations. In order to establish trustworthy systems, public bodies must ensure they have full control over the software and the computer systems at the core of our state digital infrastructure. However, right now, this is rarely the case due to restrictive software licences that:
>
> * Forbid sharing and exchanging publicly funded code. This prevents cooperation between public administrations and hinders further development.
> * Support monopolies by hindering competition. As a result, many administrations become dependent on a handful of companies.
> * Pose a threat to the security of our digital infrastructure by forbidding access to the source code. This makes fixing backdoors and security holes extremely difficult, if not completely impossible.
>
> We need software that fosters the sharing of good ideas and solutions. Like this we will be able to improve IT services for people all over Europe. We need software that guarantees freedom of choice, access, and competition. We need software that helps public administrations regain full control of their critical digital infrastructure, allowing them to become and remain independent from a handful of companies. That is why we call our representatives to support Free and Open Source Software in public administrations, because:
>
> * Free and Open Source Software is a modern public good that allows everybody to freely use, study, share and improve applications we use on a daily basis.
> * Free and Open Source Software licences provide safeguards against being locked down to services from specific companies that use restrictive licences to hinder competition.
> * Free and Open Source Software ensures that the source code is accessible so that backdoors and security holes can be fixed without depending on one service provider.
>
> Public bodies are financed through taxes. They must make sure they spend funds in the most efficient way possible. If it is public money, it should be public code as well!
>
> That is why we, the undersigned, call our representatives to:
>
> **"Implement legislation requiring that publicly financed software developed for public sector must be made publicly available under a Free and Open Source Software licence."**
[fs]: https://fsfe.org/freesoftware/basics/summary.html "Free Software gives everybody the rights to use, study, share and improve software. These rights help support other fundamental freedoms like freedom of speech, press and privacy."

View File

@ -0,0 +1,13 @@
---
title: "All Public Signatures"
type: page
layout: subpage
tableName: Name
tableCountry: Country
tableComment: Comment
---
This is the complete list of all people who subscribed the Open Letter and agreed to have their signature be public. {{< count type="signatures" >}} people have expressed their support already are you one of them already?
{{< show_signatures >}}

View File

@ -13,6 +13,7 @@
<p class="text-faded">{{ .Site.Params.subpage.signatures.description | markdownify }}
<a href="{{ "#action" | relLangURL }}"><strong>{{ .Site.Params.action.formSubmit }}</strong></a></p>
<!-- If you change something here, also change layouts/shortcodes/show_signature.html -->
<table id="sigtable">
<thead>
<tr>
@ -34,6 +35,8 @@
{{ end }}
</tbody>
</table>
<p class="text-faded">{{ .Site.Params.subpage.signatures.allSignatures | markdownify }}</p>
</div>
</div>
</div>

View File

@ -0,0 +1,22 @@
<!-- If you change something here, also change layouts/partial/sub-pages/sigtable.html -->
<table id="sigtable">
<thead>
<tr>
<th>{{ $.Page.Params.tableName }}</th>
<th>{{ $.Page.Params.tableCountry }}</th>
<th>{{ $.Page.Params.tableComment }}</th>
</tr>
</thead>
<tbody>
{{ $json := getJSON "data/signatures/signatures.json" }}
{{ $json := where $json "include_vars.permissionPub" "yes" }}
{{ range sort $json "timestamp" "desc" }}
<tr>
<td>{{ .include_vars.name }}</td>
<td>{{ .include_vars.country }}</td>
<td>{{ .include_vars.comment }}</td>
</tr>
{{ end }}
</tbody>
</table>

View File

@ -206,6 +206,7 @@ p.form-pe a {
table#sigtable {
display: table;
width: 100%;
margin-bottom: 20px;
}
table#sigtable thead, table#sigtable tbody {
width: 100%;