sidebar.jade 20 KB

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