sidebar.jade 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. template(name="sidebar")
  2. .board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}}")
  3. //a.sidebar-tongue.js-toggle-sidebar(
  4. // class="{{#if isTongueHidden}}is-hidden{{/if}}",
  5. // title="{{showTongueTitle}}")
  6. // i.fa.fa-navicon
  7. .sidebar-shadow
  8. .sidebar-content.js-board-sidebar-content
  9. //a.hide-btn.js-hide-sidebar
  10. // i.fa.fa-navicon
  11. unless isDefaultView
  12. h2
  13. a.fa.fa-chevron-left.js-back-home
  14. = getViewTitle
  15. +Template.dynamic(template=getViewTemplate)
  16. template(name='homeSidebar')
  17. +membersWidget
  18. hr
  19. +labelsWidget
  20. ul#cards.label-text-hidden
  21. a.flex.js-toggle-minicard-label-text(title="{{_ 'hide-minicard-label-text'}}")
  22. span {{_ 'hide-minicard-label-text'}}
  23. b  
  24. .materialCheckBox(class="{{#if hiddenMinicardLabelText}}is-checked{{/if}}")
  25. hr
  26. unless currentUser.isNoComments
  27. h3
  28. i.fa.fa-comments-o
  29. | {{_ 'activities'}}
  30. +activities(mode="board")
  31. template(name="membersWidget")
  32. .board-widget.board-widget-members
  33. h3
  34. i.fa.fa-users
  35. | {{_ 'organizations'}}
  36. .board-widget-content
  37. +boardOrgGeneral
  38. .clearfix
  39. br
  40. hr
  41. .board-widget.board-widget-members
  42. h3
  43. i.fa.fa-users
  44. | {{_ 'teams'}}
  45. .board-widget-content
  46. +boardTeamGeneral
  47. .clearfix
  48. br
  49. hr
  50. .board-widget.board-widget-members
  51. h3
  52. i.fa.fa-users
  53. | {{_ 'members'}}
  54. .sidebar-shortcuts
  55. a.board-header-btn.js-shortcuts(title="{{_ 'keyboard-shortcuts' }}")
  56. i.fa.fa-keyboard-o
  57. span {{_ 'keyboard-shortcuts' }}
  58. unless currentUser.isCommentOnly
  59. unless currentUser.isWorker
  60. a.board-header-btn.js-open-board-menu(title="{{_ 'boardMenuPopup-title'}}").right
  61. i.board-header-btn-icon.fa.fa-cog
  62. .board-widget-content
  63. each currentBoard.activeMembers
  64. +userAvatar(userId=this.userId showStatus=true)
  65. if isSandstorm
  66. if currentUser.isBoardMember
  67. a.member.add-member.sandstorm-powerbox-request-identity(title="{{_ 'add-members'}}")
  68. i.fa.fa-plus
  69. else if currentUser.isBoardAdmin
  70. a.member.add-member.js-manage-board-members(title="{{_ 'add-members'}}")
  71. i.fa.fa-plus
  72. .clearfix
  73. if isInvited
  74. hr
  75. p
  76. i.fa.fa-exclamation-circle
  77. | {{_ 'just-invited'}}
  78. button.js-member-invite-accept.primary {{_ 'accept'}}
  79. button.js-member-invite-decline {{_ 'decline'}}
  80. template(name="boardOrgGeneral")
  81. table
  82. tbody
  83. tr
  84. th {{_ 'displayName'}}
  85. th
  86. if currentUser.isBoardAdmin
  87. a.member.orgOrTeamMember.add-member.js-manage-board-addOrg(title="{{_ 'add-members'}}")
  88. i.fa.fa-plus
  89. each org in currentBoard.activeOrgs
  90. +boardOrgRow(orgId=org.orgId)
  91. template(name="boardTeamGeneral")
  92. table
  93. tbody
  94. tr
  95. th {{_ 'displayName'}}
  96. th
  97. if currentUser.isBoardAdmin
  98. a.member.orgOrTeamMember.add-member.js-manage-board-addTeam(title="{{_ 'add-members'}}")
  99. i.fa.fa-plus
  100. each currentBoard.activeTeams
  101. +boardTeamRow(teamId=this.teamId)
  102. template(name="boardChangeColorPopup")
  103. .board-backgrounds-list.clearfix
  104. each backgroundColors
  105. .board-background-select.js-select-background
  106. span.background-box(class="board-color-{{this}}")
  107. span {{this}}
  108. if isSelected
  109. i.fa.fa-check
  110. template(name="boardCardSettingsPopup")
  111. form.board-card-settings
  112. h3 {{_ 'show-on-card'}}
  113. div.check-div
  114. a.flex.js-field-has-receiveddate(class="{{#if allowsReceivedDate}}is-checked{{/if}}")
  115. .materialCheckBox(class="{{#if allowsReceivedDate}}is-checked{{/if}}")
  116. span
  117. i.fa.fa-sign-out
  118. | {{_ 'card-received'}}
  119. div.check-div
  120. a.flex.js-field-has-startdate(class="{{#if allowsStartDate}}is-checked{{/if}}")
  121. .materialCheckBox(class="{{#if allowsStartDate}}is-checked{{/if}}")
  122. span
  123. i.fa.fa-hourglass-start
  124. | {{_ 'card-start'}}
  125. div.check-div
  126. a.flex.js-field-has-duedate(class="{{#if allowsDueDate}}is-checked{{/if}}")
  127. .materialCheckBox(class="{{#if allowsDueDate}}is-checked{{/if}}")
  128. span
  129. i.fa.fa-sign-in
  130. | {{_ 'card-due'}}
  131. div.check-div
  132. a.flex.js-field-has-enddate(class="{{#if allowsEndDate}}is-checked{{/if}}")
  133. .materialCheckBox(class="{{#if allowsEndDate}}is-checked{{/if}}")
  134. span
  135. i.fa.fa-hourglass-end
  136. | {{_ 'card-end'}}
  137. div.check-div
  138. a.flex.js-field-has-members(class="{{#if allowsMembers}}is-checked{{/if}}")
  139. .materialCheckBox(class="{{#if allowsMembers}}is-checked{{/if}}")
  140. span
  141. i.fa.fa-users
  142. | {{_ 'members'}}
  143. div.check-div
  144. a.flex.js-field-has-creator(class="{{#if allowsCreator}}is-checked{{/if}}")
  145. .materialCheckBox(class="{{#if allowsCreator}}is-checked{{/if}}")
  146. span
  147. i.fa.fa-user
  148. | {{_ 'creator'}}
  149. div.check-div
  150. a.flex.js-field-has-assignee(class="{{#if allowsAssignee}}is-checked{{/if}}")
  151. .materialCheckBox(class="{{#if allowsAssignee}}is-checked{{/if}}")
  152. span
  153. i.fa.fa-user
  154. | {{_ 'assignee'}}
  155. div.check-div
  156. a.flex.js-field-has-assigned-by(class="{{#if allowsAssignedBy}}is-checked{{/if}}")
  157. .materialCheckBox(class="{{#if allowsAssignedBy}}is-checked{{/if}}")
  158. span
  159. i.fa.fa-shopping-cart
  160. | {{_ 'assigned-by'}}
  161. div.check-div
  162. a.flex.js-field-has-requested-by(class="{{#if allowsRequestedBy}}is-checked{{/if}}")
  163. .materialCheckBox(class="{{#if allowsRequestedBy}}is-checked{{/if}}")
  164. span
  165. i.fa.fa-user-plus
  166. | {{_ 'requested-by'}}
  167. div.check-div
  168. a.flex.js-field-has-card-sorting-by-number(class="{{#if allowsCardSortingByNumber}}is-checked{{/if}}")
  169. .materialCheckBox(class="{{#if allowsCardSortingByNumber}}is-checked{{/if}}")
  170. span
  171. i.fa.fa-sort
  172. | {{_ 'card-sorting-by-number'}}
  173. div.check-div
  174. a.flex.js-field-has-labels(class="{{#if allowsLabels}}is-checked{{/if}}")
  175. .materialCheckBox(class="{{#if allowsLabels}}is-checked{{/if}}")
  176. span
  177. i.fa.fa-tags
  178. | {{_ 'labels'}}
  179. div.check-div
  180. a.flex.js-field-has-description-title(class="{{#if allowsDescriptionTitle}}is-checked{{/if}}")
  181. .materialCheckBox(class="{{#if allowsDescriptionTitle}}is-checked{{/if}}")
  182. span
  183. i.fa.fa-align-left
  184. | {{_ 'description'}}
  185. | {{_ 'title'}}
  186. div.check-div
  187. a.flex.js-field-has-description-text(class="{{#if allowsDescriptionText}}is-checked{{/if}}")
  188. .materialCheckBox(class="{{#if allowsDescriptionText}}is-checked{{/if}}")
  189. span
  190. i.fa.fa-align-left
  191. | {{_ 'description'}}
  192. | {{_ 'custom-field-text'}}
  193. div.check-div
  194. a.flex.js-field-has-checklists(class="{{#if allowsChecklists}}is-checked{{/if}}")
  195. .materialCheckBox(class="{{#if allowsChecklists}}is-checked{{/if}}")
  196. span
  197. i.fa.fa-check
  198. | {{_ 'checklists'}}
  199. div.check-div
  200. a.flex.js-field-has-subtasks(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  201. .materialCheckBox(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  202. span
  203. i.fa.fa-sitemap
  204. | {{_ 'subtasks'}}
  205. div.check-div
  206. a.flex.js-field-has-attachments(class="{{#if allowsAttachments}}is-checked{{/if}}")
  207. .materialCheckBox(class="{{#if allowsAttachments}}is-checked{{/if}}")
  208. span
  209. i.fa.fa-paperclip
  210. | {{_ 'attachments'}}
  211. //div.check-div
  212. // a.flex.js-field-has-comments(class="{{#if allowsComments}}is-checked{{/if}}")
  213. // .materialCheckBox(class="{{#if allowsComments}}is-checked{{/if}}")
  214. // span
  215. // i.fa.fa-comment-o
  216. // | {{_ 'comment'}}
  217. //div.check-div
  218. // a.flex.js-field-has-activities(class="{{#if allowsActivities}}is-checked{{/if}}")
  219. // .materialCheckBox(class="{{#if allowsActivities}}is-checked{{/if}}")
  220. // span
  221. // i.fa.fa-history
  222. // | {{_ 'activities'}}
  223. template(name="boardSubtaskSettingsPopup")
  224. form.board-subtask-settings
  225. h3 {{_ 'show-parent-in-minicard'}}
  226. a#prefix-with-full-path.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'prefix-with-full-path'}}is-checked{{/if}}")
  227. .materialCheckBox(class="{{#if $eq presentParentTask 'prefix-with-full-path'}}is-checked{{/if}}")
  228. span {{_ 'prefix-with-full-path'}}
  229. a#prefix-with-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'prefix-with-parent'}}is-checked{{/if}}")
  230. .materialCheckBox(class="{{#if $eq presentParentTask 'prefix-with-parent'}}is-checked{{/if}}")
  231. span {{_ 'prefix-with-parent'}}
  232. a#subtext-with-full-path.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'subtext-with-full-path'}}is-checked{{/if}}")
  233. .materialCheckBox(class="{{#if $eq presentParentTask 'subtext-with-full-path'}}is-checked{{/if}}")
  234. span {{_ 'subtext-with-full-path'}}
  235. a#subtext-with-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'subtext-with-parent'}}is-checked{{/if}}")
  236. .materialCheckBox(class="{{#if $eq presentParentTask 'subtext-with-parent'}}is-checked{{/if}}")
  237. span {{_ 'subtext-with-parent'}}
  238. a#no-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'no-parent'}}is-checked{{/if}}")
  239. .materialCheckBox(class="{{#if $eq presentParentTask 'no-parent'}}is-checked{{/if}}")
  240. span {{_ 'no-parent'}}
  241. div
  242. hr
  243. div.check-div
  244. a.flex.js-field-has-subtasks(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  245. .materialCheckBox(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  246. span {{_ 'show-subtasks-field'}}
  247. label
  248. | {{_ 'deposit-subtasks-board'}}
  249. select.js-field-deposit-board(disabled="{{#unless allowsSubtasks}}disabled{{/unless}}")
  250. each boards
  251. if isBoardSelected
  252. option(value=_id selected="selected") {{title}}
  253. else
  254. option(value=_id) {{title}}
  255. if isNullBoardSelected
  256. option(value='null' selected="selected") {{_ 'custom-field-dropdown-none'}}
  257. else
  258. option(value='null') {{_ 'custom-field-dropdown-none'}}
  259. div
  260. hr
  261. label
  262. | {{_ 'deposit-subtasks-list'}}
  263. select.js-field-deposit-list(disabled="{{#unless hasLists}}disabled{{/unless}}")
  264. each lists
  265. if isListSelected
  266. option(value=_id selected="selected") {{title}}
  267. else
  268. option(value=_id) {{title}}
  269. template(name="chooseBoardSource")
  270. ul.pop-over-list
  271. li
  272. a(href="{{pathFor '/import/trello'}}") {{_ 'from-trello'}}
  273. li
  274. a(href="{{pathFor '/import/wekan'}}") {{_ 'from-wekan'}}
  275. li
  276. a(href="{{pathFor '/import/csv'}}") {{_ 'from-csv'}}
  277. template(name="archiveBoardPopup")
  278. p {{_ 'close-board-pop'}}
  279. button.js-confirm.negate.full(type="submit")
  280. i.fa.fa-archive
  281. | {{_ 'archive'}}
  282. template(name="outgoingWebhooksPopup")
  283. each integrations
  284. form.integration-form
  285. a.flex
  286. span {{_ 'disable-webhook'}}
  287. b  
  288. .materialCheckBox(class="{{#unless enabled}}is-checked{{/unless}}")
  289. input.js-outgoing-webhooks-title(placeholder="{{_ 'webhook-title'}}" type="text" name="title" value=title)
  290. input.js-outgoing-webhooks-url(type="text" name="url" value=url)
  291. input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" value=token name="token")
  292. select.js-outgoing-webhooks-type(name="type")
  293. each _type in types
  294. if($eq _type this.type)
  295. option(value=_type selected="selected") {{_ _type}}
  296. else
  297. option(value=_type) {{_ _type}}
  298. input(type="hidden" value=this.type name="_type")
  299. input(type="hidden" value=_id name="id")
  300. input.primary.wide(type="submit" value="{{_ 'save'}}")
  301. form.integration-form
  302. input.js-outgoing-webhooks-title(placeholder="{{_ 'webhook-title'}}" type="text" name="title")
  303. input.js-outgoing-webhooks-url(placeholder="{{_ 'URL' }}" type="text" name="url")
  304. input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" name="token")
  305. select.js-outgoing-webhooks-type(name="type")
  306. each _type in types
  307. option(value=_type) {{_ _type}}
  308. input.primary.wide(type="submit" value="{{_ 'create'}}")
  309. template(name="boardMenuPopup")
  310. ul.pop-over-list
  311. if currentUser.isBoardAdmin
  312. li
  313. a.js-open-rules-view(title="{{_ 'rules'}}")
  314. i.fa.fa-magic
  315. | {{_ 'rules'}}
  316. if currentUser.isBoardAdmin
  317. li
  318. a.js-custom-fields
  319. i.fa.fa-list-alt
  320. | {{_ 'custom-fields'}}
  321. li
  322. a.js-open-archives
  323. i.fa.fa-archive
  324. | {{_ 'archived-items'}}
  325. if currentUser.isBoardAdmin
  326. li
  327. a.js-change-board-color
  328. i.fa.fa-paint-brush
  329. | {{_ 'board-change-color'}}
  330. hr
  331. ul.pop-over-list
  332. if withApi
  333. li
  334. a.js-export-board
  335. i.fa.fa-share-alt
  336. | {{_ 'export-board'}}
  337. if currentUser.isBoardAdmin
  338. li
  339. a.js-outgoing-webhooks
  340. i.fa.fa-globe
  341. | {{_ 'outgoing-webhooks'}}
  342. li
  343. a.js-card-settings
  344. i.fa.fa-id-card-o
  345. | {{_ 'card-settings'}}
  346. li
  347. a.js-subtask-settings
  348. i.fa.fa-sitemap
  349. | {{_ 'subtask-settings'}}
  350. unless currentBoard.isTemplatesBoard
  351. if currentUser.isBoardAdmin
  352. hr
  353. ul.pop-over-list
  354. li
  355. a.js-archive-board
  356. i.fa.fa-arrow-right
  357. i.fa.fa-archive
  358. | {{_ 'archive-board'}}
  359. template(name="exportBoard")
  360. ul.pop-over-list
  361. li
  362. a.download-json-link(href="{{exportUrl}}", download="{{exportJsonFilename}}")
  363. i.fa.fa-share-alt
  364. | {{_ 'export-board-json'}}
  365. li
  366. a(href="{{exportUrlExcel}}", download="{{exportFilenameExcel}}")
  367. i.fa.fa-share-alt
  368. | {{_ 'export-board-excel'}}
  369. li
  370. a(href="{{exportCsvUrl}}", download="{{exportCsvFilename}}")
  371. i.fa.fa-share-alt
  372. | {{_ 'export-board-csv'}}
  373. li
  374. a(href="{{exportTsvUrl}}", download="{{exportTsvFilename}}")
  375. i.fa.fa-share-alt
  376. | {{_ 'export-board-tsv'}}
  377. li
  378. a.html-export-board
  379. i.fa.fa-archive
  380. | {{_ 'export-board-html'}}
  381. template(name="labelsWidget")
  382. .board-widget.board-widget-labels
  383. h3
  384. i.fa.fa-tags
  385. | {{_ 'labels'}}
  386. .board-widget-content
  387. each currentBoard.labels
  388. a.card-label(class="card-label-{{color}}"
  389. class="{{#if currentUser.isNotCommentOnly}}{{#if currentUser.isNotWorker}}js-label{{/if}}{{/if}}")
  390. span.card-label-name
  391. +viewer
  392. = name
  393. if currentUser.isBoardAdmin
  394. a.card-label.add-label.js-add-label(title="{{_ 'label-create'}}")
  395. i.fa.fa-plus
  396. template(name="memberPopup")
  397. .board-member-menu
  398. .miniprofile-header
  399. +userAvatar(userId=user._id showEdit=true)
  400. .info
  401. h3
  402. .js-profile= user.profile.fullname
  403. p.quiet @#{user.username}
  404. if isInvited
  405. p
  406. i.fa.fa-exclamation-circle
  407. | {{_ 'not-accepted-yet'}}
  408. ul.pop-over-list
  409. li
  410. a.js-filter-member {{_ 'filter-cards'}}
  411. if currentUser.isBoardAdmin
  412. li
  413. a.js-change-role
  414. | {{_ 'change-permissions'}}
  415. span.quiet (#{memberType})
  416. unless currentUser.isWorker
  417. li
  418. if $eq currentUser._id userId
  419. a.js-leave-member {{_ 'leave-board'}}
  420. else if currentUser.isBoardAdmin
  421. a.js-remove-member {{_ 'remove-from-board'}}
  422. template(name="removeMemberPopup")
  423. p {{_ 'remove-member-pop' name=user.profile.fullname username=user.username boardTitle=board.title}}
  424. button.js-confirm.negate.full(type="submit") {{_ 'remove-member'}}
  425. template(name="leaveBoardPopup")
  426. p {{_ 'leave-board-pop' boardTitle=board.title}}
  427. button.js-confirm.negate.full(type="submit") {{_ 'leave-board'}}
  428. template(name="addBoardOrgPopup")
  429. select.js-boardOrgs#jsBoardOrgs
  430. option(value="-1") {{_ 'organizations'}} :
  431. each value in orgsDatas
  432. option(value="{{value._id}}") {{_ value.orgDisplayName}}
  433. template(name="removeBoardOrgPopup")
  434. form
  435. input.hide#hideOrgId(type="text" value=org._id)
  436. label
  437. | {{_ 'leave-board'}} ?
  438. br
  439. hr
  440. div.buttonsContainer
  441. input.primary.wide.leaveBoardBtn#leaveBoardBtn(type="submit" value="{{_ 'leave-board'}}")
  442. input.primary.wide.cancelLeaveBoardBtn#cancelLeaveBoardBtn(type="submit" value="{{_ 'Cancel'}}")
  443. template(name="addBoardTeamPopup")
  444. select.js-boardTeams#jsBoardTeams
  445. option(value="-1") {{_ 'teams'}} :
  446. each value in teamsDatas
  447. option(value="{{value._id}}") {{_ value.teamDisplayName}}
  448. template(name="removeBoardTeamPopup")
  449. form
  450. input.hide#hideTeamId(type="text" value=team._id)
  451. label
  452. | {{_ 'leave-board'}} ?
  453. br
  454. hr
  455. div.buttonsContainer
  456. input.primary.wide.leaveBoardBtn#leaveBoardTeamBtn(type="submit" value="{{_ 'leave-board'}}")
  457. input.primary.wide.cancelLeaveBoardBtn#cancelLeaveBoardTeamBtn(type="submit" value="{{_ 'Cancel'}}")
  458. template(name="addMemberPopup")
  459. .js-search-member
  460. +esInput(index="users")
  461. if loading.get
  462. +spinner
  463. else if error.get
  464. .warning {{_ error.get}}
  465. else
  466. ul.pop-over-list
  467. +esEach(index="users")
  468. li.item.js-member-item(class="{{#if isBoardMember}}disabled{{/if}}")
  469. a.name.js-select-member(title="{{profile.fullname}} ({{username}})")
  470. +userAvatar(userId=_id esSearch=true)
  471. span.full-name
  472. = profile.fullname
  473. | (<span class="username">{{username}}</span>)
  474. if isBoardMember
  475. .quiet ({{_ 'joined'}})
  476. +ifEsIsSearching(index='users')
  477. +spinner
  478. +ifEsHasNoResults(index="users")
  479. .manage-member-section
  480. p.quiet {{_ 'no-results'}}
  481. button.js-email-invite.primary.full {{_ 'email-invite'}}
  482. template(name="changePermissionsPopup")
  483. ul.pop-over-list
  484. li
  485. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-admin{{/if}}")
  486. | {{_ 'admin'}}
  487. if isAdmin
  488. i.fa.fa-check
  489. span.sub-name {{_ 'admin-desc'}}
  490. li
  491. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-normal{{/if}}")
  492. | {{_ 'normal'}}
  493. if isNormal
  494. i.fa.fa-check
  495. span.sub-name {{_ 'normal-desc'}}
  496. li
  497. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-no-comments{{/if}}")
  498. | {{_ 'no-comments'}}
  499. if isNoComments
  500. i.fa.fa-check
  501. span.sub-name {{_ 'no-comments-desc'}}
  502. li
  503. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-comment-only{{/if}}")
  504. | {{_ 'comment-only'}}
  505. if isCommentOnly
  506. i.fa.fa-check
  507. span.sub-name {{_ 'comment-only-desc'}}
  508. li
  509. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-worker{{/if}}")
  510. | {{_ 'worker'}}
  511. if isWorker
  512. i.fa.fa-check
  513. span.sub-name {{_ 'worker-desc'}}
  514. if isLastAdmin
  515. hr
  516. p.quiet.bottom {{_ 'last-admin-desc'}}