Commit 8fb6b4a1 authored by Emmanuel Raviart's avatar Emmanuel Raviart

Add configuration for OGP tab in main menu.

parent cc20090a
...@@ -15,6 +15,11 @@ appUrl = ...@@ -15,6 +15,11 @@ appUrl =
"http://localhost:3011/" "http://localhost:3011/"
ogp : Bool
ogp =
False
piwik : Maybe Analytics.PiwikConfiguration piwik : Maybe Analytics.PiwikConfiguration
piwik = piwik =
Nothing Nothing
......
...@@ -9,6 +9,7 @@ import Cards.Item.View ...@@ -9,6 +9,7 @@ import Cards.Item.View
import Collections.Item.View import Collections.Item.View
import Collections.Edit.View import Collections.Edit.View
import Collections.Index.View import Collections.Index.View
import Configuration
import Faq import Faq
import Home import Home
import Html exposing (..) import Html exposing (..)
...@@ -758,14 +759,17 @@ viewHeader model language containerClass = ...@@ -758,14 +759,17 @@ viewHeader model language containerClass =
[] []
[ text (I18n.translate language (I18n.Collection I18n.Plural)) ] [ text (I18n.translate language (I18n.Collection I18n.Plural)) ]
] ]
, li [] , if Configuration.ogp then
[ aForPath li []
Navigate [ aForPath
language Navigate
"/ogp" language
[ title (I18n.translate language I18n.OpenGovernmentPartnership) ] "/ogp"
[ text (I18n.translate language I18n.Ogp) ] [ title (I18n.translate language I18n.OpenGovernmentPartnership) ]
] [ text (I18n.translate language I18n.Ogp) ]
]
else
text ""
, aboutDropdown , aboutDropdown
] ]
, Html.form , Html.form
......
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