summaryrefslogtreecommitdiff
path: root/repoHTML.go
blob: f30fccac92bdf236452062d1d6505863f736fe95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main

import (
	"fmt"
	// "log"
	"net/http"
)


/*
<!DOCTYPE html>
<html>
    <head>
        <meta name="go-import" content="go.wit.com/gui/gui git https://git.wit.org/gui/gui">
        <meta name="go-source" content="go.wit.com/gui/gui https://git.wit.org/gui/gui https://git.wit.org/gui/tree/master{/dir} https://git.wit.org/gui/gui/tree/master{/dir}/{file}#L{line}">
        <meta http-equiv="refresh" content="0; url=https://git.wit.org/gui/gui">
    </head>
    <body>
        Nothing to see here. Please <a href="https://git.wit.org/gui/gui">move along</a>.
    </body>
</html>
*/

func doGui(w http.ResponseWriter, path string) {
	fmt.Fprintln(w, "<!DOCTYPE html>")
	fmt.Fprintln(w, "<html>")
	fmt.Fprintln(w, "<head>")
	// fmt.Fprintln(w, 
	fmt.Fprintln(w, "<meta name=\"go-import\" content=\"", "go.wit.com/gui/gui", "git",  "https://git.wit.org/gui/gui\">")
	fmt.Fprintln(w, "<meta name=\"go-source\" content=\"", "go.wit.com/gui/gui", "https://git.wit.org/gui/gui", "https://git.wit.org/gui/tree/master{/dir}", "https://git.wit.org/gui/gui/", "tree/master{/dir}/{file}#L{line}", "\"", ">")

	fmt.Fprintln(w, "<meta http-equiv=\"refresh\" content=\"0; url=", "https://git.wit.org/gui/gui", "\">")
	fmt.Fprintln(w, "</head>")
	fmt.Fprintln(w, "<body>")
	fmt.Fprintln(w, "Nothing to see here. Please <a href=\"https://git.wit.org/gui/gui\">move along</a>.\"")
	fmt.Fprintln(w, "</body>")
	fmt.Fprintln(w, "</html>")

	/*
	var tmp string
	tmp = r.URL.String()
	if tmp == "/gui" {
		findFile(w)
		return
	}
	fmt.Fprintln(w, "OK")
	*/
}