mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add organization_icon to <TemplatesPageView /> (#21816)
This commit is contained in:
@@ -130,19 +130,11 @@ const TemplateRow: FC<TemplateRowProps> = ({
|
||||
|
||||
<TableCell css={styles.secondary}>
|
||||
{showOrganizations ? (
|
||||
<Stack
|
||||
spacing={0}
|
||||
css={{
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<span css={styles.cellPrimaryLine}>
|
||||
{template.organization_display_name}
|
||||
</span>
|
||||
<span css={styles.cellSecondaryLine}>
|
||||
Used by {Language.developerCount(template.active_user_count)}
|
||||
</span>
|
||||
</Stack>
|
||||
<AvatarData
|
||||
title={template.organization_display_name}
|
||||
subtitle={`Used by ${Language.developerCount(template.active_user_count)}`}
|
||||
avatar={<Avatar variant="icon" src={template.organization_icon} />}
|
||||
/>
|
||||
) : (
|
||||
Language.developerCount(template.active_user_count)
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user