mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-10 15:24:54 +01:00
11 lines
268 B
TypeScript
11 lines
268 B
TypeScript
// repo icon, keep in sync with templates/repo/icon.tmpl
|
|
export function getRepoIcon(repo: Record<string, any>) {
|
|
if (repo.mirror) {
|
|
return 'octicon-mirror';
|
|
} else if (repo.fork) {
|
|
return 'octicon-repo-forked';
|
|
} else {
|
|
return 'octicon-repo';
|
|
}
|
|
}
|