diff --git a/indexHtml.go b/indexHtml.go
index e025ea3..65f7bc7 100644
--- a/indexHtml.go
+++ b/indexHtml.go
@@ -76,7 +76,7 @@ func indexBodyStart(w http.ResponseWriter) {
func insertHTMLnote(w http.ResponseWriter, i int, parts []string) {
log.Info("comment # line:", i, strings.Join(parts, " "))
- fmt.Fprintln(w, "
", strings.Join(parts, " "), " | | | | |
")
+ fmt.Fprintln(w, " ", strings.Join(parts, " "), " | | | | |
")
}
func indexBodyScanConfig(w http.ResponseWriter) {
@@ -107,11 +107,15 @@ func indexBodyScanConfig(w http.ResponseWriter) {
func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, github string) {
// fmt.Fprintln(w, " log/ (needed for the gui) | | | | |
")
fmt.Fprintln(w, " ")
- fmt.Fprintln(w, " ", gourl, " | ")
- fmt.Fprintln(w, " ", gourl, " | ")
- fmt.Fprintln(w, " git.wit.org/wit/log | ")
- fmt.Fprintln(w, " github.com/wit-go/log | ")
- fmt.Fprintln(w, " | ")
+ fmt.Fprintln(w, " " + gourl + " | ")
+ fmt.Fprintln(w, " " + gourl + " | ")
+ fmt.Fprintln(w, " " + giturl + " | ")
+ if github == "" {
+ fmt.Fprintln(w, " | ")
+ } else {
+ fmt.Fprintln(w, " github.com/wit-go/log | ")
+ }
+ fmt.Fprintln(w, " | ")
fmt.Fprintln(w, "
")
fmt.Fprintln(w, "")
}
diff --git a/main.go b/main.go
index 20bfa8f..01a7f70 100644
--- a/main.go
+++ b/main.go
@@ -21,10 +21,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
if tmp == "/" {
- findFile(w, "files/index.html")
- return
- }
- if tmp == "/new" {
indexHeader(w)
indexBodyStart(w)
indexBodyScanConfig(w)
@@ -32,6 +28,10 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
indexBodyEnd(w)
return
}
+ if tmp == "/old" {
+ findFile(w, "files/index.html")
+ return
+ }
if tmp == "/test" {
findFile(w, "files/repo.html")
return