Tucker McKnight <tmcknight@instructure.com> | Mon Jul 20 2026
Fix broken RSS icon (wasn't using the root path in URL) Also change wording of the title for the RSS feed. "patches" is left over from when this was written for darcs. Also, should include the name of the repo in the title.
29 30 31 32 33 34
href: nav.rssFeed()
}, [
m('img', {
src: `${nav.rootPath()}frontend/img/rss-icon.svg`,
style: "width: 11px; margin-right: 5px;"
}),
'RSS',29 30 31 32 33 34
href: nav.rssFeed()
}, [
m('img', {
src: `${nav.rootPath()}/frontend/img/rss-icon.svg`,
style: "width: 11px; margin-right: 5px;"
}),
'RSS',18 19 20 21 22 23
return render([
m.trust('<?xml version="1.0" encoding="utf-8"?>'),
m('feed', {xmlns: "http://www.w3.org/2005/Atom"}, [
m('title', `Latest patches in ${flatRef.refName}`),
m.trust(`<link href="${ data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName) + '/commits.xml'}" rel="self" />`),
m.trust(`<link href="${data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName)}" />`),
m('updated', dateToRfc3339(currentRepo.commits.get(currentRef.sha).date)),18 19 20 21 22 23
return render([
m.trust('<?xml version="1.0" encoding="utf-8"?>'),
m('feed', {xmlns: "http://www.w3.org/2005/Atom"}, [
m('title', `Commits in ${flatRef.repoName} / ${flatRef.refName}`),
m.trust(`<link href="${ data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName) + '/commits.xml'}" rel="self" />`),
m.trust(`<link href="${data.reposConfig.baseUrl + '/repos/' + slugify(flatRef.repoName) + `/${flatRef.type}/` + slugify(flatRef.refName)}" />`),
m('updated', dateToRfc3339(currentRepo.commits.get(currentRef.sha).date)),87 88 89 90 91 92
m('div', {class: "fs-5 fw-light"}, `Latest commit in ${ref.name}`),
m('a', {href: nav.rssFeed(), class: "ps-1 p-0 btn badge shadow-none"}, [
m('img', {
src: "/frontend/img/rss-icon.svg",
style: "width: 11px; margin-right: 5px;"
}),
'RSS',87 88 89 90 91 92
m('div', {class: "fs-5 fw-light"}, `Latest commit in ${ref.name}`),
m('a', {href: nav.rssFeed(), class: "ps-1 p-0 btn badge shadow-none"}, [
m('img', {
src: `${nav.rootPath()}/frontend/img/rss-icon.svg`,
style: "width: 11px; margin-right: 5px;"
}),
'RSS',