Commit 48986358 authored by Emmanuel Raviart's avatar Emmanuel Raviart

Add configuration to hide debate buttons except for cards.

parent 8fb6b4a1
......@@ -363,19 +363,22 @@ viewCardContent model card =
argument.valueId
]
, text " "
, button
[ attribute "data-target" "#debate-content"
, attribute "data-toggle" "modal"
, class "btn btn-default btn-xs btn-action"
, onClick
(ForSelf
(LoadDebateProperties
[ argument.valueId ]
, if Configuration.deepDebate then
button
[ attribute "data-target" "#debate-content"
, attribute "data-toggle" "modal"
, class "btn btn-default btn-xs btn-action"
, onClick
(ForSelf
(LoadDebateProperties
[ argument.valueId ]
)
)
)
, type_ "button"
]
[ text (I18n.translate language (I18n.Debate)) ]
, type_ "button"
]
[ text (I18n.translate language (I18n.Debate)) ]
else
text ""
]
)
card.arguments
......@@ -752,24 +755,27 @@ viewDebateModal model card debatedIds =
[]
Just value ->
[ button
[ attribute "data-target" "#debate-content"
, attribute "data-toggle" "modal"
, class "btn btn-default btn-xs pull-right"
, onClick
(ForSelf
(LoadDebateProperties (property.valueId :: debatedIds))
)
, style
[ ( "margin-top", "4px" )
, ( "border", "2px solid #a7a7a7" )
, ( "color", "grey" )
, ( "background", "none" )
, ( "text-shadow", "none" )
[ if Configuration.deepDebate then
button
[ attribute "data-target" "#debate-content"
, attribute "data-toggle" "modal"
, class "btn btn-default btn-xs pull-right"
, onClick
(ForSelf
(LoadDebateProperties (property.valueId :: debatedIds))
)
, style
[ ( "margin-top", "4px" )
, ( "border", "2px solid #a7a7a7" )
, ( "color", "grey" )
, ( "background", "none" )
, ( "text-shadow", "none" )
]
, type_ "button"
]
, type_ "button"
]
[ text (I18n.translate language (I18n.Debate)) ]
[ text (I18n.translate language (I18n.Debate)) ]
else
text ""
, div []
[ h4 [ class "media-heading" ] [ text keyLabel ]
, viewValueTypeLine language (Just navigate) data False value.value
......
......@@ -15,6 +15,11 @@ appUrl =
"http://localhost:3011/"
deepDebate : Bool
deepDebate =
False
ogp : Bool
ogp =
False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment