Good afternoon, I bring out the table of users in Ember I do like this

<table class="strip-table users"> <col width="25%"/> <cols></cols> <col width="20%"/> <col width="25%"/> <thead> <tr> <th><div {{!class="sortable down"}}>Name</div></th> <th><div {{!class="sortable up"}}>Email</div></th> <th>Phone</th> <th>Zip Code</th> <th>Children</th> <th>Gender</th> </tr> </thead> <tbody> <tbody> {{#each model as |user|}} {{ partial 'app/users/-user' }} {{/each}} </tbody> </tbody> </table> 

In app / users / -user

 <tr> <td> <div class="user-info"> <div class="user-photo"> {{#if user.avatar_url }} <img src="" title="{{ user.full_name }}" alt="{{ user.full_name }}" style="height: 100%;"/> {{/if}} </div> <div class="user-info-inner"> <div>{{!<a href="#">}}test{{!</a>}}</div> </div> </div> </td> <td>{{user.full_name}}</td> <td>{{user.phone}}</td> <td>{{user.email}}</td> <td>{{user.postal}}</td> <td>{{user.children}}</td> <td>{{user.gender}}</td> 

and at the exit

enter image description here

And the columns are in -user just strongly compressed.

enter image description here

  • Feelings that they all got up in one th - Nikita Rassamahin

1 answer 1

 <tbody> <tbody> {{#each model as |user|}} {{ partial 'app/users/-user' }} {{/each}} </tbody> </tbody> 

tbody inside tbody in the end everything fell into the first th inattentively transferred the code from another project