sidebar.jade 19 KB

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