Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • 016967/stustanet-website
  • antodias/stustanet-website
  • ml/stustanet-website
  • 015250/stustanet-website
  • stustanet/stustanet-website
  • 010296/stustanet-website
  • 005438/stustanet-website
  • 011344/stustanet-website
  • michaelb/stustanet-website
  • 009834/stustanet-website
  • mariem/stustanet-website
  • 010699/stustanet-website
12 results
Show changes
Showing
with 139 additions and 18 deletions
[activeUsers]
other = "Aktive User"
[date]
other = "Datum"
[editPage]
other = "Diese Seite bearbeiten"
......@@ -16,5 +19,29 @@ other = "Bezahlte Mitarbeiter"
[servers]
other = "Server"
[time]
other = "Uhrzeit"
[toHomepage]
other = "Zur Startseite"
[weekday]
other = "Wochentag"
[chairman]
other = "Vorsitzender Vorstand"
[treasurer]
other = "Schatzmeister"
[1stcto]
other = "1. Technischer Vorstand"
[2ndcto]
other = "2. Technischer Vorstand"
[3rdcto]
other = "3. Technischer Vorstand"
[validity]
other = "Gültigkeit"
[activeUsers]
other = "Active Users"
[date]
other = "Date"
[editPage]
other = "Edit this Page"
......@@ -16,5 +19,29 @@ other = "Paid Employees"
[servers]
other = "Servers"
[time]
other = "Time"
[toHomepage]
other = "To Homepage"
[weekday]
other = "Weekday"
[chairman]
other = "Chairman"
[treasurer]
other = "Treasurer"
[1stcto]
other = "1st Technical Director"
[2ndcto]
other = "2nd Technical Director"
[3rdcto]
other = "3rd Technical Director"
[validity]
other = "Validity"
{{ define "main"}}
<h1 id="title">Oops! Page not found.</h1>
<p><a class="button" href="{{ "/" | relURL }}">Go to the Homepage</a></p>
{{ end }}
......@@ -26,7 +26,7 @@
{{- end }}
{{- end }}
</head>
<body class="{{ .Params.Color | default "blue" }}">
<body class="{{ .Params.Color | default "blue" }}{{ with .Params.Class }} {{ . }}{{ end }}">
<nav id="top-bar">
<div class="container">
<div class="logo">
......@@ -35,7 +35,7 @@
<ul class="menu">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) (eq .URL $.URL) }} class="active"{{end}}>
<li{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) (eq .URL $.RelPermalink) }} class="active"{{end}}>
<a class="menu-item" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
</li>
{{ end }}
......@@ -57,7 +57,7 @@
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) (eq .URL $.URL)}} class="active"{{end}}>
<li{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) (eq .URL $.RelPermalink)}} class="active"{{end}}>
<a class="menu-item" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
</li>
{{ end }}
......@@ -93,19 +93,20 @@
{{ if .Params.HeaderStats }}{{ partial "header-stats.html" . }}{{ end }}
</div>
</header>
<div class="container">
<div class="container" id="main">
{{ block "main" . }}{{.Content}}{{ end }}
</div>
</article>
<footer>
<div class="container">
<div class="editPage">
<!--<div class="editPage">
<i class="fa fa-pencil"></i>
<a href="{{ .Site.Params.gitEditBaseUrl }}{{ .File.Path }}" title="{{ i18n "editPage" }}">{{ i18n "editPage" }}</a>
</div>
<div class="center">
<a href="{{ ref . "impressum.md" }}">{{ i18n "imprint" }}</a>
<a href="{{ .Site.Params.gitEditBaseUrl }}{{ with .File }}{{ .Path }}{{ end }}" title="{{ i18n "editPage" }}">{{ i18n "editPage" }}</a>
</div>-->
<div class="spacer"></div>
<div class="links">
<a href="/impressum">{{ i18n "imprint" }}</a>
</div>
<div class="lang-dropdown-container">
{{ $.Scratch.Set "nav-orientation" "up" }}
......
{{ define "main" }}{{.Content}}{{ end }}
\ No newline at end of file
{{ .Content }}
{{ range where .Pages "Type" "vorstands_key" -}}
{{ if (gt (len .Content) 10) -}}
<h3>PGP Key {{ .Title }}</h3>
<a href="{{ .Permalink }}" download="{{.Title}}.asc">Download</a><br>
{{ if .Param "fingerprint" -}}
Fingerprint: <code>{{ .Param "fingerprint" }}</code><br>
{{- end }}
Key Dump:
<pre>
{{ .Content }}
</pre>
{{- end }}
{{- end }}
\ No newline at end of file
{{ .Content }}
\ No newline at end of file
{{ $servers := (int (index (index (index (index (getJSON "https://stustanet.de/api/servers.json") "cargoquery") 0) "title") "servers")) }}
<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-server" aria-hidden="true"></i><span>{{ $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>
......@@ -14,10 +14,10 @@
{{ $.Scratch.Set "url" (delimit (slice "/" .) "") }}
{{ end }}
<a href="{{ $.Scratch.Get "url" }}" class="lang">
<span class="shorthand">{{ .Lang }}</span>{{ .LanguageName }}
<span class="shorthand" aria-hidden="true">{{ .Lang }}</span>{{ .LanguageName }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>
\ No newline at end of file
</div>
<address>
{{ replace (trim .Inner "\n") "\n" "<br/>" | safeHTML }}
</address>
<div class="alert">{{ .Inner | markdownify }}</div>
<p class="button-container"><a class="button" href="{{ if .Get "ref" }}{{ ref . ( .Get "ref" ) }}{{ else }}{{ .Get "href" }}{{ end }}">{{ .Get "label" }}</a></p>
<div class="column">{{ .Inner }}</div>
<dl>
<dt>{{ .Get "title" }}</dt>
<dd>
{{ .Inner }}
{{ trim .Inner "\n" | safeHTML }}
</dd>
</dl>
\ No newline at end of file
</dl>
<pre>
{{ if and (eq (.Get 0) "vv") ((time (.Site.GetPage "keys/board/vv.md").ExpiryDate).After now) }}
{{ (.Site.GetPage "keys/board/vv.md").Param "fingerprint" }}
{{ else if and (eq (.Get 0) "cc") ((time (.Site.GetPage "keys/board/cc.md").ExpiryDate).After now) }}
{{ (.Site.GetPage "keys/board/cc.md").Param "fingerprint" }}
{{ else if and (eq (.Get 0) "tv1") ((time (.Site.GetPage "keys/board/tv1.md").ExpiryDate).After now) }}
{{ (.Site.GetPage "keys/board/tv1.md").Param "fingerprint" }}
{{ else if and (eq (.Get 0) "tv2") ((time (.Site.GetPage "keys/board/tv2.md").ExpiryDate).After now) }}
{{ (.Site.GetPage "keys/board/tv2.md").Param "fingerprint" }}
{{ else if and (eq (.Get 0) "tv3") ((time (.Site.GetPage "keys/board/tv3.md").ExpiryDate).After now) }}
{{ (.Site.GetPage "keys/board/tv3.md").Param "fingerprint" }}
{{ end }}
</pre>
\ No newline at end of file
<div class="flex-item">{{ .Inner }}</div>
{{ .Inner }}
\ No newline at end of file
<ul>
{{ range getJSON "https://sprechstunden.stusta.de/appointments.json"}}
<li>{{ dateFormat "Monday, Jan 2, 2006 15:04" (int .start) }} – {{ dateFormat "15:04" (int .end) }}</li>
<table>
<thead>
<tr>
<th>{{ i18n "weekday" }}</th>
<th class="right">{{ i18n "date" }}</th>
<th class="right">{{ i18n "time" }}</th>
</tr>
</thead>
<tbody>
{{ $appointments := getJSON "https://stustanet.de/api/officehours.json" }}
{{ range first 5 $appointments }}
<tr>
<td>{{ if (eq $.Site.Language.Lang "de") }}
{{ index $.Site.Data.DE.Wochentage (sub (time (int .start)).Weekday 1) }}
{{ else }}
{{ dateFormat "Monday" (int .start) }}
{{ end }}</td>
<td class="right">{{ if (eq $.Site.Language.Lang "de") }}
{{ (time (int .start)).Day }}. {{ index $.Site.Data.DE.Monate (sub (time (int .start)).Month 1) }} {{ (time (int .start)).Year }}
{{ else }}
{{ dateFormat "January 2, 2006" (int .start) }}
{{ end }}</td>
<td class="right">{{ dateFormat "15:04" (int .start) }} – {{ dateFormat "15:04" (int .end) }}</td>
</tr>
{{ end }}
</ul>
</tbody>
</table>
<meta http-equiv="refresh" content="0; url={{.Get 0}}"/>
\ No newline at end of file
<div class="two-columns">{{ .Inner }}</div>