Commit 8ccef3e6 authored by Justin Kromlinger's avatar Justin Kromlinger
Browse files

Merge branch 'dev'

parents a1b35852 2d77f528
Pipeline #298 passed with stages
in 1 minute and 57 seconds
module github.com/hashworks/hashworksNET
require (
github.com/UnnoTed/fileb0x v1.1.3 // indirect
github.com/UnnoTed/fileb0x v1.1.4 // indirect
github.com/blend/go-sdk v0.0.0-20180925002442-beb974d6e9e5 // indirect
github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737 // indirect
github.com/codegangsta/negroni v1.0.0 // indirect
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/ekyoung/gin-nice-recovery v0.0.0-20160510022553-1654dca486db
github.com/gin-contrib/cache v0.0.0-20180925013901-031ec46e6ce8
github.com/gin-contrib/gzip v0.0.0-20180827025821-1c01330167a8
github.com/gin-contrib/multitemplate v0.0.0-20180827023943-5799bbbb6dce
github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 // indirect
github.com/gin-gonic/gin v1.3.0
github.com/gin-contrib/cache v1.1.0
github.com/gin-contrib/gzip v0.0.1
github.com/gin-contrib/multitemplate v0.0.0-20190914010127-bba2ccfe37ec
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.4.0
github.com/go-errors/errors v1.0.1
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
github.com/gomodule/redigo v2.0.0+incompatible // indirect
github.com/golang/protobuf v1.3.2 // indirect
github.com/hashworks/go-chart v2.0.2-0.20181012215714-9fd7836f84d7+incompatible
github.com/influxdata/influxdb v1.6.3
github.com/json-iterator/go v1.1.5 // indirect
github.com/memcachier/mc v2.0.1+incompatible // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/robfig/go-cache v0.0.0-20130306151617-9fc39e0dbf62 // indirect
github.com/securego/gosec v0.0.0-20190912120752-140048b2a218 // indirect
github.com/influxdata/influxdb v1.7.9
github.com/json-iterator/go v1.1.8 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/mattn/go-isatty v0.0.10 // indirect
github.com/stretchr/testify v1.4.0
github.com/ugorji/go/codec v0.0.0-20180831062425-e253f1f20942 // indirect
github.com/unrolled/secure v0.0.0-20180914162101-439d7b25425f
github.com/urfave/cli v1.20.0
github.com/ugorji/go v1.1.7 // indirect
github.com/unrolled/secure v1.0.4
github.com/urfave/cli v1.22.1
github.com/wcharczuk/go-chart v2.0.1+incompatible
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81 // indirect
golang.org/x/net v0.0.0-20190909003024-a7b16738d86b
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8 // indirect
golang.org/x/net v0.0.0-20191028085509-fe3aa8a45271
golang.org/x/sys v0.0.0-20191029155521-f43be2a4598c // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
)
go 1.13
This diff is collapsed.
......@@ -7,10 +7,11 @@ package main
import (
"fmt"
"os"
"github.com/gin-gonic/gin"
"github.com/hashworks/hashworksNET/server"
"github.com/urfave/cli"
"os"
)
var (
......
@import 'configuration';
html { // Required for the footer, see https://stackoverflow.com/a/23442814
html {
// Required for the footer, see https://stackoverflow.com/a/23442814
min-height: 100%;
position: relative;
}
......@@ -176,4 +177,4 @@ footer {
text-transform: capitalize;
}
}
}
}
\ No newline at end of file
......@@ -14,4 +14,4 @@ $small-screen-max-width: 720px;
$header-height: 64px;
$footer-height: $header-height / 2;
$content-spacing: 64px / 2;
$content-spacing: 64px / 2;
\ No newline at end of file
......@@ -15,4 +15,4 @@ h4,
h5,
h6 {
margin: 0;
}
}
\ No newline at end of file
......@@ -8,4 +8,4 @@
//.bold {
// font-weight: bold;
//}
//}
\ No newline at end of file
......@@ -73,6 +73,7 @@ svg {
.fill {
$transparentize-value: .6;
&.ok {
fill: transparentize($status-color-ok, $transparentize-value);
}
......
@import 'fixes';
@import 'globalClasses';
@import 'base';
@import 'base';
\ No newline at end of file
......@@ -64,6 +64,7 @@
background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="40" viewBox="0 0 50 50"><path fill="white" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z"><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"></animateTransform></path></svg>') no-repeat center top;
$minimum-width: 380px;
@media screen and (max-width: $minimum-width) {
background: none;
}
......@@ -73,13 +74,7 @@
background-size: contain;
height: 200px;
$sizes: (1550 620 200)
(1350 520 200)
(1200 440 200)
(1000 750 200)
(750 600 200)
(600 380 200)
(400 200 115);
$sizes: (1550 620 200) (1350 520 200) (1200 440 200) (1000 750 200) (750 600 200) (600 380 200) (400 200 115);
@each $i in $sizes {
@media screen and (max-width: #{nth($i, 1)}px) {
......
......@@ -3,16 +3,17 @@ package server
import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/go-errors/errors"
"github.com/hashworks/go-chart"
"github.com/influxdata/influxdb/client/v2"
"github.com/wcharczuk/go-chart/drawing"
"log"
"math"
"net/http"
"strings"
"time"
"github.com/gin-gonic/gin"
"github.com/go-errors/errors"
"github.com/hashworks/go-chart"
"github.com/influxdata/influxdb/client/v2"
"github.com/wcharczuk/go-chart/drawing"
)
var svgLoadDimensions = [][]int{
......
......@@ -5,16 +5,18 @@ import (
"encoding/base64"
"errors"
"fmt"
"github.com/ekyoung/gin-nice-recovery"
"github.com/hashworks/hashworksNET/server/bindata"
"regexp"
"time"
nice "github.com/ekyoung/gin-nice-recovery"
"github.com/hashworks/hashworksNET/server/bindata"
"html/template"
"net/http"
"github.com/gin-contrib/cache/persistence"
"github.com/gin-contrib/gzip"
"github.com/gin-gonic/gin"
"html/template"
"net/http"
)
// I'm using this struct to pass stuff around. Like database connections etc
......
......@@ -2,12 +2,13 @@ package server
import (
"fmt"
"github.com/gin-contrib/multitemplate"
"github.com/hashworks/hashworksNET/server/bindata"
"html/template"
"runtime"
"strings"
"time"
"github.com/gin-contrib/multitemplate"
"github.com/hashworks/hashworksNET/server/bindata"
)
func (s Server) templateFunctionMap() template.FuncMap {
......
{{define "error404"}}
{{template "header" . }}
<div class="page">
<section class="cards">
<article class="card">
<div class=page>
<section class=cards>
<article class=card>
<h3>Error 404</h3>
<p>not found</p>
</article>
......
{{define "footer"}}
</div>
<footer>
<div class="right">{{ if .PageStartTime }}{{LoadTimes .PageStartTime}} | {{ end }}v{{ version }} | {{ GoVer }}</div>
<div class=right>{{ if .PageStartTime }}{{LoadTimes .PageStartTime}} | {{ end }}v{{ version }} | {{ GoVer }}</div>
</footer>
</body>
</html>
{{end}}
\ No newline at end of file
{{define "header"}}
<!DOCTYPE html>
<html lang="en">
<head>
<title>/home/hashworks{{ if .Title }}/{{ .Title }}{{ end }}</title>
{{ if .Description }}<meta name="description" content="{{ .Description }}" />{{ end }}
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<meta name="application-name" content="hashworksNET">
<meta name="theme-color" content="#151515">
<style rel="stylesheet" type="text/css">{{ css }}</style>
{{ if .StatusTab }}<link rel="stylesheet" type="text/css" href="/css/status.css">{{ end }}
<link rel="icon" type="image/png" href="/img/favicon.ico">
<link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/img/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/img/favicon-194x194.png" sizes="194x194">
</head>
<body>
<html lang=en>
<title>/home/hashworks{{ if .Title }}/{{ .Title }}{{ end }}</title>
{{ if .Description }}<meta name=description content="{{ .Description }}" />{{ end }}
<meta charset=UTF-8>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=viewport content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<meta name=application-name content=hashworksNET>
<meta name=theme-color content=#151515>
<style rel=stylesheet type="text/css">{{ css }}</style>
{{ if .StatusTab }}<link rel=stylesheet type="text/css" href="/css/status.css">{{ end }}
<link rel=icon type="image/png" href="/img/favicon.ico">
<link rel=icon type="image/png" href="/img/favicon-16x16.png" sizes=16x16>
<link rel=icon type="image/png" href="/img/favicon-32x32.png" sizes=32x32>
<link rel=icon type="image/png" href="/img/favicon-96x96.png" sizes=96x96>
<link rel=icon type="image/png" href="/img/favicon-194x194.png" sizes=194x194>
<header>
<div class="left title">
hashworks.net
</div>
<nav class="menu">
<nav class=menu>
<a href="/" class="entry{{ if .ContactTab }} active{{ end }}">
contact
</a>
......@@ -32,34 +27,36 @@
status
</a>
</nav>
<nav class="icons">
<a href="https://git.hashworks.net" rel="nofollow" target="_blank" class="icon">
<svg viewBox="0 0 24 24" height="22px" width="24px">
<nav class=icons>
<a href="https://git.hashworks.net" rel=nofollow target=_blank class=icon>
<svg viewBox="0 0 24 24" height=22px width=24px>
<desc>GitLab icon</desc>
<path d="M23.955 13.587l-1.342-4.135-2.664-8.189c-.135-.423-.73-.423-.867 0L16.418 9.45H7.582L4.919 1.263C4.783.84 4.185.84 4.05 1.26L1.386 9.449.044 13.587c-.121.375.014.789.331 1.023L12 23.054l11.625-8.443c.318-.235.453-.647.33-1.024"/>
<path
d="M23.955 13.587l-1.342-4.135-2.664-8.189c-.135-.423-.73-.423-.867 0L16.418 9.45H7.582L4.919 1.263C4.783.84 4.185.84 4.05 1.26L1.386 9.449.044 13.587c-.121.375.014.789.331 1.023L12 23.054l11.625-8.443c.318-.235.453-.647.33-1.024" />
</svg>
</a>
<a href="https://github.com/hashworks" rel="nofollow" target="_blank" class="icon">
<svg height="23px" width="24px">
<a href="https://github.com/hashworks" rel=nofollow target=_blank class=icon>
<svg height=23px width=24px>
<desc>GitHub Icon</desc>
<path d="M7.2 6.6h-.1c-.5 1.4-.2 2.3-.1 2.6-.6.7-1 1.6-1 2.6 0 3.8 2.4 4.6 4.6 4.9-.2 0-.6.2-.8.8-.4.2-1.8.7-2.6-.7 0 0-.5-.8-1.3-.9 0 0-.8 0-.1.5 0 0 .6.3.9 1.3 0 0 .5 1.7 3 1.1v3.1h5v-3.5c0-1-.4-1.5-.8-1.8 2.2-.2 4.6-1 4.6-4.8 0-1.1-.4-2-1-2.6.1-.3.4-1.2-.1-2.6 0 0-.8-.3-2.7 1-.8-.2-1.6-.3-2.5-.3-.8 0-1.7.1-2.5.3-1.4-1-2.2-1-2.6-1zm12.8 15.4h-16c-1.1 0-2-.9-2-2v-16c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2z"/>
<path
d="M7.2 6.6h-.1c-.5 1.4-.2 2.3-.1 2.6-.6.7-1 1.6-1 2.6 0 3.8 2.4 4.6 4.6 4.9-.2 0-.6.2-.8.8-.4.2-1.8.7-2.6-.7 0 0-.5-.8-1.3-.9 0 0-.8 0-.1.5 0 0 .6.3.9 1.3 0 0 .5 1.7 3 1.1v3.1h5v-3.5c0-1-.4-1.5-.8-1.8 2.2-.2 4.6-1 4.6-4.8 0-1.1-.4-2-1-2.6.1-.3.4-1.2-.1-2.6 0 0-.8-.3-2.7 1-.8-.2-1.6-.3-2.5-.3-.8 0-1.7.1-2.5.3-1.4-1-2.2-1-2.6-1zm12.8 15.4h-16c-1.1 0-2-.9-2-2v-16c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2z" />
</svg>
</a>
<a href="https://steamcommunity.com/id/hashworks" rel="nofollow" target="_blank" class="icon">
<svg viewBox="0 0 512 512" height="21px" width="21px">
<a href="https://steamcommunity.com/id/hashworks" rel=nofollow target=_blank class=icon>
<svg viewBox="0 0 512 512" height=21px width=21px>
<desc>Steam Icon</desc>
<path d="M 151.961,418.005 C 165.533,418.005 178.854,411.437 186.947,399.297 C 199.814,379.996 194.598,353.92 175.298,341.053 L 142.261,319.029 C 147.915,317.489 153.858,316.651 160.00,316.651 C 197.196,316.651 227.348,346.803 227.348,384.00 C 227.348,421.197 197.195,451.349 159.999,451.349 C 123.797,451.349 94.277,422.783 92.725,386.962 L 128.702,410.946 C 135.863,415.72 143.955,418.005 151.961,418.005 ZM 426.67,0.00 C 473.608,0.00 512.00,38.406 512.00,85.344 L 512.00,426.658 C 512.00,473.626 473.608,512.00 426.67,512.00 L 85.344,512.00 C 38.406,512.00 0.00,473.625 0.00,426.659 L 0.00,325.145 L 60.667,365.589 C 54.841,397.176 64.136,431.004 88.566,455.434 C 128.018,494.886 191.981,494.886 231.434,455.434 C 255.668,431.201 265.009,397.719 259.472,366.351 L 384.001,254.858 L 384.00,254.857 C 407.124,251.538 429.408,240.985 447.197,223.196 C 490.935,179.458 490.935,108.543 447.197,64.804 C 403.457,21.065 332.543,21.065 288.804,64.804 C 271.015,82.593 260.462,104.877 257.143,128.00 L 257.143,128.00 L 154.796,283.115 C 138.872,283.931 123.107,288.497 108.933,296.811 L 0.00,224.189 L 0.00,85.344 C 0.00,38.406 38.405,0.00 85.343,0.00 L 426.67,0.00 ZM 448.00,144.00c0.00-44.183-35.817-80.00-80.00-80.00s-80.00,35.817-80.00,80.00s 35.817,80.00, 80.00,80.00S 448.00,188.183, 448.00,144.00z M 320.00,144.00 c0.00-26.51, 21.49-48.00, 48.00-48.00s 48.00,21.49, 48.00,48.00s-21.49,48.00-48.00,48.00S 320.00,170.51, 320.00,144.00z"/>
<path
d="M 151.961,418.005 C 165.533,418.005 178.854,411.437 186.947,399.297 C 199.814,379.996 194.598,353.92 175.298,341.053 L 142.261,319.029 C 147.915,317.489 153.858,316.651 160.00,316.651 C 197.196,316.651 227.348,346.803 227.348,384.00 C 227.348,421.197 197.195,451.349 159.999,451.349 C 123.797,451.349 94.277,422.783 92.725,386.962 L 128.702,410.946 C 135.863,415.72 143.955,418.005 151.961,418.005 ZM 426.67,0.00 C 473.608,0.00 512.00,38.406 512.00,85.344 L 512.00,426.658 C 512.00,473.626 473.608,512.00 426.67,512.00 L 85.344,512.00 C 38.406,512.00 0.00,473.625 0.00,426.659 L 0.00,325.145 L 60.667,365.589 C 54.841,397.176 64.136,431.004 88.566,455.434 C 128.018,494.886 191.981,494.886 231.434,455.434 C 255.668,431.201 265.009,397.719 259.472,366.351 L 384.001,254.858 L 384.00,254.857 C 407.124,251.538 429.408,240.985 447.197,223.196 C 490.935,179.458 490.935,108.543 447.197,64.804 C 403.457,21.065 332.543,21.065 288.804,64.804 C 271.015,82.593 260.462,104.877 257.143,128.00 L 257.143,128.00 L 154.796,283.115 C 138.872,283.931 123.107,288.497 108.933,296.811 L 0.00,224.189 L 0.00,85.344 C 0.00,38.406 38.405,0.00 85.343,0.00 L 426.67,0.00 ZM 448.00,144.00c0.00-44.183-35.817-80.00-80.00-80.00s-80.00,35.817-80.00,80.00s 35.817,80.00, 80.00,80.00S 448.00,188.183, 448.00,144.00z M 320.00,144.00 c0.00-26.51, 21.49-48.00, 48.00-48.00s 48.00,21.49, 48.00,48.00s-21.49,48.00-48.00,48.00S 320.00,170.51, 320.00,144.00z" />
</svg>
</a>
<a href="https://www.reddit.com/user/hashworks/posts/" rel="nofollow" target="_blank" class="icon">
<svg viewBox="0 0 512 512" height="24px" width="24px">
<a href="https://www.reddit.com/user/hashworks/posts/" rel=nofollow target=_blank class=icon>
<svg viewBox="0 0 512 512" height=24px width=24px>
<desc>Reddit Icon</desc>
<path d="M480.5,251c0-27.7-22.2-50.2-49.5-50.2c-13,0-24.7,5-33.6,13.3c-32.4-22.8-76.1-37.8-124.9-40.6l21.9-73.2l67.1,13.5 c2.3,22.7,21.2,40.4,44.3,40.4c0.1,0,0.1,0,0.2,0c0.1,0,0.1,0,0.2,0c24.6,0,44.5-20.2,44.5-45.1S430.7,64,406.1,64 c-0.1,0-0.1,0-0.2,0c0,0-0.1,0-0.1,0c-17.2,0-32,9.8-39.5,24.3l-89.7-18l-30.8,103l-2.5,0.1c-50.3,2.2-95.5,17.4-128.7,40.7 c-8.8-8.3-20.6-13.3-33.6-13.3c-27.3,0-49.5,22.5-49.5,50.2c0,19.6,11,36.5,27.1,44.8c-0.8,4.9-1.2,9.8-1.2,14.8 C57.5,386.4,146.4,448,256,448s198.5-61.6,198.5-137.5c0-5-0.4-9.9-1.1-14.8C469.5,287.4,480.5,270.5,480.5,251z M65.8,271.1 c-6.6-4.5-10.9-12.1-10.9-20.8c0-13.8,11.1-25.1,24.7-25.1c5.6,0,10.8,1.9,15,5.1C81.1,242.2,71.1,256,65.8,271.1z M389.3,109.1 c0-9.2,7.4-16.8,16.5-16.8s16.5,7.5,16.5,16.8c0,9.2-7.4,16.8-16.5,16.8S389.3,118.4,389.3,109.1z M158.5,288.4 c0-17.6,14.2-31.8,31.8-31.8s31.8,14.2,31.8,31.8c0,17.6-14.2,31.8-31.8,31.8S158.5,306,158.5,288.4z M256,400 c-47.6-0.2-76-28.5-77.2-29.7l12.6-12.4c0.2,0.2,23.7,24.2,64.6,24.4c40.3-0.2,64.2-24.2,64.5-24.4l12.6,12.4 C331.9,371.5,303.6,399.8,256,400z M322.3,320.2c-17.6,0-31.8-14.2-31.8-31.8c0-17.6,14.2-31.8,31.8-31.8s31.8,14.2,31.8,31.8 C354.1,306,339.8,320.2,322.3,320.2z M446.4,271.5c-5.4-15.3-15.6-29.4-29.3-41.4c4.2-3.3,9.5-5.2,15.2-5.2 c13.9,0,25.1,11.4,25.1,25.5C457.5,259.2,453.1,266.9,446.4,271.5z"/>
<path
d="M480.5,251c0-27.7-22.2-50.2-49.5-50.2c-13,0-24.7,5-33.6,13.3c-32.4-22.8-76.1-37.8-124.9-40.6l21.9-73.2l67.1,13.5 c2.3,22.7,21.2,40.4,44.3,40.4c0.1,0,0.1,0,0.2,0c0.1,0,0.1,0,0.2,0c24.6,0,44.5-20.2,44.5-45.1S430.7,64,406.1,64 c-0.1,0-0.1,0-0.2,0c0,0-0.1,0-0.1,0c-17.2,0-32,9.8-39.5,24.3l-89.7-18l-30.8,103l-2.5,0.1c-50.3,2.2-95.5,17.4-128.7,40.7 c-8.8-8.3-20.6-13.3-33.6-13.3c-27.3,0-49.5,22.5-49.5,50.2c0,19.6,11,36.5,27.1,44.8c-0.8,4.9-1.2,9.8-1.2,14.8 C57.5,386.4,146.4,448,256,448s198.5-61.6,198.5-137.5c0-5-0.4-9.9-1.1-14.8C469.5,287.4,480.5,270.5,480.5,251z M65.8,271.1 c-6.6-4.5-10.9-12.1-10.9-20.8c0-13.8,11.1-25.1,24.7-25.1c5.6,0,10.8,1.9,15,5.1C81.1,242.2,71.1,256,65.8,271.1z M389.3,109.1 c0-9.2,7.4-16.8,16.5-16.8s16.5,7.5,16.5,16.8c0,9.2-7.4,16.8-16.5,16.8S389.3,118.4,389.3,109.1z M158.5,288.4 c0-17.6,14.2-31.8,31.8-31.8s31.8,14.2,31.8,31.8c0,17.6-14.2,31.8-31.8,31.8S158.5,306,158.5,288.4z M256,400 c-47.6-0.2-76-28.5-77.2-29.7l12.6-12.4c0.2,0.2,23.7,24.2,64.6,24.4c40.3-0.2,64.2-24.2,64.5-24.4l12.6,12.4 C331.9,371.5,303.6,399.8,256,400z M322.3,320.2c-17.6,0-31.8-14.2-31.8-31.8c0-17.6,14.2-31.8,31.8-31.8s31.8,14.2,31.8,31.8 C354.1,306,339.8,320.2,322.3,320.2z M446.4,271.5c-5.4-15.3-15.6-29.4-29.3-41.4c4.2-3.3,9.5-5.2,15.2-5.2 c13.9,0,25.1,11.4,25.1,25.5C457.5,259.2,453.1,266.9,446.4,271.5z" />
</svg>
</a>
</nav>
</header>
<div class="content">
{{end}}
<div class=content>
{{end}}
\ No newline at end of file
{{define "index"}}
{{template "header" . }}
<div class="page">
<section class="cards">
<div class=page>
<section class=cards>
<article class="card full">
<h1>Contact</h1>
<p>You can contact me by mail using <a href="mailto:mail@hashworks.net">mail@hashworks.net</a>.</p>
<p>My PGP public key is available <a href="/static/pgp_public_key.asc">here</a>.</p>
<br/>
<p>Additionally you can find me as `hashworks` on the <a href="https://freenode.net/" rel="nofollow" target="_blank">freenode irc network</a>.</p>
<br />
<p>Additionally you can find me as `hashworks` on the <a href="https://freenode.net/" rel=nofollow
target=_blank>freenode irc network</a>.</p>
</article>
</section>
</div>
......
{{define "status"}}
{{template "header" . }}
<div class="page">
<section class="cards">
<article class="card">
<div class="tag">{{ LoadHost }}</div>
<div class=page>
<section class=cards>
<article class=card>
<div class=tag>{{ LoadHost }}</div>
<h1>Server Load</h1>
<table class="load">
<tr>
{{range .Loads }}
<table class=load>
<tr>
{{range .Loads }}
<td class="{{ .Status }}">{{printf "%.02f" .Value}}</td>
{{else}}
<div class="status error">No data!</div>
{{end}}
</tr>
{{else}}
<div class="status error">No data!</div>
{{end}}
</tr>
</table>
<div class="status-svg">
<div class="load"></div>
<div class=status-svg>
<div class=load></div>
</div>
</article>
<article class="card">
<div class="tag">{{ LoadHost }}</div>
<article class=card>
<div class=tag>{{ LoadHost }}</div>
<h1>Public Services</h1>
{{range .Services }}
<h4>{{.Name}}:</h4>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment