Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify user when no APIs found with selected status #2854

Merged
merged 3 commits into from
Aug 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions apinf_packages/api_catalog/client/grid/grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@

<template name="apiCatalogGrid">
<div class="row">
{{# each api in apis }}
<div class="col-grid col-xl-2 col-lg-3 col-md-4 col-sm-6 col-xs-12">
{{> apiCard api=api organization=organization }}
</div>
{{/ each }}
{{#if apis.length}}
{{# each api in apis }}
<div class="col-grid col-xl-2 col-lg-3 col-md-4 col-sm-6 col-xs-12">
{{> apiCard api=api organization=organization }}
</div>
{{/ each }}
{{else}}
<div class="col-xs-12">
<p>{{_ 'apiCatalog_noApis_Found'}}</p>
</div>
{{/if}}
</div>
</template>
1 change: 1 addition & 0 deletions apinf_packages/core/lib/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"apiCardPin_unfeaturedSuccessfully": "API card removed from featured list successfully",
"apiCatalog_apisCount": "(__count__ api)",
"apiCatalog_apisCount_plural": "(__count__ apis)",
"apiCatalog_noApis_Found": "No APIs found with the selected life cycle status",
"apiSettingsDelete_deleteButton": "Delete",
"apiDetails_baseUrl_headingText": "API URL",
"apiDetails_description_headingText": "Description",
Expand Down