Commit

Files pages say Files in the trail and keep the description in About only

syntaqxcommitted Parent1b3058dBrowse files
2 files+4−30/2 viewed
+2−2
12231223 domains: "Domains",
12241224 guardrails: "Guardrails",
12251225 audit: "Audit log",
1226− tree: "Code",
1227− blob: "Code",
1226+ tree: "Files",
1227+ blob: "Files",
12281228 };
12291229
12301230 /** Where the page is, as a trail of links: workspace / repository / section. */
+2−1
183183 archived={Boolean(repo.archivedAt)}
184184 namespace={repo.namespace}
185185 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}
187188 />
188189 <Topics topics={repo.topics} />
189190 {tabs && (