]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog/http.go
Leave comments link on gopher page
[sgblog.git] / cmd / sgblog / http.go
index a91da3c9422338204a7617d66a7b2bf6c2308bcb..4d88fb8cdbb10f18221805310af5578972d59148 100644 (file)
@@ -293,7 +293,6 @@ func serveHTTP() {
                var table bytes.Buffer
                table.WriteString(
                        "<table border=1>\n" +
-                               "<caption>Comments</caption>\n<tr>" +
                                "<th>N</th>" +
                                "<th>When</th>" +
                                "<th>Title</th>" +
@@ -353,12 +352,12 @@ func serveHTTP() {
                        } else {
                                href = cfg.URLPrefix + "/"
                        }
-                       links = append(links, `<link rel="prev" href="`+href+`" title="newer">`)
+                       links = append(links, `<link rel="prev" href="`+href+`" title="prev">`)
                        refs.WriteString("\n" + makeA(href, "[prev]"))
                }
                if !logEnded {
                        href = cfg.URLPrefix + "/?offset=" + strconv.Itoa(offset+PageEntries)
-                       links = append(links, `<link rel="next" href="`+href+`" title="older">`)
+                       links = append(links, `<link rel="next" href="`+href+`" title="next">`)
                        refs.WriteString("\n" + makeA(href, "[next]"))
                }
 
@@ -471,7 +470,7 @@ func serveHTTP() {
                var parent string
                if len(commit.ParentHashes) > 0 {
                        parent = commit.ParentHashes[0].String()
-                       links = append(links, `<link rel="prev" href="`+cfg.URLPrefix+"/"+parent+`" title="older">`)
+                       links = append(links, `<link rel="prev" href="`+cfg.URLPrefix+"/"+parent+`" title="prev">`)
                }
                out.Write([]byte(startHTML(fmt.Sprintf("%s (%s)", title, when), links)))
                if cfg.AboutURL != "" {
@@ -479,14 +478,11 @@ func serveHTTP() {
                }
                out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.URLPrefix+"/", "index"))))
                if parent != "" {
-                       out.Write([]byte(fmt.Sprintf(
-                               "[%s]\n",
-                               makeA(cfg.URLPrefix+"/"+parent, "older"),
-                       )))
+                       out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.URLPrefix+"/"+parent, "prev"))))
                }
                out.Write([]byte(fmt.Sprintf(
                        "[<tt><a title=\"When\">%s</a></tt>]\n"+
-                               "[<tt><a title=\"Hash\">%s</a></tt>]\n"+
+                               "[<tt><a title=\"What\">%s</a></tt>]\n"+
                                "<hr/>\n<h2>%s</h2>\n<pre>\n",
                        when, commit.Hash.String(), title,
                )))
@@ -500,7 +496,7 @@ func serveHTTP() {
                if cfg.CommentsEmail != "" {
                        out.Write([]byte("[" + makeA(
                                "mailto:"+cfg.CommentsEmail+"?subject="+commit.Hash.String(),
-                               "write comment",
+                               "leave comment",
                        ) + "]\n"))
                }
                out.Write([]byte("<dl>\n"))