Changeset View
Changeset View
Standalone View
Standalone View
src/applications/slowvote/view/SlowvoteEmbedView.php
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | if (strlen($description)) { | ||||
$description); | $description); | ||||
} | } | ||||
$header = array( | $header = array( | ||||
$header, | $header, | ||||
$description, | $description, | ||||
); | ); | ||||
$quip = pht('Voting improves cardiovascular endurance.'); | |||||
$vis = $poll->getResponseVisibility(); | $vis = $poll->getResponseVisibility(); | ||||
if ($this->areResultsVisible()) { | if ($this->areResultsVisible()) { | ||||
if ($vis == SlowvotePollResponseVisibility::RESPONSES_OWNER) { | if ($vis == SlowvotePollResponseVisibility::RESPONSES_OWNER) { | ||||
$quip = pht('Only you can see the results.'); | $quip = pht('Only you can see the results.'); | ||||
} else { | |||||
$quip = pht('Voting improves cardiovascular endurance.'); | |||||
} | } | ||||
} else if ($vis == SlowvotePollResponseVisibility::RESPONSES_VOTERS) { | } else if ($vis == SlowvotePollResponseVisibility::RESPONSES_VOTERS) { | ||||
$quip = pht('You must vote to see the results.'); | $quip = pht('You must vote to see the results.'); | ||||
} else if ($vis == SlowvotePollResponseVisibility::RESPONSES_OWNER) { | } else if ($vis == SlowvotePollResponseVisibility::RESPONSES_OWNER) { | ||||
$quip = pht('Only the author can see the results.'); | $quip = pht('Only the author can see the results.'); | ||||
} | } | ||||
$hint = phutil_tag( | $hint = phutil_tag( | ||||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |