Add spec diff to index page

pull/977/head
Daniel Wagner-Hall 9 years ago
parent 521d625aac
commit c55917d99c

@ -284,8 +284,8 @@ func listPulls(w http.ResponseWriter, req *http.Request) {
} }
s := "<body><ul>" s := "<body><ul>"
for _, pull := range pulls { for _, pull := range pulls {
s += fmt.Sprintf(`<li>%d: <a href="%s">%s</a>: <a href="%s">%s</a>: <a href="spec/%d">spec</a> <a href="diff/rst/%d">rst diff</a></li>`, s += fmt.Sprintf(`<li>%d: <a href="%s">%s</a>: <a href="%s">%s</a>: <a href="spec/%d">spec</a> <a href="diff/html/%d">spec diff</a> <a href="diff/rst/%d">rst diff</a></li>`,
pull.Number, pull.User.HTMLURL, pull.User.Login, pull.HTMLURL, pull.Title, pull.Number, pull.Number) pull.Number, pull.User.HTMLURL, pull.User.Login, pull.HTMLURL, pull.Title, pull.Number, pull.Number, pull.Number)
} }
s += "</ul></body>" s += "</ul></body>"
io.WriteString(w, s) io.WriteString(w, s)

Loading…
Cancel
Save