submission_detail.handlebars 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="submission_detail">
  2. {{#if submission_type}}
  3. {{#if url}}
  4. Submission URL: <a class="url-submission" href="{{url}}" title="{{#t "go_to_submission_url"}}Go to submission URL{{/t}}" target="_blank">{{url}}</a>
  5. {{/if}}
  6. {{#if attachments}}
  7. <label>{{#t "submitted_files"}}Submitted files:{{/t}}</label>
  8. <div>
  9. {{#each attachments}}
  10. <div class="submisison-attachment">
  11. {{#if turnitin.reportUrl}}
  12. {{#with turnitin}}
  13. <span class="turnitin_score_container">{{> turnitinScore}}</span>
  14. {{/with}}
  15. {{/if}}
  16. <a href="{{url}}" class="{{mimeClass content-type}}" title="{{filename}}">{{display_name}}</a>
  17. </div>
  18. {{/each}}
  19. </div>
  20. {{/if}}
  21. {{#ifEqual submission_type "online_text_entry"}}
  22. {{#if turnitin.reportUrl}}
  23. {{#with turnitin}}
  24. <span class="turnitin_score_container">{{> turnitinScore}}</span>
  25. {{/with}}
  26. {{/if}}
  27. {{#if vericite.reportUrl}}
  28. {{#with vericite}}
  29. <span class="turnitin_score_container">{{> vericiteScore}}</span>
  30. {{/with}}
  31. {{/if}}
  32. {{/ifEqual}}
  33. {{else}}
  34. {{#t "no_submission"}}No submission{{/t}}
  35. {{/if}}
  36. </div>