Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge 2.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Oct 3, 2019
2 parents bb63764 + 543218e commit 6e4a0f3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2.21.4-ux / 2019-10-03
======================

**Bug fixes**

* Fix services not displayed properly

2.21.3-ux / 2019-09-25
======================

Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geotrekrando",
"version": "2.21.3-ux",
"version": "2.21.4-ux",
"description": "Geotrek rando public portal of Geotrek",
"author": "Makina Corpus",
"main": "src/app/app.js",
Expand Down
8 changes: 3 additions & 5 deletions src/app/detail/templates/detail-sensitives.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ <h3>{{'SENSITIVE_ZONE' | translate}}</h3>
{{month}}
</span>
</div>
<p ng-if="sensitive.contact" class="contact">
{{'CONTACT' | translate}} : {{sensitive.contact}}
</p>
<p ng-if="sensitive.description">
{{sensitive.description}}
<p class="contact" ng-if="sensitive.contact">{{'CONTACT' | translate}} :
<span class="contact" ng-if="sensitive.contact" ng-bind-html="sensitive.contact | sanitizeData: true"></span>
</p>
<p ng-if="sensitive.description" ng-bind-html="sensitive.description | sanitizeData: true"></p>
<p ng-if="sensitive.species_url">
<a href="{{sensitive.species_url}}" target="_blank">{{'SHOW_MORE' | translate}}</a>
</p>
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ function servicesService($resource, $q, globalSettings, settingsFactory, transla
var deferred = $q.defer();
var currentLang = translationService.getCurrentLang();
if (element.properties.contentType === 'trek') {
var url = settingsFactory.trekUrl.replace(/\$lang/, currentLang) + element.id + '/' + globalSettings.POI_FILE;
var url = settingsFactory.trekUrl.replace(/\$lang/, currentLang) + element.id + '/' + globalSettings.SERVICES_FILE;
}
if (element.properties.contentType === 'dive') {
var url = settingsFactory.diveUrl.replace(/\$lang/, currentLang) + element.id + '/' + globalSettings.POI_FILE;
var url = settingsFactory.diveUrl.replace(/\$lang/, currentLang) + element.id + '/' + globalSettings.SERVICES_FILE;
}
var requests = $resource(url, {}, {
query: {
Expand Down

0 comments on commit 6e4a0f3

Please sign in to comment.