mirror of https://github.com/rancher/ui.git
Cleanup unused translations
This commit is contained in:
parent
1554c1f8b3
commit
59e4173c83
|
|
@ -22,7 +22,7 @@
|
||||||
<td>{{member.uuid}}</td>
|
<td>{{member.uuid}}</td>
|
||||||
<td>{{member.advertiseAddress}}</td>
|
<td>{{member.advertiseAddress}}</td>
|
||||||
<td>{{member.httpPort}}</td>
|
<td>{{member.httpPort}}</td>
|
||||||
<td>{{#if member.clustered}}{{t 'generic.yess'}}{{else}}{{t 'generic.noo'}}{{/if}}</td>
|
<td>{{#if member.clustered}}{{t 'generic.yes'}}{{else}}{{t 'generic.no'}}{{/if}}</td>
|
||||||
<td>{{date-str member.heartbeat}}</td>
|
<td>{{date-str member.heartbeat}}</td>
|
||||||
{{else if (eq kind "norows")}}
|
{{else if (eq kind "norows")}}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<label>{{t 'editStack.name.label'}}</label>
|
<label>{{t 'editStack.name.label'}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col span-8">
|
<div class="col span-8">
|
||||||
{{input type="text" value=primaryResource.name classNames="form-control" placeholder=(t 'editStack.description.placeholder')}}
|
{{input type="text" value=primaryResource.name classNames="form-control" placeholder=(t 'editStack.name.placeholder')}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
import Ember from 'ember';
|
|
||||||
|
|
||||||
export default Ember.Component.extend({
|
|
||||||
settings: Ember.inject.service(),
|
|
||||||
|
|
||||||
showUser: true,
|
|
||||||
catalog: null,
|
|
||||||
|
|
||||||
stackId: null,
|
|
||||||
|
|
||||||
actions: {
|
|
||||||
newService() {
|
|
||||||
var stackId = this.get('stackId');
|
|
||||||
|
|
||||||
if ( stackId )
|
|
||||||
{
|
|
||||||
this.get('router').transitionTo('service.new', {queryParams: {stackId: stackId}});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var stack = this.get('store').createRecord({
|
|
||||||
type: 'stack',
|
|
||||||
name: 'Default',
|
|
||||||
});
|
|
||||||
|
|
||||||
return stack.save().then(() => {
|
|
||||||
this.get('router').transitionTo('service.new', {queryParams: {stackId: stack.get('id') }});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
{{#if showUser}}
|
|
||||||
<section class="welcome">
|
|
||||||
<h2>{{t 'heroAddService.service.header'}}</h2>
|
|
||||||
<p>
|
|
||||||
{{t 'heroAddService.service.paragraph1' appName=settings.appName}}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{{t 'heroAddService.service.paragraph2' appName=settings.appName}}
|
|
||||||
{{#if settings.isRancher}}<a href="{{settings.docsBase}}/cattle/adding-services/" target="_blank">{{t 'heroAddService.service.contentLink'}}</a>{{/if}}
|
|
||||||
</p>
|
|
||||||
<button role="button" class="btn bg-primary" {{action "newService"}}>{{t 'heroAddService.addService'}}</button>
|
|
||||||
{{#link-to "catalog-tab" class="btn bg-primary"}}{{t 'heroAddService.linkToCatalog'}}{{/link-to}}
|
|
||||||
</section>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{yield}}
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
{{spark-line
|
{{spark-line
|
||||||
data=stats.memory
|
data=stats.memory
|
||||||
width=smallWidth height=smallHeight
|
width=smallWidth height=smallHeight
|
||||||
prefix="containersPage.table.sparkPrefixCpu"
|
prefix="containersPage.table.sparkPrefixMemory"
|
||||||
formatter="mib"
|
formatter="mib"
|
||||||
gradient="memory"
|
gradient="memory"
|
||||||
maxDoubleInital=true
|
maxDoubleInital=true
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
{{spark-line
|
{{spark-line
|
||||||
data=stats.networkTotal
|
data=stats.networkTotal
|
||||||
width=smallWidth height=smallHeight
|
width=smallWidth height=smallHeight
|
||||||
prefix="containersPage.table.sparkPrefixCpu"
|
prefix="containersPage.table.sparkPrefixNetwork"
|
||||||
formatter="kbps"
|
formatter="kbps"
|
||||||
gradient="network"
|
gradient="network"
|
||||||
minMax=100
|
minMax=100
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
{{spark-line
|
{{spark-line
|
||||||
data=stats.storageTotal
|
data=stats.storageTotal
|
||||||
width=smallWidth height=smallHeight
|
width=smallWidth height=smallHeight
|
||||||
prefix="containersPage.table.sparkPrefixCpu"
|
prefix="containersPage.table.sparkPrefixStorage"
|
||||||
formatter="kbps"
|
formatter="kbps"
|
||||||
gradient="storage"
|
gradient="storage"
|
||||||
minMax=100
|
minMax=100
|
||||||
|
|
|
||||||
|
|
@ -59,13 +59,13 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label">{{t 'machine.driverAzure.clientId.label'}}{{field-required}}</label>
|
<label class="acc-label">{{t 'machine.driverAzure.clientId.label'}}{{field-required}}</label>
|
||||||
{{input type="text" value=azureConfig.clientId classNames="form-control"}}
|
{{input type="text" value=azureConfig.clientId classNames="form-control" placeholder=(t 'machine.driverAzure.clientId.placeholder')}}
|
||||||
<p class="text-info">{{t 'machine.driverAzure.helpBlock' htmlSafe=true}}</p>
|
<p class="text-info">{{t 'machine.driverAzure.helpBlock' htmlSafe=true}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col span-6">
|
<div class="col span-6">
|
||||||
<label class="acc-label">{{t 'machine.driverAzure.clientSecret.label'}}{{field-required}}</label>
|
<label class="acc-label">{{t 'machine.driverAzure.clientSecret.label'}}{{field-required}}</label>
|
||||||
{{input type="password" value=model.secretValues.azureConfig.clientSecret classNames="form-control"}}
|
{{input type="password" value=model.secretValues.azureConfig.clientSecret classNames="form-control" placeholder=(t 'machine.driverAzure.clientSecret.placeholder')}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{else if (eq kind "nomatch")}}
|
{{else if (eq kind "nomatch")}}
|
||||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted p-20">{{t 'containersPage.table.noMatch'}}</td></tr>
|
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted p-20">{{t 'serviceLog.noMatch'}}</td></tr>
|
||||||
{{else if (eq kind "norows")}}
|
{{else if (eq kind "norows")}}
|
||||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted p-20">{{t 'containersPage.table.noData'}}</td></tr>
|
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted p-20">{{t 'serviceLog.noData'}}</td></tr>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/sortable-table}}
|
{{/sortable-table}}
|
||||||
|
|
|
||||||
|
|
@ -28,29 +28,25 @@
|
||||||
<td data-title="{{dt.instanceState}}" class="pt-5">
|
<td data-title="{{dt.instanceState}}" class="pt-5">
|
||||||
<div style="margin-top:2px;">
|
<div style="margin-top:2px;">
|
||||||
{{#if canExpand}}
|
{{#if canExpand}}
|
||||||
{{#if model.instances.length}}
|
{{progress-bar-multi
|
||||||
{{progress-bar-multi
|
labelKey="state"
|
||||||
labelKey="state"
|
valueKey="count"
|
||||||
valueKey="count"
|
values=model.instanceStates.byColor
|
||||||
values=model.instanceStates.byColor
|
tooltipValues=model.instanceStates.byName
|
||||||
tooltipValues=model.instanceStates.byName
|
}}
|
||||||
}}
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="text-muted">{{t 'stacksPage.table.standalone'}}</span>
|
<span class="text-muted">{{t 'stacksPage.table.standalone'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{#if showInstanceCount}}
|
{{#if subMatches}}
|
||||||
{{#if subMatches}}
|
{{#if (lt (get subMatches model.id) model.instances.length)}}
|
||||||
{{#if (lt (get subMatches model.id) model.instances.length)}}
|
<p class="m-0 text-muted"><small>{{t 'pagination.containerHighlightSubset' subset=1 count=model.instances.length htmlSafe=true}}</small></p>
|
||||||
<p class="m-0 text-muted"><small>{{t 'pagination.containerHighlightSubset' subset=1 count=model.instances.length htmlSafe=true}}</small></p>
|
|
||||||
{{else}}
|
|
||||||
<p class="m-0 text-muted"><small><b>{{t 'pagination.container' pages=1 count=model.instances.length}}</b></small></p>
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<p class="m-0 text-muted"><small>{{t 'pagination.container' pages=1 count=model.instances.length}}</small></p>
|
<p class="m-0 text-muted"><small><b>{{t 'pagination.container' pages=1 count=model.instances.length}}</b></small></p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
<p class="m-0 text-muted"><small>{{t 'pagination.container' pages=1 count=(concat model.instances.length "")}}</small></p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
<section class="header clearfix">
|
<section class="header clearfix">
|
||||||
<h1>
|
<h1>
|
||||||
{{#link-to "infrastructure-tab"}}{{t 'hostsPage.new.header.linkTo'}}{{/link-to}}
|
{{t 'hostsPage.new.header.customText'}}
|
||||||
{{t 'hostsPage.new.header.text'}}
|
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
{{component "machine/driver-custom"
|
{{component "machine/driver-custom"
|
||||||
|
|
@ -10,4 +9,3 @@
|
||||||
completed=(action "completed")
|
completed=(action "completed")
|
||||||
goBack=(route-action "goBack")
|
goBack=(route-action "goBack")
|
||||||
}}
|
}}
|
||||||
<!-- {{add-host model=model driver="custom" completed=(action "completed") goBack=(route-action "goBack") savedHost=(action "savedHost") showPicker=false}} -->
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{{#containers-header tags=tags}}
|
{{#containers-header tags=tags}}
|
||||||
{{#link-to "new-stack" classNames="btn btn-sm bg-default mr-10"}}{{t 'stacksPage.header.importCompose'}}{{/link-to}}
|
{{#link-to "new-stack" classNames="btn btn-sm bg-default mr-10"}}{{t 'nav.containers.importCompose'}}{{/link-to}}
|
||||||
{{#link-to "dns.new" projects.current.id class="btn btn-sm bg-primary"}}{{t 'stacksPage.header.addRecord'}}{{/link-to}}
|
{{#link-to "dns.new" projects.current.id class="btn btn-sm bg-primary"}}{{t 'nav.containers.addDns'}}{{/link-to}}
|
||||||
{{/containers-header}}
|
{{/containers-header}}
|
||||||
|
|
||||||
<section class="stacks-wrap pl-0 pr-0">
|
<section class="stacks-wrap pl-0 pr-0">
|
||||||
|
|
@ -46,9 +46,9 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</tr>
|
</tr>
|
||||||
{{else if (eq kind "nomatch")}}
|
{{else if (eq kind "nomatch")}}
|
||||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'containersPage.table.noMatch'}}</td></tr>
|
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'dnsPage.noMatch'}}</td></tr>
|
||||||
{{else if (eq kind "norows")}}
|
{{else if (eq kind "norows")}}
|
||||||
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'containersPage.table.noData'}}</td></tr>
|
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'dnsPage.noData'}}</td></tr>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/sortable-table}}
|
{{/sortable-table}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@ var Project = Resource.extend(PolledResource, {
|
||||||
var a = this.get('actionLinks');
|
var a = this.get('actionLinks');
|
||||||
|
|
||||||
var choices = [
|
var choices = [
|
||||||
|
{ label: 'action.setDefault', icon: 'icon icon-home', action: 'setAsDefault', enabled: this.get('canSetDefault')},
|
||||||
|
{ divider: true },
|
||||||
{ label: 'action.edit', icon: 'icon icon-edit', action: 'edit', enabled: !!a.update },
|
{ label: 'action.edit', icon: 'icon icon-edit', action: 'edit', enabled: !!a.update },
|
||||||
{ divider: true },
|
{ divider: true },
|
||||||
{ label: 'action.activate', icon: 'icon icon-play', action: 'activate', enabled: !!a.activate},
|
{ label: 'action.activate', icon: 'icon icon-play', action: 'activate', enabled: !!a.activate},
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ import Ember from 'ember';
|
||||||
import fetch from 'ember-api-store/utils/fetch';
|
import fetch from 'ember-api-store/utils/fetch';
|
||||||
|
|
||||||
export default Ember.Controller.extend({
|
export default Ember.Controller.extend({
|
||||||
|
settings: Ember.inject.service(),
|
||||||
|
|
||||||
emailSent: false,
|
emailSent: false,
|
||||||
saving: false,
|
saving: false,
|
||||||
saveDisabled: true,
|
saveDisabled: true,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
{{#if emailSent}}
|
{{#if emailSent}}
|
||||||
<div class="row" style="max-width: 500px;">
|
<div class="row" style="max-width: 500px;">
|
||||||
<div class="col span-12 text-center">
|
<div class="col span-12 text-center">
|
||||||
<h1>{{t 'signupPage.emailSuccess.header'}}</h1>
|
<h1>{{t 'signupPage.emailSuccess.header' appName=settings.appName}}</h1>
|
||||||
<p>{{t 'signupPage.emailSuccess.confirm.subtext'}}</p>
|
<p>{{t 'signupPage.emailSuccess.confirm.subtext'}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{#if loading}}
|
{{#if loading}}
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div>
|
<div>
|
||||||
<h1>{{t 'signupPage.header'}}</h1>
|
<h1>{{t 'signupPage.header' appName=settings.appName}}</h1>
|
||||||
<form class="form text-left" {{action "register" on='submit'}}>
|
<form class="form text-left" {{action "register" on='submit'}}>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label for="login-user-name">{{t 'signupPage.form.labels.loginUsername'}}{{field-required}}</label>
|
<label for="login-user-name">{{t 'signupPage.form.labels.loginUsername'}}{{field-required}}</label>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
{{form-name-description
|
{{form-name-description
|
||||||
name=prefix
|
name=prefix
|
||||||
nameRequired=true
|
nameRequired=true
|
||||||
namePlaceholder="hostPartial.host.addCommon.new.form.name.placeholder"
|
namePlaceholder="hostsPage.new.name.placeholder"
|
||||||
nameHelpText=nameCountLabel
|
nameHelpText=nameCountLabel
|
||||||
descriptionShown=true
|
descriptionShown=true
|
||||||
rowClass=""
|
rowClass=""
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue