Pluralize dashboard
This commit is contained in:
parent
032af96cff
commit
c0bcf615e2
@ -43,8 +43,12 @@
|
|||||||
<header class="main__content__header clearfix">
|
<header class="main__content__header clearfix">
|
||||||
<h2 class="main__content__title">{{dashboardTables[0].title}}</h2>
|
<h2 class="main__content__title">{{dashboardTables[0].title}}</h2>
|
||||||
<p class="main__content__alert state--error">
|
<p class="main__content__alert state--error">
|
||||||
There are {{nbHostOpenProblems}} host
|
There
|
||||||
<ng-pluralize count="nbHostOpenProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
<ng-pluralize count="nbHostOpenProblems" when="{'0':'is', '1': 'is', 'other': 'are'}">
|
||||||
|
</ng-pluralize>
|
||||||
|
are {{nbHostOpenProblems}} host
|
||||||
|
<ng-pluralize count="nbHostOpenProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}">
|
||||||
|
</ng-pluralize>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -64,8 +68,12 @@
|
|||||||
<header class="main__content__header clearfix">
|
<header class="main__content__header clearfix">
|
||||||
<h2 class="main__content__title">{{dashboardTables[1].title}}</h2>
|
<h2 class="main__content__title">{{dashboardTables[1].title}}</h2>
|
||||||
<p class="main__content__alert state--error">
|
<p class="main__content__alert state--error">
|
||||||
There are {{nbServiceOpenProblems}} service
|
There
|
||||||
|
<ng-pluralize count="nbServiceOpenProblems" when="{'0':'is', '1': 'is', 'other': 'are'}">
|
||||||
|
</ng-pluralize>
|
||||||
|
{{nbServiceOpenProblems}} service
|
||||||
<ng-pluralize count="nbServiceOpenProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
<ng-pluralize count="nbServiceOpenProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
||||||
|
</ng-pluralize>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -87,8 +95,12 @@
|
|||||||
<header class="main__content__header clearfix">
|
<header class="main__content__header clearfix">
|
||||||
<h2 class="main__content__title">{{dashboardTables[2].title}}</h2>
|
<h2 class="main__content__title">{{dashboardTables[2].title}}</h2>
|
||||||
<p class="main__content__alert state--error">
|
<p class="main__content__alert state--error">
|
||||||
There are {{nbHostProblems}} host
|
There
|
||||||
|
<ng-pluralize count="nbHostProblems" when="{'0':'is', '1': 'is', 'other': 'are'}"/>
|
||||||
|
</ng-pluralize>
|
||||||
|
{{nbHostProblems}} host
|
||||||
<ng-pluralize count="nbHostProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
<ng-pluralize count="nbHostProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
||||||
|
</ng-pluralize>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -106,8 +118,12 @@
|
|||||||
<header class="main__content__header clearfix">
|
<header class="main__content__header clearfix">
|
||||||
<h2 class="main__content__title">{{dashboardTables[3].title}}</h2>
|
<h2 class="main__content__title">{{dashboardTables[3].title}}</h2>
|
||||||
<p class="main__content__alert state--error">
|
<p class="main__content__alert state--error">
|
||||||
There are {{nbServiceProblems}} service
|
There
|
||||||
|
<ng-pluralize count="nbServiceProblems" when="{'0':'is', '1': 'is', 'other': 'are'}"/>
|
||||||
|
</ng-pluralize>
|
||||||
|
{{nbServiceProblems}} service
|
||||||
<ng-pluralize count="nbServiceProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
<ng-pluralize count="nbServiceProblems" when="{'0':'problem', '1': 'problem', 'other': 'problems'}"/>
|
||||||
|
</ng-pluralize>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user