Update message about apps absence
Previously, message about importing apps from the app catalog shown after app searching and category browsing. Now this message was updated to the valid one. This is a cherry-pick from Ibccf0d503fb75789d094f99eb360ccebc20f164e Change-Id: I4761ba10627bc8b50d3bdc320eea9af632f721bc Closes-Bug: #1466382
This commit is contained in:
parent
6959966d6a
commit
e93c5706e8
|
@ -548,6 +548,9 @@ class IndexView(list_view.ListView):
|
|||
context.update(get_environments_context(self.request))
|
||||
context['repo_url'] = pkg_consts.MURANO_REPO_URL
|
||||
context['pkg_def_url'] = reverse('horizon:murano:packages:index')
|
||||
context['no_apps'] = True
|
||||
if self.get_current_category() != ALL_CATEGORY_NAME or search:
|
||||
context['no_apps'] = False
|
||||
return context
|
||||
|
||||
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
</div>
|
||||
{% else %}
|
||||
<p class="col-xs-12 alert alert-info">
|
||||
{% if no_apps %}
|
||||
{% blocktrans %} There are no applications in the catalog.
|
||||
You can import apps from<a href="{{ repo_url }}"
|
||||
target="_blank"> {{ repo_url }}</a>.
|
||||
|
@ -110,6 +111,10 @@
|
|||
<b><a href={{ pkg_def_url }}>Package Definitions</a></b>,
|
||||
click 'Import Package' and select <i>Repository</i> as a
|
||||
<i>Package Source</i>. {% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans %} No applications matching your criteria.
|
||||
{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue