mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-19 07:02:51 +00:00
Do not show siblings and subhyphae on revision pages
It didn't really make sense before
This commit is contained in:
parent
7b51467495
commit
0eb3ba9b45
@ -137,9 +137,6 @@ If you rename .prevnext, change the docs too.
|
||||
{% endfunc %}
|
||||
|
||||
{% func RevisionHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) %}
|
||||
{% code
|
||||
siblings, subhyphae, _, _ := tree.Tree(h.CanonicalName())
|
||||
%}
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
<section>
|
||||
@ -147,9 +144,7 @@ If you rename .prevnext, change the docs too.
|
||||
{%s= NaviTitleHTML(h) %}
|
||||
{%s= contents %}
|
||||
</section>
|
||||
{%= SubhyphaeHTML(subhyphae, lc) %}
|
||||
</main>
|
||||
{%= siblingHyphaeHTML(siblings, lc) %}
|
||||
</div>
|
||||
{%= viewScripts() %}
|
||||
{% endfunc %}
|
||||
|
@ -512,135 +512,119 @@ func HyphaHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents st
|
||||
func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) {
|
||||
//line views/readers.qtpl:139
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/readers.qtpl:141
|
||||
siblings, subhyphae, _, _ := tree.Tree(h.CanonicalName())
|
||||
|
||||
//line views/readers.qtpl:142
|
||||
qw422016.N().S(`
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
<section>
|
||||
<p>`)
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.E().S(lc.Get("ui.revision_warning"))
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.N().S(` <a href="/rev-text/`)
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.E().S(revHash)
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.N().S(`/`)
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.E().S(h.CanonicalName())
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.N().S(`">`)
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.E().S(lc.Get("ui.revision_link"))
|
||||
//line views/readers.qtpl:146
|
||||
//line views/readers.qtpl:143
|
||||
qw422016.N().S(`</a></p>
|
||||
`)
|
||||
//line views/readers.qtpl:147
|
||||
//line views/readers.qtpl:144
|
||||
qw422016.N().S(NaviTitleHTML(h))
|
||||
//line views/readers.qtpl:147
|
||||
//line views/readers.qtpl:144
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/readers.qtpl:148
|
||||
//line views/readers.qtpl:145
|
||||
qw422016.N().S(contents)
|
||||
//line views/readers.qtpl:148
|
||||
//line views/readers.qtpl:145
|
||||
qw422016.N().S(`
|
||||
</section>
|
||||
`)
|
||||
//line views/readers.qtpl:150
|
||||
StreamSubhyphaeHTML(qw422016, subhyphae, lc)
|
||||
//line views/readers.qtpl:150
|
||||
qw422016.N().S(`
|
||||
</main>
|
||||
`)
|
||||
//line views/readers.qtpl:152
|
||||
streamsiblingHyphaeHTML(qw422016, siblings, lc)
|
||||
//line views/readers.qtpl:152
|
||||
qw422016.N().S(`
|
||||
</div>
|
||||
`)
|
||||
//line views/readers.qtpl:154
|
||||
//line views/readers.qtpl:149
|
||||
streamviewScripts(qw422016)
|
||||
//line views/readers.qtpl:154
|
||||
//line views/readers.qtpl:149
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
}
|
||||
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) {
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
StreamRevisionHTML(qw422016, rq, lc, h, contents, revHash)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
}
|
||||
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
func RevisionHTML(rq *http.Request, lc *l18n.Localizer, h hyphae.Hypha, contents, revHash string) string {
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
WriteRevisionHTML(qb422016, rq, lc, h, contents, revHash)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
return qs422016
|
||||
//line views/readers.qtpl:155
|
||||
//line views/readers.qtpl:150
|
||||
}
|
||||
|
||||
//line views/readers.qtpl:157
|
||||
//line views/readers.qtpl:152
|
||||
func streamviewScripts(qw422016 *qt422016.Writer) {
|
||||
//line views/readers.qtpl:157
|
||||
//line views/readers.qtpl:152
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/readers.qtpl:158
|
||||
//line views/readers.qtpl:153
|
||||
for _, scriptPath := range cfg.ViewScripts {
|
||||
//line views/readers.qtpl:158
|
||||
//line views/readers.qtpl:153
|
||||
qw422016.N().S(`
|
||||
<script src="`)
|
||||
//line views/readers.qtpl:159
|
||||
//line views/readers.qtpl:154
|
||||
qw422016.E().S(scriptPath)
|
||||
//line views/readers.qtpl:159
|
||||
//line views/readers.qtpl:154
|
||||
qw422016.N().S(`"></script>
|
||||
`)
|
||||
//line views/readers.qtpl:160
|
||||
//line views/readers.qtpl:155
|
||||
}
|
||||
//line views/readers.qtpl:160
|
||||
//line views/readers.qtpl:155
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
}
|
||||
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
func writeviewScripts(qq422016 qtio422016.Writer) {
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
streamviewScripts(qw422016)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
}
|
||||
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
func viewScripts() string {
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
writeviewScripts(qb422016)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
return qs422016
|
||||
//line views/readers.qtpl:161
|
||||
//line views/readers.qtpl:156
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user