very close to working
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f8ae1dee50
commit
e34f8f5734
38
indexHtml.go
38
indexHtml.go
|
@ -36,7 +36,7 @@ func indexHeader(w http.ResponseWriter) {
|
||||||
fmt.Fprintln(w, "<!DOCTYPE html>")
|
fmt.Fprintln(w, "<!DOCTYPE html>")
|
||||||
fmt.Fprintln(w, "<html>")
|
fmt.Fprintln(w, "<html>")
|
||||||
fmt.Fprintln(w, " <head>")
|
fmt.Fprintln(w, " <head>")
|
||||||
fmt.Fprintln(w, " <link rel=\"stylesheet\" href=\"skeleton.v2.css\" />")
|
// fmt.Fprintln(w, " <link rel=\"stylesheet\" href=\"skeleton.v2.css\" />")
|
||||||
fmt.Fprintln(w, " <style>")
|
fmt.Fprintln(w, " <style>")
|
||||||
fmt.Fprintln(w, " #footer {")
|
fmt.Fprintln(w, " #footer {")
|
||||||
fmt.Fprintln(w, " position: fixed;")
|
fmt.Fprintln(w, " position: fixed;")
|
||||||
|
@ -54,20 +54,32 @@ func indexHeader(w http.ResponseWriter) {
|
||||||
|
|
||||||
func indexBodyStart(w http.ResponseWriter) {
|
func indexBodyStart(w http.ResponseWriter) {
|
||||||
// fmt.Fprintln(w, "
|
// fmt.Fprintln(w, "
|
||||||
fmt.Fprintln(w, " <body>")
|
fmt.Fprintln(w, "<body>")
|
||||||
fmt.Fprintln(w, " <div class=\"container\">")
|
fmt.Fprintln(w, " <div class=\"container\">")
|
||||||
fmt.Fprintln(w, " <div class=\"row\">")
|
fmt.Fprintln(w, " <div class=\"row\">")
|
||||||
fmt.Fprintln(w, " <table class=\"u-full-width\">")
|
fmt.Fprintln(w, " <table class=\"u-full-width\">")
|
||||||
fmt.Fprintln(w, " <thead>")
|
fmt.Fprintln(w, " <thead>")
|
||||||
|
fmt.Fprintln(w, " <tr>")
|
||||||
|
fmt.Fprintln(w, " <th>Package</th>")
|
||||||
|
fmt.Fprintln(w, " <th>go get</th>")
|
||||||
|
fmt.Fprintln(w, " <th>Authoritative sources (IPv6 only)</th>")
|
||||||
|
fmt.Fprintln(w, " <th>github mirror</th>")
|
||||||
|
fmt.Fprintln(w, " <th>Documentation</th>")
|
||||||
|
fmt.Fprintln(w, " </tr>")
|
||||||
|
fmt.Fprintln(w, " </thead>")
|
||||||
|
fmt.Fprintln(w, " <tbody>")
|
||||||
|
fmt.Fprintln(w, "")
|
||||||
|
}
|
||||||
|
|
||||||
|
func indexBodyRepo(w http.ResponseWriter, repourl string) {
|
||||||
|
fmt.Fprintln(w, " <tr> <td><h5>log/ (needed for the gui)</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>")
|
||||||
fmt.Fprintln(w, " <tr>")
|
fmt.Fprintln(w, " <tr>")
|
||||||
fmt.Fprintln(w, " <th>Package</th>")
|
fmt.Fprintln(w, " <td>log</td>")
|
||||||
fmt.Fprintln(w, " <th>go get</th>")
|
fmt.Fprintln(w, " <td> <a href=\"//go.wit.com/log\">go.wit.com/log</a></td>")
|
||||||
fmt.Fprintln(w, " <th>Authoritative sources (IPv6 only)</th>")
|
fmt.Fprintln(w, " <td> <a href=\"//git.wit.org/wit/log\">git.wit.org/wit/log</a></td>")
|
||||||
fmt.Fprintln(w, " <th>github mirror</th>")
|
fmt.Fprintln(w, " <td> <a href=\"//github.com/wit-go/log\">github.com/wit-go/log</a></td>")
|
||||||
fmt.Fprintln(w, " <th>Documentation</th>")
|
fmt.Fprintln(w, " <td> <a href=\"//pkg.go.dev/go.wit.com/log\"> <img src=\"goReference.svg\" alt=\"Go Reference\" /> </a> </td>")
|
||||||
fmt.Fprintln(w, " </tr>")
|
fmt.Fprintln(w, " </tr>")
|
||||||
fmt.Fprintln(w, " </thead>")
|
|
||||||
fmt.Fprintln(w, " <tbody>")
|
|
||||||
fmt.Fprintln(w, "")
|
fmt.Fprintln(w, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue