courseLoggingDetails.handlebars 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <dl class="dl-horizontal">
  2. <dt>{{#t "event_id"}}Event Id{{/t}}:</dt>
  3. <dd>{{id}}</dd>
  4. <dt>{{#t "date"}}Date{{/t}}:</dt>
  5. <dd>{{tDateToString created_at "medium"}}</dd>
  6. <dt>{{#t "time"}}Time{{/t}}:</dt>
  7. <dd>{{tTimeToString created_at "tiny"}}</dd>
  8. <dt>{{#t "user"}}User{{/t}}:</dt>
  9. <dd>{{user.name}}</dd>
  10. <dt>{{#t "event_source_label"}}Source{{/t}}:</dt>
  11. <dd>{{event_source_present}}</dd>
  12. {{#ifEqual event_source 'sis'}}
  13. <dt>{{#t "event_sis_batch"}}SIS Batch{{/t}}:</dt>
  14. {{#if links.sis_batch}}
  15. <dd>{{links.sis_batch}}</dd>
  16. {{else}}
  17. <dd>{{#t "blank_placeholder"}}-{{/t}}</dd>
  18. {{/if}}
  19. {{/ifEqual}}
  20. <dt>{{#t "event_type_label"}}Type{{/t}}:</dt>
  21. <dd>{{event_type_present}}</dd>
  22. {{#ifEqual event_type 'copied_to'}}
  23. <dt>{{#t "copied_to_label"}}Copied To{{/t}}:</dt>
  24. {{#if copied_to}}
  25. <dd>
  26. {{#with copied_to}}
  27. <a href="courses/{{id}}">{{name}}</a>
  28. {{/with}}
  29. </dd>
  30. {{else}}
  31. <dd>{{#t "blank_placeholder"}}-{{/t}}</dd>
  32. {{/if}}
  33. {{/ifEqual}}
  34. {{#ifEqual event_type 'copied_from'}}
  35. <dt>{{#t "copied_from_label"}}Copied From{{/t}}:</dt>
  36. {{#if copied_from}}
  37. <dd>
  38. {{#with copied_from}}
  39. <a href="courses/{{id}}">{{name}}</a>
  40. {{/with}}
  41. </dd>
  42. {{else}}
  43. <dd>{{#t "blank_placeholder"}}-{{/t}}</dd>
  44. {{/if}}
  45. {{/ifEqual}}
  46. {{#ifEqual event_type 'reset_to'}}
  47. <dt>{{#t "reset_to_label"}}Reset To{{/t}}:</dt>
  48. {{#if reset_to}}
  49. <dd>
  50. {{#with reset_to}}
  51. <a href="courses/{{id}}">{{name}}</a>
  52. {{/with}}
  53. </dd>
  54. {{else}}
  55. <dd>{{#t "blank_placeholder"}}-{{/t}}</dd>
  56. {{/if}}
  57. {{/ifEqual}}
  58. {{#ifEqual event_type 'reset_from'}}
  59. <dt>{{#t "reset_from_label"}}Reset From{{/t}}:</dt>
  60. {{#if reset_from}}
  61. <dd>
  62. {{#with reset_from}}
  63. <a href="courses/{{id}}">{{name}}</a>
  64. {{/with}}
  65. </dd>
  66. {{else}}
  67. <dd>{{#t "blank_placeholder"}}-{{/t}}</dd>
  68. {{/if}}
  69. {{/ifEqual}}
  70. </dl>
  71. {{#ifEqual event_type 'created'}}
  72. <table class="ic-Table">
  73. <thead>
  74. <tr>
  75. <th>{{#t "Field"}}Field{{/t}}</th>
  76. <th>{{#t "Value"}}Value{{/t}}</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. {{#eachProp event_data}}
  81. <tr>
  82. <td>{{property}}</td>
  83. <td>{{value}}</td>
  84. </tr>
  85. {{/eachProp}}
  86. </tbody>
  87. </table>
  88. {{/ifEqual}}
  89. {{#ifEqual event_type 'updated'}}
  90. <table class="table table-bordered">
  91. <thead>
  92. <tr>
  93. <th>{{#t "Field"}}Field{{/t}}</th>
  94. <th>{{#t "From"}}From{{/t}}</th>
  95. <th>{{#t "To"}}To{{/t}}</th>
  96. </tr>
  97. </thead>
  98. <tbody>
  99. {{#eachProp event_data}}
  100. <tr>
  101. <td>{{property}}</td>
  102. {{#with value}}
  103. <td>{{from}}</td>
  104. <td>{{to}}</td>
  105. {{/with}}
  106. </tr>
  107. {{/eachProp}}
  108. </tbody>
  109. </table>
  110. {{/ifEqual}}