DateDueColumnView.handlebars 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{#if multipleDueDates}}
  2. <strong>{{#t "due"}}Due{{/t}}</strong>
  3. {{#if allDates}}
  4. <a title="tooltip"
  5. class="vdd_tooltip_link"
  6. aria-describedby="vdd_tooltip_{{selector}}"
  7. data-tooltip-selector="#vdd_tooltip_{{selector}}"
  8. {{#if linkHref}}href="{{linkHref}}"{{/if}}
  9. >{{#t "multiple_dates"}}Multiple Dates{{/t}}</a>
  10. <div id="vdd_tooltip_{{selector}}" style="display:none;">
  11. <dl class="vdd_tooltip_content dl-horizontal">
  12. {{#each allDates}}
  13. <div class="clearfix">
  14. <dt>{{dueFor}}</dt>
  15. <dd>
  16. {{#if dueAt}}
  17. <span {{contextSensitiveDatetimeTitle dueAt}}>
  18. {{tDateToString (fudge dueAt) 'short'}}
  19. </span>
  20. {{else}}
  21. -
  22. {{/if}}
  23. </dd>
  24. </div>
  25. {{/each}}
  26. </dl>
  27. </div>
  28. {{else}}
  29. {{#t "multiple_dates"}}Multiple Dates{{/t}}
  30. {{/if}}
  31. {{else}}
  32. {{#if singleSectionDueDate}}
  33. <strong>{{#t "due_date"}}Due{{/t}}</strong>
  34. <span {{contextSensitiveDatetimeTitle singleSectionDueDate}} aria-hidden="true">
  35. {{datetimeFormatted singleSectionDueDate}}
  36. </span>
  37. {{/if}}
  38. {{/if}}