summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api/serve.go2
-rw-r--r--args/args.go2
-rw-r--r--static/img/blinkies/autism.gifbin0 -> 1214 bytes
-rw-r--r--static/img/blinkies/connection.gifbin0 -> 3965 bytes
-rw-r--r--static/img/blinkies/construction.gifbin0 -> 1761 bytes
-rw-r--r--static/img/blinkies/fuckcomputers.gifbin0 -> 2493 bytes
-rw-r--r--static/img/blinkies/hatecomputers-club.gifbin0 -> 2119 bytes
-rw-r--r--static/img/blinkies/loveuguys.gifbin0 -> 6357 bytes
-rw-r--r--templates/base.html42
-rw-r--r--templates/home.html4
10 files changed, 41 insertions, 9 deletions
diff --git a/api/serve.go b/api/serve.go
index df30e76..758a8d9 100644
--- a/api/serve.go
+++ b/api/serve.go
@@ -111,7 +111,7 @@ func MakeServer(argv *args.Arguments, dbConn *sql.DB) *http.Server {
mux.HandleFunc("GET /{name}", func(w http.ResponseWriter, r *http.Request) {
requestContext := makeRequestContext()
name := r.PathValue("name")
- LogRequestContinuation(requestContext, r, w)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation)
+ LogRequestContinuation(requestContext, r, w)(VerifySessionContinuation, FailurePassingContinuation)(IdContinuation, IdContinuation)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation)
})
return &http.Server{
diff --git a/args/args.go b/args/args.go
index 64dee35..fe06f28 100644
--- a/args/args.go
+++ b/args/args.go
@@ -29,8 +29,8 @@ func GetArgs() (*Arguments, error) {
databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database")
templatePath := flag.String("template-path", "./templates", "Path to the template directory")
staticPath := flag.String("static-path", "./static", "Path to the static directory")
- scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron")
+ scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron")
server := flag.Bool("server", false, "Run the server")
migrate := flag.Bool("migrate", false, "Run the migrations")
diff --git a/static/img/blinkies/autism.gif b/static/img/blinkies/autism.gif
new file mode 100644
index 0000000..1290ff4
--- /dev/null
+++ b/static/img/blinkies/autism.gif
Binary files differ
diff --git a/static/img/blinkies/connection.gif b/static/img/blinkies/connection.gif
new file mode 100644
index 0000000..fa17e1a
--- /dev/null
+++ b/static/img/blinkies/connection.gif
Binary files differ
diff --git a/static/img/blinkies/construction.gif b/static/img/blinkies/construction.gif
new file mode 100644
index 0000000..332399f
--- /dev/null
+++ b/static/img/blinkies/construction.gif
Binary files differ
diff --git a/static/img/blinkies/fuckcomputers.gif b/static/img/blinkies/fuckcomputers.gif
new file mode 100644
index 0000000..c743acb
--- /dev/null
+++ b/static/img/blinkies/fuckcomputers.gif
Binary files differ
diff --git a/static/img/blinkies/hatecomputers-club.gif b/static/img/blinkies/hatecomputers-club.gif
new file mode 100644
index 0000000..aa90c8d
--- /dev/null
+++ b/static/img/blinkies/hatecomputers-club.gif
Binary files differ
diff --git a/static/img/blinkies/loveuguys.gif b/static/img/blinkies/loveuguys.gif
new file mode 100644
index 0000000..89cd0aa
--- /dev/null
+++ b/static/img/blinkies/loveuguys.gif
Binary files differ
diff --git a/templates/base.html b/templates/base.html
index 1846493..094d018 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -19,14 +19,24 @@
</head>
<body>
<div id="content" class="container">
- <div class="header">
+ <div>
<h1>hatecomputers.club</h1>
- <a href="javascript:void(0);" id="theme-switcher"></a>
+ <a href="javascript:void(0);" id="theme-switcher">light mode.</a>
+ <span> | </span>
+ <a href="/">home.</a>
+ <span> | </span>
+ <a href="/">about.</a>
+ <span> | </span>
+ <a href="/">guestbook.</a>
+ <span> | </span>
+ <a href="/">webring.</a>
<span> | </span>
{{ if .User }}
- <a href="/logout">logout, {{ .User.DisplayName }}.</a>
+ <a href="/dns">dns.</a>
+ <span> | </span>
+ <a href="/logout">logout, {{ .User.DisplayName }}.</a>
{{ else }}
- <a href="/login">login.</a>
+ <a href="/login">login.</a>
{{ end }}
</div>
<hr>
@@ -34,7 +44,29 @@
<div id="content">
{{ template "content" . }}
</div>
- <p class="blinky">hi</p>
+
+ <hr>
+
+ <div class="footer">
+ <div>
+ <img width="150" height="20" src="/static/img/blinkies/hatecomputers-club.gif">
+ <img width="150" height="20" src="/static/img/blinkies/loveuguys.gif">
+ <img width="150" height="20" src="/static/img/blinkies/autism.gif">
+ <img width="150" height="20" src="/static/img/blinkies/fuckcomputers.gif">
+ <img width="150" height="20" src="/static/img/blinkies/connection.gif">
+ </div>
+
+ {{ if .User }}
+ <a href="https://git.hatecomputers.club/{{ .User.Username }}">git</a>
+ {{ else }}
+ <a href="https://git.hatecomputers.club">git.</a>
+ {{ end }}
+
+ <span> | </span>
+ <a href="https://mail.hatecomputers.club">e-mail.</a>
+ <span> | </span>
+ <a href="https://auth.hatecomputers.club">sso.</a>
+ </div>
</div>
<script data-main="/static/js/script.js" src="/static/js/require.js"></script>
diff --git a/templates/home.html b/templates/home.html
index 1938a03..de52bef 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -1,3 +1,3 @@
{{ define "content" }}
-
-{{ end }} \ No newline at end of file
+<p class="blinky">under construction!</p>
+{{ end }}