mirror of
https://github.com/php/web-wiki.git
synced 2025-08-13 13:33:46 +00:00
Revert "Merge pull request #1 from salathe/salathe/hide-votes-in-progress"
This reverts commit1baa2265a6
, reversing changes made to571d08492a
.
This commit is contained in:
@ -9,7 +9,6 @@
|
||||
global $ID;
|
||||
|
||||
$template = $this->template;
|
||||
$is_closed = $this->params['closed'];
|
||||
$c = count($template['choices']);
|
||||
?>
|
||||
|
||||
@ -43,30 +42,18 @@
|
||||
<?php $fullname = '<a href="//people.php.net/user.php?username=' . $fullname.'">' .$fullname. '</a>';?>
|
||||
<?php echo $userData['editLinks'].$fullname.$userData['username'] ?>
|
||||
</td>
|
||||
<?php
|
||||
if ($is_closed || $INFO['userinfo']['name'] == $fullname) {
|
||||
for ($col = 0; $col < $c; $col++) {
|
||||
echo $userData['choice'][$col];
|
||||
}
|
||||
} else {
|
||||
?><td class="votehidden" colspan="<?php echo $c ?>"> </td><?php
|
||||
}
|
||||
?>
|
||||
<?php for ($col = 0; $col < $c; $col++) {
|
||||
echo $userData['choice'][$col];
|
||||
} ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<!-- Results / sum per column -->
|
||||
<tr>
|
||||
<th class="rightalign"><b><?php echo $template['result'] ?></b></th>
|
||||
<?php
|
||||
if ($is_closed) {
|
||||
for ($col = 0; $col < $c; $col++) {
|
||||
?><th class="centeralign"><b><?php echo $template['count'][$col] ?></b></th><?php
|
||||
}
|
||||
} else {
|
||||
?><th class="centeralign" colspan="<?php echo $c ?>"><?php echo count($template['doodleData']) ?></th><?php
|
||||
}
|
||||
?>
|
||||
<?php for ($col = 0; $col < $c; $col++) { ?>
|
||||
<th class="centeralign"><b><?php echo $template['count'][$col] ?></b></th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
@ -27,8 +27,3 @@ div.dokuwiki table.inline td.notokay {
|
||||
border: 0;
|
||||
color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
div.dokuwiki table.inline td.votehidden {
|
||||
background-color: #f3f3f3;
|
||||
text-align: center;
|
||||
}
|
||||
|
Reference in New Issue
Block a user