You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/01/20 19:42:15 UTC
[25/32] git commit: Added ng pluralize on the search results to show
plugin(s) with results text
Added ng pluralize on the search results to show plugin(s) with results text
Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/5439f1a8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/5439f1a8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/5439f1a8
Branch: refs/heads/refactor
Commit: 5439f1a8266e889f3f5d2807d596946b1627b884
Parents: 0cfa548
Author: Josh Bavari <jo...@raisemore.com>
Authored: Sun Jan 19 04:29:14 2014 -0600
Committer: Josh Bavari <jo...@raisemore.com>
Committed: Sun Jan 19 04:29:14 2014 -0600
----------------------------------------------------------------------
attachments/partials/views/search.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/5439f1a8/attachments/partials/views/search.html
----------------------------------------------------------------------
diff --git a/attachments/partials/views/search.html b/attachments/partials/views/search.html
index c2fcae9..a821578 100644
--- a/attachments/partials/views/search.html
+++ b/attachments/partials/views/search.html
@@ -6,7 +6,11 @@
</div>
<div class="topcoat-grid__row">
<div class="topcoat-grid__column--12 topcoat-grid__offset--1">
- <span>{{searchResults.length}} plugins found</span>
+ <ng-pluralize count="searchResults.length"
+ when="{'0': 'No plugins found.',
+ 'one': '1 plugin found.',
+ 'other': '{} plugins found.'}">
+ </ng-pluralize>
</div>
</div>
<div class="topcoat-grid__row">