mirror of https://github.com/rancher/ui.git
Translations for processes page
This commit is contained in:
parent
9ee33d8f5d
commit
0e3b51edf1
|
|
@ -4,22 +4,22 @@ export default Ember.Controller.extend({
|
||||||
sortBy: 'name',
|
sortBy: 'name',
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
displayName: 'Name',
|
translationKey: 'generic.name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
sort: ['name'],
|
sort: ['name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Running',
|
translationKey: 'processesPage.summary.table.running',
|
||||||
name: 'running',
|
name: 'running',
|
||||||
sort: ['running','name'],
|
sort: ['running','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Ready',
|
translationKey: 'processesPage.summary.table.ready',
|
||||||
name: 'ready',
|
name: 'ready',
|
||||||
sort: ['ready','name'],
|
sort: ['ready','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Delayed',
|
translationKey: 'processesPage.summary.table.delay',
|
||||||
name: 'delay',
|
name: 'delay',
|
||||||
sort: ['delay','name'],
|
sort: ['delay','name'],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -20,18 +20,18 @@ export default Ember.Controller.extend({
|
||||||
let which = this.get('which');
|
let which = this.get('which');
|
||||||
let out = [
|
let out = [
|
||||||
{
|
{
|
||||||
displayName: 'ID',
|
|
||||||
name: 'id',
|
name: 'id',
|
||||||
|
translationKey: 'generic.id',
|
||||||
sort: ['id:desc'],
|
sort: ['id:desc'],
|
||||||
width: '75px',
|
width: '75px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Name',
|
|
||||||
name: 'processName',
|
name: 'processName',
|
||||||
|
translationKey: 'generic.name',
|
||||||
sort: ['processName','id:desc'],
|
sort: ['processName','id:desc'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Resource',
|
translationKey: 'processesPage.list.table.resource',
|
||||||
name: 'resource',
|
name: 'resource',
|
||||||
sort: ['resourceType','id:desc'],
|
sort: ['resourceType','id:desc'],
|
||||||
searchField: ['typeAndId', 'resourceType','resourceId'],
|
searchField: ['typeAndId', 'resourceType','resourceId'],
|
||||||
|
|
@ -40,7 +40,7 @@ export default Ember.Controller.extend({
|
||||||
|
|
||||||
if ( which === 'completed' ) {
|
if ( which === 'completed' ) {
|
||||||
out.push({
|
out.push({
|
||||||
displayName: 'Exit Reason',
|
translationKey: 'processesPage.list.table.exitReason',
|
||||||
name: 'exitReason',
|
name: 'exitReason',
|
||||||
sort: ['exitReason','id:desc'],
|
sort: ['exitReason','id:desc'],
|
||||||
width: '150px',
|
width: '150px',
|
||||||
|
|
@ -48,38 +48,46 @@ export default Ember.Controller.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
out.push({
|
out.push({
|
||||||
displayName: 'Start Time',
|
translationKey: 'processesPage.list.table.startTime',
|
||||||
name: 'startTime',
|
name: 'startTime',
|
||||||
sort: ['startTime:desc','id:desc'],
|
sort: ['startTime:desc','id:desc'],
|
||||||
width: '150px',
|
width: '120px',
|
||||||
searchField: false,
|
searchField: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( which === 'completed' ) {
|
if ( which === 'completed' ) {
|
||||||
out.push({
|
out.push({
|
||||||
displayName: 'End Time',
|
translationKey: 'processesPage.list.table.endTime',
|
||||||
name: 'endTime',
|
name: 'endTime',
|
||||||
sort: ['endTime:desc','id:desc'],
|
sort: ['endTime:desc','id:desc'],
|
||||||
width: '150px',
|
width: '120px',
|
||||||
|
searchField: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( which === 'delayed' ) {
|
||||||
|
out.push({
|
||||||
|
translationKey: 'processesPage.list.table.runAfter',
|
||||||
|
name: 'runAfter',
|
||||||
|
sort: ['runAfter:desc','id:desc'],
|
||||||
|
width: '120px',
|
||||||
|
searchField: false,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
out.push({
|
||||||
|
translationKey: 'processesPage.list.table.runTime',
|
||||||
|
name: 'runTime',
|
||||||
|
sort: ['runTime:desc','id:desc'],
|
||||||
|
width: '100px',
|
||||||
searchField: false,
|
searchField: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
out.push({
|
out.push({
|
||||||
displayName: 'Run Time',
|
isActions: true,
|
||||||
name: 'runTime',
|
width: '40px',
|
||||||
sort: ['runTime:desc','id:desc'],
|
|
||||||
width: '100px',
|
|
||||||
searchField: false,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( which === 'delayed' ) {
|
|
||||||
out.push({
|
|
||||||
isActions: true,
|
|
||||||
width: '50px',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}.property('which'),
|
}.property('which'),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -49,18 +49,22 @@
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<td data-title="{{dt.runTime}}">
|
|
||||||
{{run-time row.startTimeTS row.endTimeTS}}
|
|
||||||
</td>
|
|
||||||
|
|
||||||
{{#if (eq which "delayed")}}
|
{{#if (eq which "delayed")}}
|
||||||
<td data-title="{{t 'generic.actions'}}:" class="actions">
|
<td data-title="{{dt.runAfter}}">
|
||||||
<i {{action "replay" row}} class="icon icon-refresh hand"></i>
|
{{date-calendar row.runAfter}}
|
||||||
|
</td>
|
||||||
|
{{else}}
|
||||||
|
<td data-title="{{dt.runTime}}">
|
||||||
|
{{run-time row.startTimeTS row.endTimeTS}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<td data-title="{{t 'generic.actions'}}:" class="actions">
|
||||||
|
{{action-menu model=row showPrimary=false}}
|
||||||
|
</td>
|
||||||
{{else if (eq kind "nomatch")}}
|
{{else if (eq kind "nomatch")}}
|
||||||
<td colspan="{{headers.length}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'processesPage.list.noMatch'}}</td>
|
<td colspan="{{headers.length}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'processesPage.list.noMatch'}}</td>
|
||||||
{{else if (eq kind "norows")}}
|
{{else if (eq kind "norows")}}
|
||||||
<td colspan="{{headers.length}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'processesPage.list.noData'}}</td>
|
<td colspan="{{headers.length}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'processesPage.list.noData' which=which}}</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/sortable-table}}
|
{{/sortable-table}}
|
||||||
|
|
|
||||||
|
|
@ -4,38 +4,38 @@ export default Ember.Controller.extend({
|
||||||
sortBy: 'name',
|
sortBy: 'name',
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
displayName: 'Name',
|
translationKey: 'generic.name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
sort: ['name'],
|
sort: ['name'],
|
||||||
width: '150px'
|
width: '150px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Active',
|
translationKey: 'processesPage.pools.table.activeTasks',
|
||||||
name: 'activeTasks',
|
name: 'activeTasks',
|
||||||
sort: ['activeTasks','name'],
|
sort: ['activeTasks','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Pool Size',
|
translationKey: 'processesPage.pools.table.poolSize',
|
||||||
name: 'poolSize',
|
name: 'poolSize',
|
||||||
sort: ['poolSize','name'],
|
sort: ['poolSize','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Rejected',
|
translationKey: 'processesPage.pools.table.rejectedTasks',
|
||||||
name: 'rejectedTasks',
|
name: 'rejectedTasks',
|
||||||
sort: ['rejectedTasks','name'],
|
sort: ['rejectedTasks','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Completed',
|
translationKey: 'processesPage.pools.table.completedTasks',
|
||||||
name: 'completedTasks',
|
name: 'completedTasks',
|
||||||
sort: ['completedTasks','name'],
|
sort: ['completedTasks','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Queue Size',
|
translationKey: 'processesPage.pools.table.queueSize',
|
||||||
name: 'queueSize',
|
name: 'queueSize',
|
||||||
sort: ['queueSize','name'],
|
sort: ['queueSize','name'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Queue Remain',
|
translationKey: 'processesPage.pools.table.queueRemainingCapacity',
|
||||||
name: 'queueRemainingCapacity',
|
name: 'queueRemainingCapacity',
|
||||||
sort: ['queueRemainingCapacity','name'],
|
sort: ['queueRemainingCapacity','name'],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@
|
||||||
as |row kind|
|
as |row kind|
|
||||||
}}
|
}}
|
||||||
{{#if (eq kind "row")}}
|
{{#if (eq kind "row")}}
|
||||||
<td data-title="{{headers.0.displayName}}: ">{{row.displayName}}</td>
|
<td data-title="{{dt.name}}">{{row.displayName}}</td>
|
||||||
<td data-title="{{headers.1.displayName}}: " class="{{if (gte row.activeTasks row.poolSize) 'text-warning text-bold'}}">{{format-number row.activeTasks}}</td>
|
<td data-title="{{dt.activeTasks}}" class="{{if (gte row.activeTasks row.poolSize) 'text-warning text-bold'}}">{{format-number row.activeTasks}}</td>
|
||||||
<td data-title="{{headers.2.displayName}}: ">
|
<td data-title="{{dt.poolSize}}">
|
||||||
{{~format-number row.poolSize~}}
|
{{~format-number row.poolSize~}}
|
||||||
{{#if (or (not-eq row.poolSize row.minPoolSize) (not-eq row.poolSize row.maxPoolSize))}}
|
{{#if (or (not-eq row.poolSize row.minPoolSize) (not-eq row.poolSize row.maxPoolSize))}}
|
||||||
<span class="text-muted"> (
|
<span class="text-muted"> (
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
)</span>
|
)</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
<td data-title="{{headers.3.displayName}}: ">{{format-number row.rejectedTasks}}</td>
|
<td data-title="{{dt.rejectedTasks}}">{{format-number row.rejectedTasks}}</td>
|
||||||
<td data-title="{{headers.4.displayName}}: ">{{format-number row.completedTasks}}</td>
|
<td data-title="{{dt.completedTasks}}">{{format-number row.completedTasks}}</td>
|
||||||
<td data-title="{{headers.5.displayName}}: ">{{format-number row.queueSize}}</td>
|
<td data-title="{{dt.queueSize}}">{{format-number row.queueSize}}</td>
|
||||||
<td data-title="{{headers.6.displayName}}: ">
|
<td data-title="{{dt.queueRemainingCapacity}}">
|
||||||
{{#if (eq row.queueRemainingCapacity 2147483647)}}
|
{{#if (eq row.queueRemainingCapacity 2147483647)}}
|
||||||
∞
|
∞
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ export default Ember.Controller.extend({
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
classNames: '',
|
classNames: '',
|
||||||
displayName: 'State',
|
|
||||||
name: 'stateSort',
|
name: 'stateSort',
|
||||||
searchField: 'displayState',
|
searchField: 'displayState',
|
||||||
sort: ['stateSort','name','id'],
|
sort: ['stateSort','name','id'],
|
||||||
|
|
@ -41,32 +40,27 @@ export default Ember.Controller.extend({
|
||||||
width: '125px'
|
width: '125px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Name',
|
|
||||||
name: 'name',
|
name: 'name',
|
||||||
sort: ['name','id'],
|
sort: ['name','id'],
|
||||||
translationKey: 'containersPage.index.table.header.name',
|
translationKey: 'containersPage.index.table.header.name',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'IP',
|
|
||||||
name: 'displayIp',
|
name: 'displayIp',
|
||||||
sort: ['displayIp','name','id'],
|
sort: ['displayIp','name','id'],
|
||||||
width: '110px',
|
width: '110px',
|
||||||
translationKey: 'containersPage.index.table.header.ip',
|
translationKey: 'containersPage.index.table.header.ip',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Host',
|
|
||||||
name: 'primaryHost.displayName',
|
name: 'primaryHost.displayName',
|
||||||
sort: ['primaryHost.displayName','name','id'],
|
sort: ['primaryHost.displayName','name','id'],
|
||||||
translationKey: 'containersPage.index.table.header.host',
|
translationKey: 'containersPage.index.table.header.host',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Image',
|
|
||||||
name: 'imageUuid',
|
name: 'imageUuid',
|
||||||
sort: ['imageUuid','id'],
|
sort: ['imageUuid','id'],
|
||||||
translationKey: 'containersPage.index.table.header.image',
|
translationKey: 'containersPage.index.table.header.image',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Command',
|
|
||||||
name: 'command',
|
name: 'command',
|
||||||
sort: ['command','name','id'],
|
sort: ['command','name','id'],
|
||||||
translationKey: 'containersPage.index.table.header.command',
|
translationKey: 'containersPage.index.table.header.command',
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,15 @@ var ProcessInstance = Resource.extend({
|
||||||
typeAndId: Ember.computed('resourceType','resourceId', function() {
|
typeAndId: Ember.computed('resourceType','resourceId', function() {
|
||||||
return this.get('resourceType') + ':' + this.get('resourceId');
|
return this.get('resourceType') + ':' + this.get('resourceId');
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
availableActions: function() {
|
||||||
|
var a = this.get('actionLinks');
|
||||||
|
|
||||||
|
return [
|
||||||
|
{ label: 'action.replay', icon: 'icon icon-refresh', action: 'replay', enabled: !!a.replay },
|
||||||
|
{ label: 'action.viewInApi', icon: 'icon icon-external-link',action: 'goToApi', enabled: true },
|
||||||
|
];
|
||||||
|
}.property('actionLinks.replay'),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default ProcessInstance;
|
export default ProcessInstance;
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,8 @@
|
||||||
|
|
||||||
.btn-xs I,
|
.btn-xs I,
|
||||||
.btn-group-xs > .btn I {
|
.btn-group-xs > .btn I {
|
||||||
/* Icons are slightly too high.. */
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 1px;
|
top: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu,
|
.dropdown-menu,
|
||||||
|
|
|
||||||
|
|
@ -1043,11 +1043,30 @@ processesPage:
|
||||||
completed: Recently Completed
|
completed: Recently Completed
|
||||||
summary:
|
summary:
|
||||||
noData: No processes are currently scheduled
|
noData: No processes are currently scheduled
|
||||||
|
table:
|
||||||
|
running: Running
|
||||||
|
ready: Ready
|
||||||
|
delay: Delayed
|
||||||
pools:
|
pools:
|
||||||
noData: No pools found
|
noData: No pools found
|
||||||
noMatch: No pools match the current search
|
noMatch: No pools match the current search
|
||||||
|
table:
|
||||||
|
activeTasks: Active
|
||||||
|
poolSize: Pool Size
|
||||||
|
rejectedTasks: Rejected
|
||||||
|
completedTasks: Completed
|
||||||
|
queueSize: Queue Size
|
||||||
|
queueRemainingCapacity: Queue Remain
|
||||||
|
|
||||||
list:
|
list:
|
||||||
noData: No processes found
|
table:
|
||||||
|
resource: Resource
|
||||||
|
exitReason: Exit Reason
|
||||||
|
startTime: Start Time
|
||||||
|
endTime: End Time
|
||||||
|
runTime: Run Time
|
||||||
|
runAfter: Run After
|
||||||
|
noData: 'No processes are currently {which}'
|
||||||
noMatch: No processes match the current search
|
noMatch: No processes match the current search
|
||||||
|
|
||||||
virtualMachinePage:
|
virtualMachinePage:
|
||||||
|
|
@ -3320,6 +3339,7 @@ action:
|
||||||
machineConfig: Machine Config
|
machineConfig: Machine Config
|
||||||
purge: Purge
|
purge: Purge
|
||||||
remove: Delete
|
remove: Delete
|
||||||
|
replay: Replay
|
||||||
restart: Restart
|
restart: Restart
|
||||||
restore: Restore
|
restore: Restore
|
||||||
retry: Retry
|
retry: Retry
|
||||||
|
|
@ -3393,3 +3413,4 @@ model:
|
||||||
min: Minimum Scale
|
min: Minimum Scale
|
||||||
max: Maximum Scale
|
max: Maximum Scale
|
||||||
amount: By
|
amount: By
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue