Files pages say Files in the trail and keep the description in About only
2 files+4−30/2 viewed
| 1223 | 1223 | domains: "Domains", | |
| 1224 | 1224 | guardrails: "Guardrails", | |
| 1225 | 1225 | audit: "Audit log", | |
| 1226 | − | tree: "Code", | |
| 1227 | − | blob: "Code", | |
| 1226 | + | tree: "Files", | |
| 1227 | + | blob: "Files", | |
| 1228 | 1228 | }; | |
| 1229 | 1229 | ||
| 1230 | 1230 | /** Where the page is, as a trail of links: workspace / repository / section. */ |
| 183 | 183 | archived={Boolean(repo.archivedAt)} | |
| 184 | 184 | namespace={repo.namespace} | |
| 185 | 185 | name={repo.name} | |
| 186 | − | description={description} | |
| 186 | + | // The files' own About says it there, as the one place. | |
| 187 | + | description={/^(code|tree)(\/|$)/.test(pathname.slice(base.length + 1)) ? null : description} | |
| 187 | 188 | /> | |
| 188 | 189 | <Topics topics={repo.topics} /> | |
| 189 | 190 | {tabs && ( |