diff --git a/views/partials/testTable.hbs b/views/partials/testTable.hbs index a6050c9..1451ff3 100644 --- a/views/partials/testTable.hbs +++ b/views/partials/testTable.hbs @@ -1,12 +1,32 @@ {{#if tests.length}} - - {{#each tests}} - {{> dashboardTest - id=id - name=template.name - date=date - }} - {{/each}} +
+ {{#if full}} + + + + + + + + + {{#each tests}} + {{> test + id=id + name=template.name + class=class.name + subject=class.subject.name + date=date + }} + {{/each}} + {{else}} + {{#each tests}} + {{> dashboardTest + id=id + name=template.name + date=date + }} + {{/each}} + {{/if}}
NameClassSubjectDate
{{else}} No tests found diff --git a/views/tests.hbs b/views/tests.hbs index 277767b..a0ef700 100644 --- a/views/tests.hbs +++ b/views/tests.hbs @@ -10,25 +10,7 @@

Tests

- - - - - - - - - - {{#each tests}} - {{> test - id=id - name=template.name - class=class.name - subject=class.subject.name - date=date - }} - {{/each}} -
NameClassSubjectDate
+ {{> testTable tests=tests full=true }}