diff --git a/src/web.go b/src/web.go index 10d7afd..64a44dc 100644 --- a/src/web.go +++ b/src/web.go @@ -52,7 +52,7 @@ func (i *Instance) Serve(addr string) error { i.router.GET("/server/:server_id", i.page_server) //i.router.GET("/stats", page_stats) - //i.router.GET("/about", page_about) + i.router.GET("/about", i.page_about) return i.router.Run(i.addr) } @@ -65,6 +65,10 @@ func (i *Instance) page_index(c *gin.Context) { }) } +func (i *Instance) page_about(c *gin.Context) { + c.HTML(http.StatusOK, "page_about.html", nil) +} + func (i *Instance) page_server(c *gin.Context) { id, err := strconv.ParseInt(c.Param("server_id"), 10, 0) if err != nil { diff --git a/templates/page_about.html b/templates/page_about.html new file mode 100644 index 0000000..96ccaf3 --- /dev/null +++ b/templates/page_about.html @@ -0,0 +1,23 @@ +{{template "header" .}} + +

About

+

A server hub dedicated to SS13 and possibly a better replacement for the default +server page at Byond.

+ +

More info and full source code can be found on +Github.

+ +

Data Sources

+

The data used for most of the public servers is scraped from +the Byond page.

+ +

All private servers, and some public ones, are being polled +directly for data.

+ +

If you would like to add your server to the private list, +and accept being polled about 4 times an hour, please open a +new ticket on the +issue tracker on github.

+ +{{template "footer"}} +