deletions: recents: mark deleted pages with css
This commit is contained in:
parent
0a332642d7
commit
5148c59944
@ -51,10 +51,13 @@ func (this *WikiServer) routeRecentChanges(w http.ResponseWriter, r *http.Reques
|
|||||||
diffHtml = `<a href="` + template.HTMLEscapeString(this.opts.ExpectBaseURL+`diff/`+fmt.Sprintf("%d/%d", diffRev, rev.ArticleID)) + `">diff</a>`
|
diffHtml = `<a href="` + template.HTMLEscapeString(this.opts.ExpectBaseURL+`diff/`+fmt.Sprintf("%d/%d", diffRev, rev.ArticleID)) + `">diff</a>`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
classAttr := ""
|
||||||
|
if rev.IsDeleted {
|
||||||
|
classAttr = `class="deleted"`
|
||||||
}
|
}
|
||||||
|
|
||||||
content += `<tr>` +
|
content += `<tr>` +
|
||||||
`<td><a href="` + template.HTMLEscapeString(this.opts.ExpectBaseURL+`view/`+url.PathEscape(rev.Title)) + `">` + template.HTMLEscapeString(rev.Title) + `</a></td>` +
|
`<td><a ` + classAttr + ` href="` + template.HTMLEscapeString(this.opts.ExpectBaseURL+`view/`+url.PathEscape(rev.Title)) + `">` + template.HTMLEscapeString(rev.Title) + `</a></td>` +
|
||||||
`<td>` +
|
`<td>` +
|
||||||
`<a href="` + template.HTMLEscapeString(this.opts.ExpectBaseURL+`archive/`+fmt.Sprintf("%d", rev.ArticleID)) + `">rev</a> ` +
|
`<a href="` + template.HTMLEscapeString(this.opts.ExpectBaseURL+`archive/`+fmt.Sprintf("%d", rev.ArticleID)) + `">rev</a> ` +
|
||||||
diffHtml +
|
diffHtml +
|
||||||
|
Loading…
Reference in New Issue
Block a user