FIX: don't use a table for poll results
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export default Em.Component.extend({
|
||||
tagName: "table",
|
||||
tagName: "ul",
|
||||
classNames: ["results"],
|
||||
|
||||
options: function() {
|
||||
|
||||
+10
-8
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user