1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00

Show only stems of names in the relative hyphae block

This commit is contained in:
bouncepaw 2021-02-27 13:42:32 +05:00
parent 2d14d30603
commit f45758cb0e

View File

@ -112,7 +112,7 @@ func Tree(hyphaName string) (relatives, subhyphae, prev, next string) {
for i, s := range siblings {
if s.name == hyphaName {
I = i
relatives += fmt.Sprintf(`<li class="navitree__entry navitree__entry_this"><span>%s</span></li>`, util.BeautifulName(hyphaName))
relatives += fmt.Sprintf(`<li class="navitree__entry navitree__entry_this"><span>%s</span></li>`, util.BeautifulName(path.Base(hyphaName)))
} else {
relatives += s.asHTML()
}