diff options
author | Yorhel <git@yorhel.nl> | 2020-04-26 11:16:31 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-04-26 11:16:31 +0200 |
commit | 38f3ae4fc9b3109d481e0d76db02bfd97e2222d4 (patch) | |
tree | 3ae49b6c0b3ec79c36fb4f686abff5a6d48e2715 /elm | |
parent | 0d48607c50d9627d41249d30bb1125fe18fb8683 (diff) |
imgflag: Honor show_nsfw setting for /img/<id> + hide excl_voted checkbox when single=1
Diffstat (limited to 'elm')
-rw-r--r-- | elm/ImageFlagging.elm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elm/ImageFlagging.elm b/elm/ImageFlagging.elm index b09511e1..66e8cbe0 100644 --- a/elm/ImageFlagging.elm +++ b/elm/ImageFlagging.elm @@ -338,9 +338,10 @@ view model = , li [] [ b [ class "standout" ] [ text "WARNING: " ], text "Images shown may include spoilers, be highly offensive and/or contain very explicit depictions of sexual acts." ] ] , br [] [] - , label [] [ inputCheck "" (not model.exclVoted) (\b -> ExclVoted (not b)), text " Include images I already voted on." ] - , br [] [] - , inputButton "I understand, continue" SkipWarn [] + , if model.single + then text "" + else label [] [ inputCheck "" (not model.exclVoted) (\b -> ExclVoted (not b)), text " Include images I already voted on.", br [] [] ] + , inputButton "Continue" SkipWarn [] ] else case (Array.get model.index model.images, model.loadState) of (Just i, _) -> imgView i |