ui/lib/shared/addon/components/apikey-row/template.hbs

34 lines
919 B
Handlebars

<td class="row-check" valign="middle" style="padding-top: 2px;">
{{check-box nodeId=model.id}}
</td>
<td data-title="{{dt.state}}">
{{badge-state model=model}}
</td>
<td data-title="{{dt.name}}">
{{#copy-to-clipboard clipboardText=model.displayName size="small"}}
<span class="clip vertical-middle" style="max-width:100px">
{{model.displayName}}
</span>
{{/copy-to-clipboard}}
</td>
<td data-title="{{dt.description}}">
{{#if model.description}}
{{model.description}}
{{else}}
<span class="text-muted">{{t 'generic.none'}}</span>
{{/if}}
</td>
<td data-title="{{dt.created}}">
{{date-calendar model.created}}
</td>
<td data-title="{{dt.expires}}">
{{#if model.expiresAt}}
{{date-calendar model.expiresAt}}
{{else}}
<span class="text-muted">{{t 'generic.none'}}</span>
{{/if}}
</td>
<td data-title="{{dt.actions}}" class="actions">
{{action-menu model=model}}
</td>