Skip to content
Snippets Groups Projects
Commit a5a35f67 authored by Julien Schmidt's avatar Julien Schmidt
Browse files

make header stats a partial, separate data

parent 2316d406
No related branches found
No related tags found
No related merge requests found
Users = 2700
Servers = 73
Internet = 4
[activeUsers]
other = "Aktive User"
[editPage]
other = "Diese Seite bearbeiten"
[imprint]
other = "Impressum"
[internetConnection]
other = "Internetanbindung"
[paidEmployees]
other = "Bezahlte Mitarbeiter"
[servers]
other = "Server"
[toHomepage]
other = "Zur Startseite"
\ No newline at end of file
other = "Zur Startseite"
[activeUsers]
other = "Active Users"
[editPage]
other = "Edit this Page"
[imprint]
other = "Imprint"
[internetConnection]
other = "Internet Connection"
[paidEmployees]
other = "Paid Employees"
[servers]
other = "Servers"
[toHomepage]
other = "To Homepage"
\ No newline at end of file
other = "To Homepage"
......@@ -90,14 +90,7 @@
{{ with .Params.SubHeader }}
<span class="subtitle">{{.}}</span>
{{ end }}
{{ if .Params.HeaderStats }}
<div id="stats">
<div><i class="fa fa-users" aria-hidden="true"></i><span>2700</span>Active Users</div>
<div><i class="fa fa-server" aria-hidden="true"></i><span>71</span> Servers</div>
<div><i class="fa fa-tachometer" aria-hidden="true"></i><span>4 Gbit/s</span>Internet Connection</div>
<div><i class="fa fa-id-card-o" aria-hidden="true"></i><span>0</span> Paid Employees</div>
</div>
{{ end }}
{{ if .Params.HeaderStats }}{{ partial "header-stats.html" . }}{{ end }}
</div>
</header>
<div class="container">
......
<div id="stats">
<div><i class="fa fa-users" aria-hidden="true"></i><span>{{ .Site.Data.Stats.Users }}</span>{{ i18n "activeUsers" }}</div>
<div><i class="fa fa-server" aria-hidden="true"></i><span>{{ .Site.Data.Stats.Servers }}</span>{{ i18n "servers" }}</div>
<div><i class="fa fa-tachometer" aria-hidden="true"></i><span>{{ .Site.Data.Stats.Internet }} Gbit/s</span>{{ i18n "internetConnection" }}</div>
<div><i class="fa fa-id-card-o" aria-hidden="true"></i><span>0</span>{{ i18n "paidEmployees" }}</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment