{{#if error}}
{{> errorpartial message=error}}
{{else}}
{{#each report}}
<b>{{degreeName}}</b>
<ul class="collapsible popout" data-collapsible="accordion">
    {{#each modules}}
    <li style="margin:5px;">
        <div class="collapsible-header waves-effect" style="font-size:11px;">{{moduleNameShort}} <span class="badge">{{averageGrade}}</span></div>
        <div class="collapsible-body" style="background-color:#eeeeee">
            {{#if isSingleModule}}
            <p class="flow-text" style="word-wrap: break-word;font-size:13px;">{{moduleDescription.lectureName}}</p>
            <div class="collection" style="margin:10px;background-color:#eeeeee">
                {{#if moduleDescription.mark}}<a class="collection-item">{{langString "campus.studentReport.mark"}}<span class="badge">{{moduleDescription.mark}}</span></a>{{/if}}
                {{#if moduleDescription.annotation}}<a class="collection-item">{{langString "campus.studentReport.annotation"}}<span class="badge">{{moduleDescription.annotation}}</span></a>{{/if}}
                {{#if moduleDescription.dateOfExam}}<a class="collection-item">{{langString "campus.studentReport.dateOfExam"}}<span class="badge">{{moduleDescription.dateOfExam}}</span></a>{{/if}}
                {{#if moduleDescription.examNumber}}<a class="collection-item">{{langString "campus.studentReport.examNumber"}}<span class="badge">{{moduleDescription.examNumber}}</span></a>{{/if}}
                {{#if moduleDescription.semester}}<a class="collection-item">{{langString "campus.studentReport.semester"}}<span class="badge">{{moduleDescription.semester}}</span></a>{{/if}}
                {{#if moduleDescription.credits}}<a class="collection-item">{{langString "campus.studentReport.credits"}}<span class="badge">{{moduleDescription.credits}}</span></a>{{/if}}
                {{#if moduleDescription.swh}}<a class="collection-item">{{langString "campus.studentReport.swh"}}<span class="badge">{{moduleDescription.swh}}</span></a>{{/if}}
            </div>
            {{else}}
            {{#each reportExams}}
            <p class="flow-text" style="word-wrap: break-word;font-size:13px;">{{lectureName}}</p>
            <div class="collection" style="margin:10px;background-color:#eeeeee">
                {{#if mark}}<a class="collection-item">{{langString "campus.studentReport.mark"}}<span class="badge">{{mark}}</span></a>{{/if}}
                {{#if annotation}}<a class="collection-item">{{langString "campus.studentReport.annotation"}}<span class="badge">{{annotation}}</span></a>{{/if}}
                {{#if dateOfExam}}<a class="collection-item">{{langString "campus.studentReport.dateOfExam"}}<span class="badge">{{dateOfExam}}</span></a>{{/if}}
                {{#if examNumber}}<a class="collection-item">{{langString "campus.studentReport.examNumber"}}<span class="badge">{{examNumber}}</span></a>{{/if}}
                {{#if semester}}<a class="collection-item">{{langString "campus.studentReport.semester"}}<span class="badge">{{semester}}</span></a>{{/if}}
                {{#if credits}}<a class="collection-item">{{langString "campus.studentReport.credits"}}<span class="badge">{{credits}}</span></a>{{/if}}
                {{#if swh}}<a class="collection-item">{{langString "campus.studentReport.swh"}}<span class="badge">{{swh}}</span></a>{{/if}}
            </div>
            {{/each}}
            {{/if}}
            {{#if key}}
            <p class="flow-text" style="word-wrap: break-word;font-size:13px;">{{langString "campus.studentReport.key"}}</p>
            <div class="collection" style="margin:10px;background-color:#eeeeee"><div class="collection-item">{{key}}</div></div>
            {{/if}}
        </div>
    </li>
    {{/each}}
    {{#unless modules}}
    {{#each entries}}
    <li style="margin:5px;">
        <div class="collapsible-header waves-effect truncate" style="font-size:11px; padding-right: 4rem;">{{lectureNameShort}} <span class="badge">{{#if annotation}} {{annotation}}{{else}}{{mark}}{{/if}}</span></div>
        <div class="collapsible-body" style="background-color:#eeeeee">
            <p class="flow-text" style="word-wrap: break-word;font-size:13px;">{{lectureName}}</p>
            <div class="collection" style="margin:10px;background-color:#eeeeee">
                {{#if mark}}<a class="collection-item">{{langString "campus.studentReport.mark"}}<span class="badge">{{mark}}</span></a>{{/if}}
                {{#if annotation}}<a class="collection-item">{{langString "campus.studentReport.annotation"}}<span class="badge">{{annotation}}</span></a>{{/if}}
                {{#if dateOfExam}}<a class="collection-item">{{langString "campus.studentReport.dateOfExam"}}<span class="badge">{{dateOfExam}}</span></a>{{/if}}
                {{#if examNumber}}<a class="collection-item">{{langString "campus.studentReport.examNumber"}}<span class="badge">{{examNumber}}</span></a>{{/if}}
                {{#if semester}}<a class="collection-item">{{langString "campus.studentReport.semester"}}<span class="badge">{{semester}}</span></a>{{/if}}
                {{#if credits}}<a class="collection-item">{{langString "campus.studentReport.credits"}}<span class="badge">{{credits}}</span></a>{{/if}}
                {{#if swh}}<a class="collection-item">{{langString "campus.studentReport.swh"}}<span class="badge">{{swh}}</span></a>{{/if}}
            </div>
        </div>
    </li>
    {{/each}}
    {{/unless}}
</ul>
{{/each}}
{{/if}}