Merge branch 'subpage' of pmpc/website into master

lektura
Max Mehl 2017-03-23 18:15:55 +00:00 committed by Gogs
commit 4e545e436b
8 changed files with 156 additions and 1 deletions

View File

@ -16,6 +16,7 @@ DefaultContentLanguage = "en"
brand = "Public Money, Public Code" brand = "Public Money, Public Code"
[params.navigation.links] [params.navigation.links]
start = "Start"
about = "About" about = "About"
reasons = "Reasons" reasons = "Reasons"
resources = "Resources" resources = "Resources"
@ -117,6 +118,7 @@ DefaultContentLanguage = "en"
[Languages.de.navigation] [Languages.de.navigation]
brand = "Public Money, Public Code" brand = "Public Money, Public Code"
[Languages.de.navigation.links] [Languages.de.navigation.links]
start = "Start"
about = "Über" about = "Über"
reasons = "Gründe" reasons = "Gründe"
resources = "Ressourcen" resources = "Ressourcen"

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
{{ partial "head.html" . }}
</head>
<body id="page-top">
{{ partial "navpage.html" . }}
{{ partial "page-signatures.html" . }}
{{ partial "language.html" . }}
{{ partial "legal.html" . }}
{{ partial "sharecolumn.html" . }}
{{ partial "js.html" . }}
</body>
</html>

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
{{ partial "head.html" . }}
</head>
<body id="page-top">
{{ partial "navpage.html" . }}
{{ partial "page-signatures.html" . }}
{{ partial "language.html" . }}
{{ partial "legal.html" . }}
{{ partial "sharecolumn.html" . }}
{{ partial "js.html" . }}
</body>
</html>

View File

@ -0,0 +1,42 @@
[
{
"id": 0,
"name": "Max",
"email": "mail@example.com",
"country": "Deutschland",
"zip": "86367",
"perm": "yes",
"code": "630691407558d1cc36a6abb",
"confirmed": "yes"
},
{
"id": 1,
"name": "Cooler Name",
"email": "tech@web.de",
"country": "Schweiz",
"zip": "4404",
"perm": "yes",
"code": "759321396558d1cc8bb57fe",
"confirmed": "yes"
},
{
"id": 2,
"name": "Hengst",
"email": "test@test.com",
"country": "",
"zip": "",
"perm": "yes",
"code": "691034870458d1cd0fdfb2f",
"confirmed": "yes"
},
{
"id": 3,
"name": "Richard Bruce Kopp",
"email": "kopp@test.de",
"country": "Germany ",
"zip": "71522",
"perm": "yes",
"code": "557271457758d1ff356910f",
"confirmed": "no"
}
]

View File

@ -1,5 +1,4 @@
<!DOCTYPE html> <!DOCTYPE html>
{{ $data := index .Site.Data .Site.Language.Lang }}
<html lang="en-US"> <html lang="en-US">
<head> <head>
{{ partial "head.html" . }} {{ partial "head.html" . }}

View File

@ -0,0 +1,30 @@
{{ "<!-- NAVIGATION ON PAGES -->" | safeHTML }}
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
{{ "<!-- Brand and toggle get grouped for better mobile display -->" | safeHTML }}
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{{ with .Site.Params.navigation.brand }}
<a class="navbar-brand page-scroll" href="#page-top">{{ . | markdownify }}</a>
{{ end }}
</div>
{{ "<!-- Collect the nav links, forms, and other content for toggling -->" | safeHTML }}
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="{{ "/" | relLangURL }}">{{ .Site.Params.navigation.links.start }}</a>
</li>
<li>
<a class="page-scroll" href="#language" title="Change Language"><i class="fa fa-globe" aria-hidden="true" style="font-size:1.5em;vertical-align:top;"></i> {{ .Site.Params.navigation.links.language }}</a>
</li>
</ul>
</div>
{{ "<!-- /.navbar-collapse -->" | safeHTML }}
</div>
{{ "<!-- /.container-fluid -->" | safeHTML }}
</nav>

View File

@ -0,0 +1,33 @@
{{ "<!-- SUBPAGE SIGNATURES -->" | safeHTML }}
<header>
<div class="header-content">
<div class="header-content-inner">
<div class="col-lg-8 col-lg-offset-2 text-center">
<h1>Signatures</h1>
<hr />
<table class="signatures">
<tbody>
<tr>
<th>ID</th>
<th>Name</th>
<th>Country</th>
<th>Zip Code</th>
</tr>
{{ range $.Site.Data.signatures }}
{{ range . }}
{{ if eq .confirmed "yes" }}
<tr>
<td>{{ .id }}</td>
<td>{{ .name }}</td>
<td>{{ .country }}</td>
<td>{{ .zip }}</td>
</tr>
{{ end }}
{{ end }}
{{ end }}
</tbody>
</table>
</div>
</div>
</div>
</header>

View File

@ -31,6 +31,17 @@
font-size: 0.8em; font-size: 0.8em;
} }
/* Signature table */
table.signatures {
margin: 0 auto;
}
table.signatures th, table.signatures td {
border: 1px solid darkgrey;
border-collapse: collapse;
text-align: left;
padding: 2px;
}
/* SHARE BUTTONS IN "SPREAD THE WORD" SECTION */ /* SHARE BUTTONS IN "SPREAD THE WORD" SECTION */
.share-buttons a { .share-buttons a {
background-position: left 5px center; background-position: left 5px center;