newConference.handlebars 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <div class="ig-row" data-id="{{id}}" id="conf_{{id}}">
  2. <div class="ig-row__layout">
  3. <div class="ig-info">
  4. {{#if recording}}
  5. <a class="ig-title element_toggler"
  6. href="#"
  7. aria-controls="conference-{{id}}"
  8. aria-expanded="false"
  9. role="button">
  10. <i class="icon-mini-arrow-right"></i>
  11. {{title}}
  12. </a>
  13. {{else}}
  14. <span class="ig-title">{{title}}</span>
  15. {{/if}}
  16. <span class="{{#if has_actions}}has_actions{{/if}}">
  17. {{#if started_at}}
  18. <span class="label label-success ig-row-label">{{#t "in_progress"}}In Progress{{/t}}</span>
  19. {{/if}}
  20. </span>
  21. <div class="ig-details">
  22. {{#if scheduled}}
  23. <div>{{datetimeFormatted scheduled_at}}</div>
  24. {{/if}}
  25. {{#if recording}}
  26. {{#if multipleRecordings}}
  27. <div>{{#t "recordings"}}{{recordingCount}} Recordings{{/t}}</div>
  28. {{else}}
  29. <div>{{#t "recording"}}1 Recording{{/t}}</div>
  30. {{/if}}
  31. {{/if}}
  32. <div>{{description}}</div>
  33. </div>
  34. </div>
  35. <div class="ig-admin">
  36. {{# if show_end}}
  37. <a class='btn btn-small close_conference_link' href="{{ url }}/close">{{#t "end_it_now"}}End{{/t}}</a>
  38. {{/if}}
  39. {{#if started_at}}
  40. {{#if permissions.join}}
  41. <a href="{{ join_url }}" class="btn btn-small join-button btn-primary" target="_blank">
  42. {{#t "join"}}Join{{/t}}
  43. </a>
  44. {{/if}}
  45. {{else}}
  46. {{#if permissions.initiate}}
  47. <a href="{{ join_url }}" class="btn btn-small start-button" target="_blank" {{#unless id}}disabled="disabled"{{/unless}}>
  48. {{#t "start"}}Start{{/t}}
  49. </a>
  50. {{/if}}
  51. {{/if}}
  52. {{#if has_actions}}
  53. <div class="inline-block">
  54. <a class="al-trigger al-trigger-gray {{#unless id}}ui-state-disabled{{/unless}}" role="button" aria-haspopup="true"
  55. aria-owns="{{id}}-content-1" href="#">
  56. <i class="icon-settings"></i>
  57. <i class="icon-mini-arrow-down"></i>
  58. </a>
  59. <ul id="{{id}}-content-1" class="al-options" role="menu" aria-hidden="true" aria-expanded="false" aria-activedescendant="{{id}}-content-2">
  60. {{#if permissions.update}}
  61. <li role="presentation">
  62. <a href="#conference_{{ id }}"
  63. class="icon-edit edit_conference_link"
  64. id="{{id}}-content-2"
  65. role="menuitem"
  66. title="{{#t "edit"}}Edit{{/t}}">{{#t "edit"}}Edit{{/t}}</a>
  67. </li>
  68. {{/if}}
  69. {{#if permissions.delete}}
  70. <li role="presentation">
  71. <a href="{{ url }}"
  72. class="icon-trash delete_conference_link"
  73. id="{{id}}-content-3"
  74. role="menuitem"
  75. aria-label="{{#t "delete"}}Delete{{/t}}"
  76. title="{{#t "delete"}}Delete{{/t}}">{{#t "delete"}}Delete{{/t}}
  77. </a>
  78. </li>
  79. {{/if}}
  80. </ul>
  81. </div>
  82. {{/if}}
  83. </div>
  84. </div>
  85. </div>
  86. {{#if recording}}
  87. <div class="ig-sublist" id="conference-{{id}}" style="display: none;">
  88. <ul>
  89. {{#each recordings}}
  90. <li>
  91. <div class="ig-row">
  92. <div class="ig-row__layout">
  93. <div class="ig-info">
  94. <div class="ig-details">
  95. <a href="{{playback_url}}" target="_blank" class="ig-title">
  96. {{title}}
  97. </a>
  98. {{dateString created_at}}
  99. &nbsp;&#124;&nbsp;
  100. {{minutesToHM duration_minutes}}
  101. </div>
  102. </div>
  103. <div class="ig-button">
  104. <a class="btn btn-small" target="_blank" href="{{playback_url}}">
  105. {{#t "view"}}View{{/t}}
  106. </a>
  107. </div>
  108. </div>
  109. </div>
  110. </li>
  111. {{/each}}
  112. </ul
  113. </div>
  114. {{/if}}