Skip to content

Commit

Permalink
corrects markup indentation in template.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Jul 18, 2024
1 parent 13cbd9f commit b159f00
Showing 1 changed file with 48 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,55 @@
</SimpleChart>
{{/if}}
{{#if (and (not @isIcon) @showDataTable)}}
<div class="data-table" data-test-data-table>
<table>
<thead>
<tr>
<SortableTh
@sortedAscending={{this.sortedAscending}}
@sortedBy={{or (eq this.sortBy "vocabularyTerm") (eq this.sortBy "vocabularyTerm:desc")}}
@onClick={{fn this.setSortBy "vocabularyTerm"}}
data-test-vocabulary-term
>
{{t "general.vocabulary"}} - {{t "general.term"}}
</SortableTh>
<SortableTh
@colspan="2"
@sortedAscending={{this.sortedAscending}}
@sortedBy={{or (eq this.sortBy "sessionTitles") (eq this.sortBy "sessionTitles:desc")}}
@onClick={{fn this.setSortBy "sessionTitles"}}
data-test-sessions
>
{{t "general.sessions"}}
</SortableTh>
<SortableTh
@sortedAscending={{this.sortedAscending}}
@sortedBy={{or (eq this.sortBy "minutes") (eq this.sortBy "minutes:desc")}}
@onClick={{fn this.setSortBy "minutes"}}
@sortType="numeric"
data-test-minutes
>
{{t "general.minutes"}}
</SortableTh>
</tr>
</thead>
<tbody>
{{#each (sort-by this.sortBy this.tableData) as |row|}}
<div class="data-table" data-test-data-table>
<table>
<thead>
<tr>
<td data-test-vocabulary-term>{{row.vocabularyTerm}}</td>
<td colspan="2" data-test-sessions>
{{#each row.sessions as |session index|}}
<LinkTo @route="session" @models={{array @course session}}>
{{session.title~}}
</LinkTo>{{if (not-eq index (sub row.sessions.length 1)) ","}}
{{/each}}
</td>
<td data-test-minutes>{{row.minutes}}</td>
<SortableTh
@sortedAscending={{this.sortedAscending}}
@sortedBy={{or (eq this.sortBy "vocabularyTerm") (eq this.sortBy "vocabularyTerm:desc")}}
@onClick={{fn this.setSortBy "vocabularyTerm"}}
data-test-vocabulary-term
>
{{t "general.vocabulary"}} - {{t "general.term"}}
</SortableTh>
<SortableTh
@colspan="2"
@sortedAscending={{this.sortedAscending}}
@sortedBy={{or (eq this.sortBy "sessionTitles") (eq this.sortBy "sessionTitles:desc")}}
@onClick={{fn this.setSortBy "sessionTitles"}}
data-test-sessions
>
{{t "general.sessions"}}
</SortableTh>
<SortableTh
@sortedAscending={{this.sortedAscending}}
@sortedBy={{or (eq this.sortBy "minutes") (eq this.sortBy "minutes:desc")}}
@onClick={{fn this.setSortBy "minutes"}}
@sortType="numeric"
data-test-minutes
>
{{t "general.minutes"}}
</SortableTh>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{/if}}
</thead>
<tbody>
{{#each (sort-by this.sortBy this.tableData) as |row|}}
<tr>
<td data-test-vocabulary-term>{{row.vocabularyTerm}}</td>
<td colspan="2" data-test-sessions>
{{#each row.sessions as |session index|}}
<LinkTo @route="session" @models={{array @course session}}>
{{session.title~}}
</LinkTo>{{if (not-eq index (sub row.sessions.length 1)) ","}}
{{/each}}
</td>
<td data-test-minutes>{{row.minutes}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{/if}}
{{/if}}
</div>

0 comments on commit b159f00

Please sign in to comment.