From 027ecf95bbfe17f1ad99a5dc8afbecf4cc70ab60 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 24 Mar 2014 17:17:29 +0100 Subject: [PATCH] Added poll end date info message --- com.woltlab.wcf/templates/pollVote.tpl | 5 +++-- wcfsetup/install/files/style/poll.less | 6 ++++++ wcfsetup/install/lang/de.xml | 3 ++- wcfsetup/install/lang/en.xml | 3 ++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/com.woltlab.wcf/templates/pollVote.tpl b/com.woltlab.wcf/templates/pollVote.tpl index 29211fb746..6529a142bf 100644 --- a/com.woltlab.wcf/templates/pollVote.tpl +++ b/com.woltlab.wcf/templates/pollVote.tpl @@ -9,7 +9,8 @@ {/foreach} {if $poll->canVote()} - {if $poll->maxVotes > 1}{lang}wcf.poll.multipleVotes{/lang}{/if} + {if $poll->maxVotes > 1}

{lang}wcf.poll.multipleVotes{/lang}

{/if} + {if $poll->endTime}

{lang}wcf.poll.endTimeInfo{/lang}

{/if} {else} -

{lang}wcf.poll.restrictedResult{/lang}

+

{lang}wcf.poll.restrictedResult{/lang}

{/if} \ No newline at end of file diff --git a/wcfsetup/install/files/style/poll.less b/wcfsetup/install/files/style/poll.less index 9c79d4f1f6..2a31d26a55 100644 --- a/wcfsetup/install/files/style/poll.less +++ b/wcfsetup/install/files/style/poll.less @@ -25,6 +25,12 @@ } } +.pollInnerContainer { + > p:first-of-type { + margin-top: @wcfGapSmall; + } +} + .pollResultList { li { margin-bottom: 8px; diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 240062baa1..0bfdbe8e20 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1953,11 +1953,12 @@ Fehler sind beispielsweise: - + votes} Stimme{if $poll->votes != 1}n{/if}]]> + endTime|plainTime}]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 05010b6add..497928ead6 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1952,11 +1952,12 @@ Errors are: - + votes} vote{if $poll->votes != 1}s{/if}]]> + endTime|plainTime}]]> -- 2.20.1