summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorChl <chl@xlii.si>2024-08-15 21:28:49 +0200
committerChl <chl@xlii.si>2024-08-15 21:56:26 +0200
commit3fab07e0bc8e5bb80d72c09785b10a38c7073fbe (patch)
tree9564690e3b54449c7ba4ab6ae15b9a0c98d0654f /modules
parentMerge pull request 'chore(refactor): split repo_service.ForkRepository in two... (diff)
downloadforgejo-3fab07e0bc8e5bb80d72c09785b10a38c7073fbe.tar.xz
forgejo-3fab07e0bc8e5bb80d72c09785b10a38c7073fbe.zip
follow up on #2367: rel="nofollow" on in-list labels
The forgejo/forgejo#2367 pull requests added rel="nofollow" on filters in the menu, this commit adds it on the labels in the listing and a few other places.
Diffstat (limited to 'modules')
-rw-r--r--modules/templates/util_render.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go
index c4c5376afd..76790b63d5 100644
--- a/modules/templates/util_render.go
+++ b/modules/templates/util_render.go
@@ -245,7 +245,7 @@ func RenderLabels(ctx context.Context, locale translation.Locale, labels []*issu
if isPull {
issuesOrPull = "pulls"
}
- htmlCode += fmt.Sprintf("<a href='%s/%s?labels=%d'>%s</a> ",
+ htmlCode += fmt.Sprintf("<a href='%s/%s?labels=%d' rel='nofollow'>%s</a> ",
repoLink, issuesOrPull, label.ID, RenderLabel(ctx, locale, label))
}
htmlCode += "</span>"