Skip to content
Snippets Groups Projects
Commit fd658ac7 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Page: fix lookup i18n label for type

parent 7ddc158c
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ angular.module('cesium.es.profile.services', ['cesium.services', 'cesium.es.http
var mixedSearch = text && esSettings.wot.isMixedSearchEnable();
if (mixedSearch) {
request._source = request._source.concat(["description", "thumbnail._content_type", "city", "creationTime", "membersCount"]);
request._source = request._source.concat(["description", "thumbnail._content_type", "city", "creationTime", "membersCount", "type"]);
console.debug("[ES] [profile] Mixed search: enable");
}
......@@ -304,7 +304,8 @@ angular.module('cesium.es.profile.services', ['cesium.services', 'cesium.es.http
state: 'app.view_{0}'.format(hit._index),
stateParams: {id: hit._id, title: hit._source.title},
creationTime: hit._source.creationTime,
memberCount: hit._source.memberCount
memberCount: hit._source.memberCount,
type: hit._source.type
};
values=[item];
datas.push(item);
......
......@@ -11,7 +11,10 @@
<div class="item item-icon-right" ng-if="search.options" ng-click="showRecordTypeModal()">
<span translate>REGISTRY.SEARCH.TYPE</span>
<span class="badge badge-balanced" ng-if="search.type">{{'REGISTRY.TYPE.ENUM.'+search.type|uppercase|translate}}</span>
<span class="badge badge-balanced" ng-if="search.type">
<i class="cion-page-{{search.type}}"></i>
{{'REGISTRY.TYPE.ENUM.'+search.type|uppercase|translate}}
</span>
<i class="gray icon ion-ios-arrow-right"></i>
</div>
......
......@@ -39,7 +39,7 @@
</a>
<span ng-if="formData.city && formData.type">&nbsp;|&nbsp;</span>
<a ng-if="formData.type" ui-sref="app.registry_lookup({type:formData.type})">
<i class="icon ion-flag"></i>
<i class="cion-page-{{formData.type}}"></i>
{{'REGISTRY.TYPE.ENUM.'+formData.type|upper|translate}}
</a>
</h2>
......@@ -91,7 +91,7 @@
</div>
<ion-item>
<h2 ng-bind-html="formData.description"></h2>
<h2 trust-as-html="formData.description"></h2>
</ion-item>
<ion-item>
......
......@@ -8,6 +8,11 @@
<i class="ion-location"></i>
{{::item.city|truncText}}
</span>
<span ng-if="::item.city && item.type">|</span>
<span ng-if="item.type">
<i class="cion-page-{{item.type}}"></i>
{{::'REGISTRY.TYPE.ENUM.'+item.type|uppercase|translate}}
</span>
</h4>
<h4 class="dark">
<span class="dark" ng-if="::item.description">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment