Skip to content

Commit b956a64

Browse files
committed
design commit
1 parent 92bda0d commit b956a64

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

site/src/components/TemplateStats/TemplateStats.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const Language = {
1313
lastUpdateLabel: "Last updated",
1414
userPlural: "users",
1515
userSingular: "user",
16+
createdByLabel: "Created by"
1617
}
1718

1819
export interface TemplateStatsProps {
@@ -45,6 +46,11 @@ export const TemplateStats: FC<TemplateStatsProps> = ({ template, activeVersion
4546
{dayjs().to(dayjs(template.updated_at))}
4647
</span>
4748
</div>
49+
<div className={styles.statsDivider} />
50+
<div className={styles.statItem}>
51+
<span className={styles.statsLabel}>{Language.createdByLabel}</span>
52+
<span className={styles.statsValue}>admin</span>
53+
</div>
4854
</div>
4955
)
5056
}

site/src/pages/TemplatesPage/TemplatesPageView.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const Language = {
4949
templateTooltipTitle: "What is template?",
5050
templateTooltipText: "With templates you can create a common configuration for your workspaces using Terraform.",
5151
templateTooltipLink: "Manage templates",
52+
createdByLabel: "Created by",
5253
}
5354

5455
const TemplateHelpTooltip: React.FC = () => {
@@ -95,6 +96,7 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = (props) => {
9596
<TableCell>{Language.nameLabel}</TableCell>
9697
<TableCell>{Language.usedByLabel}</TableCell>
9798
<TableCell>{Language.lastUpdatedLabel}</TableCell>
99+
<TableCell>{Language.createdByLabel}</TableCell>
98100
<TableCell width="1%"></TableCell>
99101
</TableRow>
100102
</TableHead>
@@ -137,6 +139,7 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = (props) => {
137139
<TableCell>{Language.developerCount(template.workspace_owner_count)}</TableCell>
138140

139141
<TableCell data-chromatic="ignore">{dayjs().to(dayjs(template.updated_at))}</TableCell>
142+
<TableCell>admin</TableCell>
140143
<TableCell>
141144
<div className={styles.arrowCell}>
142145
<KeyboardArrowRight className={styles.arrowRight} />

0 commit comments

Comments
 (0)