var table bytes.Buffer
table.WriteString(
- "<table border=1>\n<tr>" +
+ "<table border=1>\n" +
+ "<caption>Comments</caption>\n<tr>" +
"<th>N</th>" +
"<th>When</th>" +
"<th>Title</th>" +
- "<th size=\"5%\">L</th>" +
- "<th size=\"5%\">C</th>" +
+ `<th size="5%"><a title="Lines">L</a></th>` +
+ `<th size="5%"><a title="Comments">C</a></th>` +
"<th>Linked to</th></tr>\n")
for _, entry := range entries {
commentN++
href = cfg.URLPrefix + "/"
}
links = append(links, `<link rel="prev" href="`+href+`" title="newer">`)
- refs.WriteString(makeA(href, " [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">`)
- refs.WriteString(makeA(href, " [next]"))
+ refs.WriteString("\n" + makeA(href, "[next]"))
}
os.Stdout.Write([]byte(startHeader(etagHash, gzipWriter != nil)))
}
out.Write([]byte(startHTML(fmt.Sprintf("%s (%s)", title, when), links)))
if cfg.AboutURL != "" {
- out.Write([]byte(fmt.Sprintf("[%s] ", makeA(cfg.AboutURL, "about"))))
+ out.Write([]byte(fmt.Sprintf("[%s]\n", makeA(cfg.AboutURL, "about"))))
}
if parent != "" {
out.Write([]byte(fmt.Sprintf(
- "[%s] ",
+ "[%s]\n",
makeA(cfg.URLPrefix+"/"+parent, "older"),
)))
}
out.Write([]byte(fmt.Sprintf(
- "[<tt>%s</tt>] [<tt>%s</tt>]<hr/>\n<h2>%s</h2>\n<pre>\n",
+ "[<tt><a title=\"When\">%s</a></tt>]\n"+
+ "[<tt><a title=\"Hash\">%s</a></tt>]\n"+
+ "<hr/>\n<h2>%s</h2>\n<pre>\n",
when, commit.Hash.String(), title,
)))
for _, line := range lines[2:] {