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

Link hyphae instead of diffs in recent changes

Also fix Makefile so it includes config.mk iff it exists
This commit is contained in:
Timur Ismagilov 2021-11-01 23:40:59 +05:00
parent 60156b636b
commit 8848a994e5
3 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
.POSIX: .POSIX:
include config.example.mk include config.example.mk
include config.mk -include config.mk
run: build run: build
./mycorrhiza ${WIKIPATH} ./mycorrhiza ${WIKIPATH}

View File

@ -8,7 +8,7 @@ HyphaeLinksHTML returns a comma-separated list of hyphae that were affected by t
{% if i > 0 %} {% if i > 0 %}
<span aria-hidden="true">, </span> <span aria-hidden="true">, </span>
{% endif %} {% endif %}
<a href="/primitive-diff/{%s rev.Hash %}/{%s hyphaName %}">{%s hyphaName %}</a> <a href="/hypha/{%s hyphaName %}">{%s hyphaName %}</a>
{% endfor %} {% endfor %}
{% endstripspace %} {% endstripspace %}
{% endfunc %} {% endfunc %}

View File

@ -39,11 +39,7 @@ func (rev Revision) StreamHyphaeLinksHTML(qw422016 *qt422016.Writer) {
//line history/view.qtpl:10 //line history/view.qtpl:10
} }
//line history/view.qtpl:10 //line history/view.qtpl:10
qw422016.N().S(`<a href="/primitive-diff/`) qw422016.N().S(`<a href="/hypha/`)
//line history/view.qtpl:11
qw422016.E().S(rev.Hash)
//line history/view.qtpl:11
qw422016.N().S(`/`)
//line history/view.qtpl:11 //line history/view.qtpl:11
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line history/view.qtpl:11 //line history/view.qtpl:11