chore: Add rose/badge component to host catalog type for styling

This commit is contained in:
Susmitha Girumala committed 2020-08-24 15:54:47 -04:00
1 parent 1dc99833ac
commit 34783e4300
2 files changed
+13 -5

No files matched your search

@@ -41,7 +41,11 @@
</LinkTo>
<p>{{hostCatalog.description}}</p>
</row.headerCell>
<row.cell>{{hostCatalog.type}}</row.cell>
<row.cell>
<Rose::Badge @style="outline">
{{hostCatalog.type}}
</Rose::Badge>
</row.cell>
<row.cell>
<code>{{hostCatalog.id}}</code>
</row.cell>
@@ -3,19 +3,23 @@
<Rose::Table as |table|>
<table.header as |header|>
<header.row as |row|>
<row.cell>{{t 'form.label.name'}}</row.cell>
<row.cell>{{t 'form.label.type'}}</row.cell>
<row.headerCell>{{t 'form.label.name'}}</row.headerCell>
<row.headerCell>{{t 'form.label.type'}}</row.headerCell>
<row.headerCell>{{t 'form.label.id'}}</row.headerCell>
</header.row>
</table.header>
<table.body as |body|>
{{#each @model as |principal|}}
<body.row as |row|>
<row.cell>
<row.headerCell>
{{principal.model.displayName}}
</row.cell>
</row.headerCell>
<row.cell>
{{t (concat 'resources.' principal.type)}}
</row.cell>
<row.cell>
<code>{{principal.model.id}}</code>
</row.cell>
</body.row>
{{/each}}
</table.body>