blinkies
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
97efd2a374
commit
dd7bb4cfde
|
@ -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) {
|
mux.HandleFunc("GET /{name}", func(w http.ResponseWriter, r *http.Request) {
|
||||||
requestContext := makeRequestContext()
|
requestContext := makeRequestContext()
|
||||||
name := r.PathValue("name")
|
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{
|
return &http.Server{
|
||||||
|
|
|
@ -29,8 +29,8 @@ func GetArgs() (*Arguments, error) {
|
||||||
databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database")
|
databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database")
|
||||||
templatePath := flag.String("template-path", "./templates", "Path to the template directory")
|
templatePath := flag.String("template-path", "./templates", "Path to the template directory")
|
||||||
staticPath := flag.String("static-path", "./static", "Path to the static 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")
|
server := flag.Bool("server", false, "Run the server")
|
||||||
migrate := flag.Bool("migrate", false, "Run the migrations")
|
migrate := flag.Bool("migrate", false, "Run the migrations")
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
|
@ -19,14 +19,24 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="content" class="container">
|
<div id="content" class="container">
|
||||||
<div class="header">
|
<div>
|
||||||
<h1>hatecomputers.club</h1>
|
<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>
|
<span> | </span>
|
||||||
{{ if .User }}
|
{{ if .User }}
|
||||||
<a href="/logout">logout, {{ .User.DisplayName }}.</a>
|
<a href="/dns">dns.</a>
|
||||||
|
<span> | </span>
|
||||||
|
<a href="/logout">logout, {{ .User.DisplayName }}.</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="/login">login.</a>
|
<a href="/login">login.</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -34,7 +44,29 @@
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{{ template "content" . }}
|
{{ template "content" . }}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
<script data-main="/static/js/script.js" src="/static/js/require.js"></script>
|
<script data-main="/static/js/script.js" src="/static/js/require.js"></script>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
|
<p class="blinky">under construction!</p>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue