1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

Show primitive diffs of deleted hyphae

This commit is contained in:
Timur Ismagilov 2021-07-30 19:20:21 +05:00
parent b7cbe04cfc
commit 448eec3d6f
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
{% func PrimitiveDiffHTML(rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) %} {% func PrimitiveDiffHTML(rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) %}
{% code {% code
text, err := history.PrimitiveDiffAtRevision(h.TextPath, hash) text, err := history.PrimitiveDiffAtRevision(h.TextPartPath(), hash)
if err != nil { if err != nil {
text = err.Error() text = err.Error()
} }

View File

@ -47,7 +47,7 @@ func StreamPrimitiveDiffHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyp
qw422016.N().S(` qw422016.N().S(`
`) `)
//line views/history.qtpl:14 //line views/history.qtpl:14
text, err := history.PrimitiveDiffAtRevision(h.TextPath, hash) text, err := history.PrimitiveDiffAtRevision(h.TextPartPath(), hash)
if err != nil { if err != nil {
text = err.Error() text = err.Error()
} }