FIX: don't use a table for poll results

This commit is contained in:
Régis Hanol
2015-06-03 16:49:20 +02:00
parent 74b121beeb
commit 7afe78eec0
3 changed files with 20 additions and 20 deletions
@@ -1,5 +1,5 @@
export default Em.Component.extend({
tagName: "table",
tagName: "ul",
classNames: ["results"],
options: function() {
@@ -1,11 +1,13 @@
{{#each option in options}}
<tr>
<td class="option">{{{option.html}}}</td>
<td class="percentage">{{option.percentage}}%</td>
</tr>
<tr>
<td colspan="2" class="bar-back">
<li>
<div class="option">
<p>
<span class="percentage">{{option.percentage}}%</span>
{{{option.html}}}
</p>
</div>
<div class="bar-back">
<div class="bar" style={{option.style}}></div>
</td>
</tr>
</div>
</li>
{{/each}}