diff --git a/source/components/ResultsGrid.js b/source/components/ResultsGrid.js
index 4e384575c..aa389b5ae 100644
--- a/source/components/ResultsGrid.js
+++ b/source/components/ResultsGrid.js
@@ -2,13 +2,14 @@ import R from "ramda"
import React, { Component } from "react"
import { connect } from "react-redux"
import { withRouter } from "react-router"
+import { Link } from "react-router-dom"
import { formValueSelector } from "redux-form"
import "./Results.css"
import "../engine/mecanismViews/Somme.css"
import { humanFigure } from "./rule/RuleValueVignette"
import { capitalise0 } from "../utils"
-import { nameLeaf } from "Engine/rules"
+import { nameLeaf, encodeRuleName } from "Engine/rules"
// Filtered variables and rules can't be filtered in a uniform way, for now
@@ -196,7 +197,9 @@ class Row extends Component {
? []
: R.keys(detail).map(subCellName => (
- {title(subCellName)} |
+
+ {title(subCellName)}
+ |
{relevantSalaries.has("salaire net") && (
<>
@@ -279,29 +282,33 @@ class ReductionRow extends Component {
let detailRow = this.state.folded
? null
:
- |
- Réductions de cotisations |
- {relevantSalaries.has("salaire net") && (
- <>
-
- +
- |
-
- {humanFigure(2)(0)}
- |
- >
- )}
- {relevantSalaries.has("salaire total") && (
- <>
-
- -
- |
-
- {humanFigure(2)(value)}
- |
- >
- )}
-
+
+
+
+ Réductions de cotisations
+
+ |
+ {relevantSalaries.has("salaire net") && (
+ <>
+
+ +
+ |
+
+ {humanFigure(2)(0)}
+ |
+ >
+ )}
+ {relevantSalaries.has("salaire total") && (
+ <>
+
+ -
+ |
+
+ {humanFigure(2)(value)}
+ |
+ >
+ )}
+
// returns an array of
return [aggregateRow, detailRow]
diff --git a/source/engine/mecanismViews/Somme.css b/source/engine/mecanismViews/Somme.css
index 2aad506bb..6f4c23fe6 100644
--- a/source/engine/mecanismViews/Somme.css
+++ b/source/engine/mecanismViews/Somme.css
@@ -89,6 +89,11 @@
.resultsGrid .detailsRow .name {
padding-left: 1.2em;
}
+.resultsGrid .detailsRow .name:hover {
+ color: #2975D1;
+ text-decoration: underline;
+}
+
.resultsGrid .name {
font-size: 90%;
}