corrected bar

This commit is contained in:
Nael 2014-03-01 16:36:18 +01:00
parent c52b4c86d2
commit 97a3a80150
4 changed files with 16 additions and 11 deletions

View File

@ -1,15 +1,16 @@
<div style="float: left;">
<div style="width: 50%; float: left;">
<h5>Entscheidungsverhalten der uVote Community</h5>
<span style="float: left">
<span style="float: left,">
${votes_all}
</span>
<span style=""> Wie oft die uVote Community
<br> insgesamt Dafür, Dagegen oder
<br> Enthaltung gestimmt hat.</span>
</div>
<div style="float: right; margin-right: 50px;">
<div style="width: 50%; float: right;">
<h5>Entscheidungsverhalten des Bundestags</h5>
<br>
<span style="float: left">
${votes_all_bt}
</span>

View File

@ -1,7 +1,9 @@
<h5>Deine aktuelle Abstimmungsquote</h5>
<div style="float: left">Abgestimmt/</div>
<div style="margin-left: 90px;">Offene Abstimmungen</div>
<div class="progress" style="height: 30px;">
<div class="bar bar-success" style="width: ${vote_perc}%;"></div>
<div class="bar bar-info" style="width: ${no_vote_perc}%;"></div>
<h5>Deine Abstimmungsquote</h5>
<div style="">
<div style="float: left">Abgestimmt/</div>
<div style="margin-left: 90px;">Offen</div>
<div class="progress" style="height: 20px;">
<div class="bar bar-success" style="width: ${vote_perc}%;">${voted}</div>
<div class="bar bar-info" style="width: ${no_vote_perc}%;">${not_voted}</div>
</div>
</div>

View File

@ -13,7 +13,7 @@
</tr>
</table>
</div>
<div style="float: left; padding-left: 50px;">
<div style="float: right;">
${user_temp_votes}
</div>
</div>

View File

@ -7,7 +7,9 @@ class user_main_urVote extends SYSTEM\PAGE\Page {
$nv = $vars['not_voted'];
return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_main_urVote/all_polls.tpl'),
array( 'vote_perc'=> round($v/($nv+$v)*100,0),
'no_vote_perc'=> round($nv/($nv+$v)*100,0)));
'no_vote_perc'=> round($nv/($nv+$v)*100,0),
'voted'=> $v,
'not_voted'=> $nv));
}
private function user_to_bt(){