Fix search view and search autocomplete for apps

Had the wrong icon in search view and forgot to add the autocomplete handling for applications
This commit is contained in:
Joseph Schorr 2017-05-03 15:38:51 -04:00
parent 17c4d4c84e
commit 21aff5ef9d
2 changed files with 9 additions and 1 deletions

View file

@ -35,6 +35,14 @@
first-line-only="true" placeholder-needed="false"></div>
</div>
</span>
<span ng-switch-when="application">
<span class="avatar" data="result.namespace.avatar" size="16"></span>
<span class="result-name">{{ result.namespace.name }}/{{ result.name }}</span>
<div class="result-description" ng-if="result.description">
<div class="description markdown-view" content="result.description"
first-line-only="true" placeholder-needed="false"></div>
</div>
</span>
</span>
</div>
</script>

View file

@ -21,7 +21,7 @@
</span>
<h4>
<i class="fa fa-hdd-o" ng-if="result.kind == 'repository'"></i>
<i class="fa ci-app-cube" ng-if="result.kind == 'application'"></i>
<i class="fa ci-appcube" ng-if="result.kind == 'application'"></i>
<a href="{{ result.href }}">{{ result.namespace.name }}/{{ result.name }}</a>
</h4>
<p class="description">