mirror of https://github.com/rancher/ui.git
51 lines
1.4 KiB
Handlebars
51 lines
1.4 KiB
Handlebars
<tr class="group-row">
|
|
<td colspan="3" class="pl-10">
|
|
{{#if (and model model.id)}}
|
|
<a href="{{href-to "authenticated.project" model.id}}">
|
|
{{t "projectGroup.label" name=model.displayName}}
|
|
</a>
|
|
{{else}}
|
|
{{t noGroup}}
|
|
{{/if}}
|
|
{{#if model.description}}
|
|
<p class="text-small text-muted m-0">
|
|
{{linkify model.description}}
|
|
</p>
|
|
{{/if}}
|
|
</td>
|
|
<td class="text-right">
|
|
{{#link-to
|
|
"authenticated.cluster.projects.new-ns"
|
|
(query-params addTo=(or model.id null))
|
|
class="btn bg-primary btn-sm mr-10"
|
|
disabled=(rbac-prevents resource="namespace" scope="cluster" permission="create")
|
|
}}
|
|
{{t "namespacesPage.addNamespace"}}
|
|
{{/link-to}}
|
|
</td>
|
|
<td data-title="{{dt.actions}}" class="actions">
|
|
{{#if model}}
|
|
{{action-menu
|
|
model=model
|
|
classNames="inline-block mr-5"
|
|
}}
|
|
{{/if}}
|
|
</td>
|
|
</tr>
|
|
{{#if noNamespace}}
|
|
<tr class="main-row">
|
|
<td colspan="{{if (lte otherNamespace.length 0) 4 fullColspan}}" class="text-center p-20">
|
|
<div class="text-muted">
|
|
{{t "projectGroup.noNS"}}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{#if model.showTransitioningMessage}}
|
|
<tr class="group-row group-row-error">
|
|
<td colspan="{{fullColspan}}" class="text-small {{model.stateColor}}">
|
|
{{uc-first model.transitioningMessage}}
|
|
</td>
|
|
</tr>
|
|
{{/if}}
|