Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
French Tax and Benefit Tables
baremes-ipp-views
Commits
c473c155
Commit
c473c155
authored
Nov 20, 2018
by
Florian Pagnoux
Browse files
Fix edit links
parent
f256a07f
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/ParameterTable.js
View file @
c473c155
...
...
@@ -28,8 +28,9 @@ function cellFormatter({value, metadata}) {
}
function
buildSimpleColumn
(
parameter
)
{
const
source
=
parameter
.
source
.
replace
(
'
openfisca_baremes_ipp/
'
,
''
)
// The structure of the repo is not the typical OF structure, so we monkey patch
return
{
Header
:
<
span
className
=
"
edit-link
"
>
{
parameter
.
description
||
parameter
.
id
}
<
br
/><
a
target
=
"
_blank
"
href
=
{
parameter
.
source
}
>
Edit
<
/a></
span
>
,
Header
:
<
span
className
=
"
edit-link
"
>
{
parameter
.
description
||
parameter
.
id
}
<
br
/><
a
target
=
"
_blank
"
href
=
{
source
}
>
Edit
<
/a></
span
>
,
accessor
:
item
=>
item
[
parameter
.
id
],
id
:
parameter
.
id
,
Cell
:
cellFormatter
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment