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

Commit

Permalink
Merge tag '2.29.1' into geotrek_UX_dev_mid_2018
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Oct 20, 2020
2 parents 163c373 + be0b8e7 commit f84a3fd
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
11 changes: 10 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
2.29.1-ux / 2020-10-20
===================

**Bug fixes**

* Fix no pictogram trek's label should keep old icon


2.29.0-ux / 2020-10-20
======================

**Enhancements**

* Add trek's label categories filtering
* Add trek's label categories filtering (is park centered)
* Use trek's label warning
**Warning:** these features are only available for Geotrek-admin >= 2.38.5


2.28.2-ux / 2020-10-16
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.29.0-ux",
"version": "2.29.1-ux",
"description": "Geotrek rando public portal of Geotrek",
"author": "Makina Corpus",
"main": "src/app/app.js",
Expand Down
2 changes: 1 addition & 1 deletion src/app/categories/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function categoriesService(globalSettings, $q, treksService, contentsService, ev
labels: {
type: 'checkbox',
values: aTrek.properties.labels ? angular.copy(aTrek.properties.labels) : []
},
}
};

currentCategory.duration.values = _.map(_.sortBy(currentCategory.duration.values, 'id'));
Expand Down
4 changes: 2 additions & 2 deletions src/app/detail/templates/detail-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ <h3>
<div ng-repeat="label in result.properties.labels"
class="detail-content-notice labels" ng-if="label">
<span class="notice-symbol">
<ng-include ng-if="label.pictogram | isSVG" src="label.pictogram"></ng-include>
<img ng-if="!(label.pictogram | isSVG)" ng-src="{{label.pictogram}}" ng-alt="{{label.name}}">
<ng-include ng-if="label.pictogram && label.pictogram | isSVG" src="label.pictogram"></ng-include>
<img ng-if="label.pictogram && !(label.pictogram | isSVG)" ng-src="{{label.pictogram}}" ng-alt="{{label.name}}">
<i ng-if="!label.pictogram" class="notice-symbol fa fa-info-circle"></i>
</span>

Expand Down
2 changes: 1 addition & 1 deletion tests/dataset/api/es/treks.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -1916,4 +1916,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion tests/dataset/api/fr/treks.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -3422,4 +3422,4 @@
}
}
]
}
}

0 comments on commit f84a3fd

Please sign in to comment.