1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 21:13:07 +03:00

Don't say “write something here” for ecosystem

This commit is contained in:
Artyom 2016-03-17 14:52:32 +03:00
parent f116663b29
commit 6f6a161abc

View File

@ -489,9 +489,8 @@ renderItemEcosystem item = do
JS.switchSection (this, "editing" :: Text)
section "normal" [shown, noScriptShown] $ do
p_ $ if item^.ecosystem == ""
then "write something here!"
else toHtml (item^.ecosystem)
unless (item^.ecosystem == "") $
p_ (toHtml (item^.ecosystem))
section "editing" [] $
smallMarkdownEditor