diff --git a/app/components/project-row/component.js b/app/components/project-row/component.js index 3b3420c6a..3f75e3e2c 100644 --- a/app/components/project-row/component.js +++ b/app/components/project-row/component.js @@ -2,7 +2,7 @@ import Ember from 'ember'; export default Ember.Component.extend({ model: null, - tagName: 'TR', + tagName: '', projects: Ember.inject.service(), diff --git a/app/components/project-template-row/component.js b/app/components/project-template-row/component.js index 332ef8ac1..ee4e9b33e 100644 --- a/app/components/project-template-row/component.js +++ b/app/components/project-template-row/component.js @@ -2,5 +2,5 @@ import Ember from 'ember'; export default Ember.Component.extend({ model: null, - tagName: 'TR', + tagName: '', }); diff --git a/app/components/storagepool-section/component.js b/app/components/storagepool-section/component.js index e09e33cff..e9322ec24 100644 --- a/app/components/storagepool-section/component.js +++ b/app/components/storagepool-section/component.js @@ -12,6 +12,27 @@ export default Ember.Component.extend(Sortable, { name: ['displayName','id'], mounts: ['mounts.length','displayName','id'], }, + headers: [ + { + name: 'state', + sort: ['state','displayName','id'], + translationKey: 'generic.state', + width: '115', + }, + { + name: 'name', + sort: ['displayName','id'], + translationKey: 'storagePoolSection.models.table.header.volumeName', + width: '350', + }, + { + translationKey: 'storagePoolSection.models.table.header.mounts', + }, + { + isActions: true, + width: '75', + }, + ], init: function() { diff --git a/app/components/storagepool-section/template.hbs b/app/components/storagepool-section/template.hbs index 93660bb0f..237d4c0b7 100644 --- a/app/components/storagepool-section/template.hbs +++ b/app/components/storagepool-section/template.hbs @@ -39,72 +39,54 @@ {{#if model.volumes.length}}
| {{t 'storagePoolSection.models.table.header.mounts'}} | -- | |||||
|---|---|---|---|---|---|---|
| - {{badge-state model=vol}} - | -
- {{#tooltip-element type="tooltip-basic" model=vol tooltipTemplate="tooltip-storage" tooltipFor="storagePoolSection"}}
- {{vol.displayName}} - {{/tooltip-element}} - |
-
- {{#if vol.mounts.length}}
- {{#each vol.mounts as |mount|}}
-
- {{~#if mount.instance.isVm~}}
- {{#link-to "virtualmachine" mount.instanceId}}{{mount.instance.displayName}}{{/link-to}}
- {{~else~}}
- {{#link-to "container" mount.instanceId}}{{mount.instance.displayName}}{{/link-to}}
- {{~/if~}}
- : {{mount.path}}
- {{#if (eq mount.permissions "ro")}}
- {{t 'storagePoolSection.readOnly'}}
- {{/if}}
-
- {{/each}}
- {{else}}
- {{t 'generic.none'}}
- {{/if}}
- |
- - {{action-menu model=vol}} - | -|||
-
|
- + {{badge-state model=vol}} + | +
+ {{#tooltip-element type="tooltip-basic" model=vol tooltipTemplate="tooltip-storage" tooltipFor="storagePoolSection"}}
+ {{vol.displayName}} + {{/tooltip-element}} + |
+
+ {{#if vol.mounts.length}}
+ {{#each vol.mounts as |mount|}}
+
+ {{~#if mount.instance.isVm~}}
+ {{#link-to "virtualmachine" mount.instanceId}}{{mount.instance.displayName}}{{/link-to}}
+ {{~else~}}
+ {{#link-to "container" mount.instanceId}}{{mount.instance.displayName}}{{/link-to}}
+ {{~/if~}}
+ : {{mount.path}}
+ {{#if (eq mount.permissions "ro")}}
+ {{t 'storagePoolSection.readOnly'}}
+ {{/if}}
+
+ {{/each}}
+ {{else}}
+ {{t 'generic.none'}}
{{/if}}
- {{/each}}
- |
- |||
| {{/if}} - | ||||||
|---|---|---|---|---|---|---|
| + {{identity-block identity=member}} + | +{{member.displayType}} | ++ {{#if showEdit}} + + {{else}} + {{uc-first member.role}} + {{/if}} + | + {{#if showEdit}}- {{identity-block identity=member}} - | -{{member.displayType}} | -- {{#if showEdit}} - + {{#if accessEnabled}} + {{else}} - {{uc-first member.role}} + {{/if}} | - {{#if showEdit}} -- {{#if accessEnabled}} - - {{else}} - - {{/if}} - | - {{/if}} -
| - {{t 'viewEditProject.showEdit.noMembers'}} - | -||||||
{{format-html-message 'viewEditProject.helpBlock'}}