From 6f6a161abc7eaa3cbaf2b03c7160bceff0915d4f Mon Sep 17 00:00:00 2001 From: Artyom Date: Thu, 17 Mar 2016 14:52:32 +0300 Subject: [PATCH] =?UTF-8?q?Don't=20say=20=E2=80=9Cwrite=20something=20here?= =?UTF-8?q?=E2=80=9D=20for=20ecosystem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/View.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/View.hs b/src/View.hs index 69c96ab..c16c881 100644 --- a/src/View.hs +++ b/src/View.hs @@ -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