Skip to content

Commit

Permalink
UI / UX
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven authored and goulven committed Jan 2, 2025
1 parent 7124194 commit ab78172
Show file tree
Hide file tree
Showing 6 changed files with 633 additions and 662 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,15 @@ public String getBaseUrl(final Locale siteLocale) {
}


/**
*
* @return the sum of the coefficient applyed to this ecoscore
*/
public Double getEcoscoreCriteriasSum() {
return impactScoreConfig.getCriteriasPonderation().values().stream()
.mapToDouble(Double::doubleValue)
.sum();
}
public String getBaseUrl(final String siteLocale) {
return i18n.getOrDefault(siteLocale, i18n.get("default")).getVerticalHomeUrl();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public ModelAndView api(final HttpServletRequest request) {
VerticalConfig verticalConfig = verticalsConfigService.getConfigById("tv");
ret.addObject("impactscore",verticalConfig .getImpactScoreConfig());
ret.addObject("verticalConfig",verticalConfig);
ret.addObject("verticals",verticalsConfigService.getConfigsWithoutDefault());




return ret;
}
Expand Down
Loading

0 comments on commit ab78172

Please sign in to comment.