sidebar.jade 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. template(name="sidebar")
  2. .board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}} {{#unless isVerticalScrollbars}}no-scrollbars{{/unless}}")
  3. //a.sidebar-tongue.js-toggle-sidebar(
  4. // class="{{#if isTongueHidden}}is-hidden{{/if}}",
  5. // title="{{showTongueTitle}}")
  6. // i.fa.fa-navicon
  7. .sidebar-actions
  8. .sidebar-shortcuts
  9. a.sidebar-btn.js-shortcuts(title="{{_ 'keyboard-shortcuts' }}")
  10. i.fa.fa-keyboard-o
  11. span {{_ 'keyboard-shortcuts' }}
  12. a.sidebar-btn.js-keyboard-shortcuts-toggle(
  13. title="{{#if isKeyboardShortcuts}}{{_ 'keyboard-shortcuts-enabled'}}{{else}}{{_ 'keyboard-shortcuts-disabled'}}{{/if}}")
  14. i.fa(class="fa-solid fa-{{#if isKeyboardShortcuts}}check-square-o{{else}}ban{{/if}}")
  15. a.sidebar-xmark.js-close-sidebar ✕
  16. .sidebar-content.js-board-sidebar-content
  17. //a.hide-btn.js-hide-sidebar
  18. // i.fa.fa-navicon
  19. unless isDefaultView
  20. h2
  21. a.fa.fa-chevron-left.js-back-home
  22. = getViewTitle
  23. if isOpen
  24. +Template.dynamic(template=getViewTemplate)
  25. template(name='homeSidebar')
  26. hr
  27. +membersWidget
  28. hr
  29. +labelsWidget
  30. ul#cards.label-text-hidden
  31. a.flex.js-toggle-minicard-label-text(title="{{_ 'hide-minicard-label-text'}}")
  32. span {{_ 'hide-minicard-label-text'}}
  33. b  
  34. .materialCheckBox(class="{{#if hiddenMinicardLabelText}}is-checked{{/if}}")
  35. ul
  36. a.flex.js-vertical-scrollbars-toggle(title="{{_ 'enable-vertical-scrollbars'}}")
  37. span {{_ 'enable-vertical-scrollbars'}}
  38. b  
  39. .materialCheckBox(class="{{#if isVerticalScrollbars}}is-checked{{/if}}")
  40. hr
  41. unless currentUser.isNoComments
  42. h3.activity-title
  43. i.fa.fa-comments-o
  44. | {{_ 'activities'}}
  45. .material-toggle-switch(title="{{_ 'show-activities'}}")
  46. if showActivities
  47. input.toggle-switch(type="checkbox" id="toggleShowActivitiesBoard" checked="checked")
  48. else
  49. input.toggle-switch(type="checkbox" id="toggleShowActivitiesBoard")
  50. label.toggle-label(for="toggleShowActivitiesBoard")
  51. +activities(mode="board")
  52. template(name="membersWidget")
  53. unless currentUser.isCommentOnly
  54. unless currentUser.isWorker
  55. h3
  56. a.board-header-btn.js-open-board-menu(title="{{_ 'boardMenuPopup-title'}}")
  57. i.board-header-btn-icon.fa.fa-cog
  58. | {{_ 'boardMenuPopup-title'}}
  59. hr
  60. h3
  61. i.fa.fa-users
  62. | {{_ 'members'}}
  63. +basicTabs(tabs=tabs)
  64. +tabContent(slug="people")
  65. unless currentUser.isWorker
  66. p.quiet
  67. .board-widget-content
  68. each currentBoard.activeMembers
  69. +userAvatar(userId=this.userId showStatus=true)
  70. if isSandstorm
  71. if currentUser.isBoardMember
  72. a.member.add-member.sandstorm-powerbox-request-identity(title="{{_ 'add-members'}}")
  73. i.fa.fa-plus
  74. else if currentUser.isBoardAdmin
  75. a.member.add-member.js-manage-board-members(title="{{_ 'add-members'}}")
  76. i.fa.fa-plus
  77. .clearfix
  78. if isInvited
  79. hr
  80. p
  81. i.fa.fa-exclamation-circle
  82. | {{_ 'just-invited'}}
  83. button.js-member-invite-accept.primary {{_ 'accept'}}
  84. button.js-member-invite-decline {{_ 'decline'}}
  85. +tabContent(slug='organizations')
  86. unless currentUser.isWorker
  87. p.quiet
  88. if AtLeastOneOrgWasCreated
  89. .board-widget.board-widget-members
  90. .board-widget-content
  91. +boardOrgGeneral
  92. .clearfix
  93. +tabContent(slug="teams")
  94. unless currentUser.isWorker
  95. p.quiet
  96. if AtLeastOneTeamWasCreated
  97. .board-widget.board-widget-members
  98. .board-widget-content
  99. +boardTeamGeneral
  100. .clearfix
  101. template(name="boardOrgGeneral")
  102. table
  103. tbody
  104. tr
  105. th
  106. | {{_ 'add-organizations'}}
  107. br
  108. i.addOrganizationsLabel
  109. | {{_ 'to-create-organizations-contact-admin'}}
  110. br
  111. i.addOrganizationsLabel
  112. | {{_ 'add-organizations-label'}}
  113. th
  114. if currentUser.isBoardAdmin
  115. a.member.orgOrTeamMember.add-member.js-manage-board-addOrg(title="{{_ 'add-members'}}")
  116. i.addTeamFaPlus.fa.fa-plus
  117. .divaddfaplusminus
  118. | {{_ 'add'}}
  119. each org in currentBoard.activeOrgs
  120. +boardOrgRow(orgId=org.orgId)
  121. template(name="boardTeamGeneral")
  122. table
  123. tbody
  124. tr
  125. th
  126. | {{_ 'add-teams'}}
  127. br
  128. i.addTeamsLabel
  129. | {{_ 'to-create-teams-contact-admin'}}
  130. br
  131. i.addTeamsLabel
  132. | {{_ 'add-teams-label'}}
  133. th
  134. if currentUser.isBoardAdmin
  135. a.member.orgOrTeamMember.add-member.js-manage-board-addTeam(title="{{_ 'add-members'}}")
  136. i.addTeamFaPlus.fa.fa-plus
  137. .divaddfaplusminus
  138. | {{_ 'add'}}
  139. each currentBoard.activeTeams
  140. +boardTeamRow(teamId=this.teamId)
  141. template(name="boardChangeColorPopup")
  142. .board-backgrounds-list.clearfix
  143. each backgroundColors
  144. .board-background-select.js-select-background
  145. span.background-box(class="board-color-{{this}}")
  146. span {{this}}
  147. if isSelected
  148. i.fa.fa-check
  149. template(name="boardChangeBackgroundImagePopup")
  150. form
  151. label
  152. | {{_ 'board-background-image-url'}}
  153. input.js-board-background-image-url(type="text" value="{{backgroundImageURL}}" autofocus)
  154. div.buttonsContainer
  155. input.primary.wide(type="submit" value="{{_ 'save'}}")
  156. br
  157. br
  158. br
  159. br
  160. br
  161. hr
  162. div
  163. button.js-remove-background-image.negate.wide.card-details-red.right {{_ 'unset-color'}}
  164. template(name="boardInfoOnMyBoardsPopup")
  165. form.board-info-on-my-boards
  166. h3 {{_ 'show-at-all-boards-page'}}
  167. unless currentSetting.hideCardCounterList
  168. div.check-div
  169. a.flex.js-field-has-cardcounterlist(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
  170. .materialCheckBox(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
  171. span
  172. i.fa.fa-sign-out
  173. | {{_ 'show-card-counter-per-list'}}
  174. unless currentSetting.hideBoardMemberList
  175. div.check-div
  176. a.flex.js-field-has-boardmemberlist(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
  177. .materialCheckBox(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
  178. span
  179. i.fa.fa-hourglass-start
  180. | {{_ 'show-board_members-avatar'}}
  181. template(name="boardCardSettingsPopup")
  182. form.board-card-settings
  183. h3 {{_ 'show-on-card'}}, {{_ 'show-on-minicard'}}
  184. div.check-div
  185. a.flex.js-field-has-receiveddate(class="{{#if allowsReceivedDate}}is-checked{{/if}}")
  186. .materialCheckBox(class="{{#if allowsReceivedDate}}is-checked{{/if}}")
  187. span
  188. i.fa.fa-sign-out
  189. | {{_ 'card-received'}}
  190. div.check-div
  191. a.flex.js-field-has-startdate(class="{{#if allowsStartDate}}is-checked{{/if}}")
  192. .materialCheckBox(class="{{#if allowsStartDate}}is-checked{{/if}}")
  193. span
  194. i.fa.fa-hourglass-start
  195. | {{_ 'card-start'}}
  196. div.check-div
  197. a.flex.js-field-has-duedate(class="{{#if allowsDueDate}}is-checked{{/if}}")
  198. .materialCheckBox(class="{{#if allowsDueDate}}is-checked{{/if}}")
  199. span
  200. i.fa.fa-sign-in
  201. | {{_ 'card-due'}}
  202. div.check-div
  203. a.flex.js-field-has-enddate(class="{{#if allowsEndDate}}is-checked{{/if}}")
  204. .materialCheckBox(class="{{#if allowsEndDate}}is-checked{{/if}}")
  205. span
  206. i.fa.fa-hourglass-end
  207. | {{_ 'card-end'}}
  208. div.check-div
  209. a.flex.js-field-has-members(class="{{#if allowsMembers}}is-checked{{/if}}")
  210. .materialCheckBox(class="{{#if allowsMembers}}is-checked{{/if}}")
  211. span
  212. i.fa.fa-users
  213. | {{_ 'members'}}
  214. div.check-div
  215. a.flex.js-field-has-creator(class="{{#if allowsCreator}}is-checked{{/if}}")
  216. .materialCheckBox(class="{{#if allowsCreator}}is-checked{{/if}}")
  217. span
  218. i.fa.fa-user
  219. | {{_ 'creator'}}
  220. div.check-div
  221. a.flex.js-field-has-creator-on-minicard(class="{{#if allowsCreatorOnMinicard}}is-checked{{/if}}")
  222. .materialCheckBox(class="{{#if allowsCreatorOnMinicard}}is-checked{{/if}}")
  223. span
  224. i.fa.fa-user
  225. | {{_ 'creator-on-minicard'}}
  226. div.check-div
  227. a.flex.js-field-has-assignee(class="{{#if allowsAssignee}}is-checked{{/if}}")
  228. .materialCheckBox(class="{{#if allowsAssignee}}is-checked{{/if}}")
  229. span
  230. i.fa.fa-user
  231. | {{_ 'assignee'}}
  232. div.check-div
  233. a.flex.js-field-has-assigned-by(class="{{#if allowsAssignedBy}}is-checked{{/if}}")
  234. .materialCheckBox(class="{{#if allowsAssignedBy}}is-checked{{/if}}")
  235. span
  236. i.fa.fa-shopping-cart
  237. | {{_ 'assigned-by'}}
  238. div.check-div
  239. a.flex.js-field-has-requested-by(class="{{#if allowsRequestedBy}}is-checked{{/if}}")
  240. .materialCheckBox(class="{{#if allowsRequestedBy}}is-checked{{/if}}")
  241. span
  242. i.fa.fa-user-plus
  243. | {{_ 'requested-by'}}
  244. div.check-div
  245. a.flex.js-field-has-card-sorting-by-number(class="{{#if allowsCardSortingByNumber}}is-checked{{/if}}")
  246. .materialCheckBox(class="{{#if allowsCardSortingByNumber}}is-checked{{/if}}")
  247. span
  248. i.fa.fa-sort
  249. | {{_ 'card-sorting-by-number'}}
  250. div.check-div
  251. a.flex.js-field-has-card-sorting-by-number-on-minicard(class="{{#if allowsCardSortingByNumberOnMinicard}}is-checked{{/if}}")
  252. .materialCheckBox(class="{{#if allowsCardSortingByNumberOnMinicard}}is-checked{{/if}}")
  253. span
  254. i.fa.fa-sort
  255. | {{_ 'card-sorting-by-number-on-minicard'}}
  256. div.check-div
  257. a.flex.js-field-has-card-show-lists(class="{{#if allowsShowLists}}is-checked{{/if}}")
  258. .materialCheckBox(class="{{#if allowsShowLists}}is-checked{{/if}}")
  259. span
  260. i.fa.fa-list
  261. | {{_ 'card-show-lists'}}
  262. div.check-div
  263. a.flex.js-field-has-labels(class="{{#if allowsLabels}}is-checked{{/if}}")
  264. .materialCheckBox(class="{{#if allowsLabels}}is-checked{{/if}}")
  265. span
  266. i.fa.fa-tags
  267. | {{_ 'labels'}}
  268. div.check-div
  269. a.flex.js-field-has-card-number(class="{{#if allowsCardNumber}}is-checked{{/if}}")
  270. .materialCheckBox(class="{{#if allowsCardNumber}}is-checked{{/if}}")
  271. span
  272. i.fa.fa-hashtag
  273. | {{_ 'card'}}
  274. | {{_ 'number'}}
  275. div.check-div
  276. a.flex.js-field-has-description-title(class="{{#if allowsDescriptionTitle}}is-checked{{/if}}")
  277. .materialCheckBox(class="{{#if allowsDescriptionTitle}}is-checked{{/if}}")
  278. span
  279. i.fa.fa-align-left
  280. | {{_ 'description'}}
  281. | {{_ 'title'}}
  282. div.check-div
  283. a.flex.js-field-has-description-text(class="{{#if allowsDescriptionText}}is-checked{{/if}}")
  284. .materialCheckBox(class="{{#if allowsDescriptionText}}is-checked{{/if}}")
  285. span
  286. i.fa.fa-align-left
  287. | {{_ 'description'}}
  288. | {{_ 'custom-field-text'}}
  289. div.check-div
  290. a.flex.js-field-has-description-text-on-minicard(class="{{#if allowsDescriptionTextOnMinicard}}is-checked{{/if}}")
  291. .materialCheckBox(class="{{#if allowsDescriptionTextOnMinicard}}is-checked{{/if}}")
  292. span
  293. i.fa.fa-align-left
  294. | {{_ 'description-on-minicard'}}
  295. div.check-div
  296. a.flex.js-field-has-checklists(class="{{#if allowsChecklists}}is-checked{{/if}}")
  297. .materialCheckBox(class="{{#if allowsChecklists}}is-checked{{/if}}")
  298. span
  299. i.fa.fa-check
  300. | {{_ 'checklists'}}
  301. div.check-div
  302. a.flex.js-field-has-subtasks(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  303. .materialCheckBox(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  304. span
  305. i.fa.fa-sitemap
  306. | {{_ 'subtasks'}}
  307. div.check-div
  308. a.flex.js-field-has-attachments(class="{{#if allowsAttachments}}is-checked{{/if}}")
  309. .materialCheckBox(class="{{#if allowsAttachments}}is-checked{{/if}}")
  310. span
  311. i.fa.fa-paperclip
  312. | {{_ 'attachments'}}
  313. div.check-div
  314. a.flex.js-field-has-badge-attachment-on-minicard(class="{{#if allowsBadgeAttachmentOnMinicard}}is-checked{{/if}}")
  315. .materialCheckBox(class="{{#if allowsBadgeAttachmentOnMinicard}}is-checked{{/if}}")
  316. span
  317. i.fa.fa-paperclip
  318. | {{_ 'badge-attachment-on-minicard'}}
  319. div.check-div
  320. a.flex.js-field-has-cover-attachment-on-minicard(class="{{#if allowsCoverAttachmentOnMinicard}}is-checked{{/if}}")
  321. .materialCheckBox(class="{{#if allowsCoverAttachmentOnMinicard}}is-checked{{/if}}")
  322. span
  323. i.fa.fa-book
  324. i.fa.fa-picture-o
  325. | {{_ 'cover-attachment-on-minicard'}}
  326. //div.check-div
  327. // a.flex.js-field-has-comments(class="{{#if allowsComments}}is-checked{{/if}}")
  328. // .materialCheckBox(class="{{#if allowsComments}}is-checked{{/if}}")
  329. // span
  330. // i.fa.fa-comment-o
  331. // | {{_ 'comment'}}
  332. //div.check-div
  333. // a.flex.js-field-has-activities(class="{{#if allowsActivities}}is-checked{{/if}}")
  334. // .materialCheckBox(class="{{#if allowsActivities}}is-checked{{/if}}")
  335. // span
  336. // i.fa.fa-history
  337. // | {{_ 'activities'}}
  338. template(name="boardSubtaskSettingsPopup")
  339. form.board-subtask-settings
  340. h3 {{_ 'show-parent-in-minicard'}}
  341. a#prefix-with-full-path.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'prefix-with-full-path'}}is-checked{{/if}}")
  342. .materialCheckBox(class="{{#if $eq presentParentTask 'prefix-with-full-path'}}is-checked{{/if}}")
  343. span {{_ 'prefix-with-full-path'}}
  344. a#prefix-with-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'prefix-with-parent'}}is-checked{{/if}}")
  345. .materialCheckBox(class="{{#if $eq presentParentTask 'prefix-with-parent'}}is-checked{{/if}}")
  346. span {{_ 'prefix-with-parent'}}
  347. a#subtext-with-full-path.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'subtext-with-full-path'}}is-checked{{/if}}")
  348. .materialCheckBox(class="{{#if $eq presentParentTask 'subtext-with-full-path'}}is-checked{{/if}}")
  349. span {{_ 'subtext-with-full-path'}}
  350. a#subtext-with-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'subtext-with-parent'}}is-checked{{/if}}")
  351. .materialCheckBox(class="{{#if $eq presentParentTask 'subtext-with-parent'}}is-checked{{/if}}")
  352. span {{_ 'subtext-with-parent'}}
  353. a#no-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'no-parent'}}is-checked{{/if}}")
  354. .materialCheckBox(class="{{#if $eq presentParentTask 'no-parent'}}is-checked{{/if}}")
  355. span {{_ 'no-parent'}}
  356. div
  357. hr
  358. div.check-div
  359. a.flex.js-field-has-subtasks(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  360. .materialCheckBox(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  361. span {{_ 'show-subtasks-field'}}
  362. label
  363. | {{_ 'deposit-subtasks-board'}}
  364. select.js-field-deposit-board(disabled="{{#unless allowsSubtasks}}disabled{{/unless}}")
  365. each boards
  366. if isBoardSelected
  367. option(value=_id selected="selected") {{title}}
  368. else
  369. option(value=_id) {{title}}
  370. if isNullBoardSelected
  371. option(value='null' selected="selected") {{_ 'custom-field-dropdown-none'}}
  372. else
  373. option(value='null') {{_ 'custom-field-dropdown-none'}}
  374. div
  375. hr
  376. label
  377. | {{_ 'deposit-subtasks-list'}}
  378. select.js-field-deposit-list(disabled="{{#unless hasLists}}disabled{{/unless}}")
  379. each lists
  380. if isListSelected
  381. option(value=_id selected="selected") {{title}}
  382. else
  383. option(value=_id) {{title}}
  384. template(name="chooseBoardSource")
  385. ul.pop-over-list
  386. li
  387. a(href="{{pathFor '/import/trello'}}") {{_ 'from-trello'}}
  388. li
  389. a(href="{{pathFor '/import/wekan'}}") {{_ 'from-wekan'}}
  390. li
  391. a(href="{{pathFor '/import/csv'}}") {{_ 'from-csv'}}
  392. template(name="archiveBoardPopup")
  393. p {{_ 'close-board-pop'}}
  394. button.js-confirm.negate.full(type="submit")
  395. i.fa.fa-archive
  396. | {{_ 'archive'}}
  397. template(name="outgoingWebhooksPopup")
  398. each integrations
  399. form.integration-form
  400. a.flex
  401. span {{_ 'disable-webhook'}}
  402. b  
  403. .materialCheckBox(class="{{#unless enabled}}is-checked{{/unless}}")
  404. input.js-outgoing-webhooks-title(placeholder="{{_ 'webhook-title'}}" type="text" name="title" value=title)
  405. input.js-outgoing-webhooks-url(type="text" name="url" value=url)
  406. input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" value=token name="token")
  407. select.js-outgoing-webhooks-type(name="type")
  408. each _type in types
  409. if($eq _type this.type)
  410. option(value=_type selected="selected") {{_ _type}}
  411. else
  412. option(value=_type) {{_ _type}}
  413. input(type="hidden" value=this.type name="_type")
  414. input(type="hidden" value=_id name="id")
  415. input.primary.wide(type="submit" value="{{_ 'save'}}")
  416. form.integration-form
  417. input.js-outgoing-webhooks-title(placeholder="{{_ 'webhook-title'}}" type="text" name="title")
  418. input.js-outgoing-webhooks-url(placeholder="{{_ 'URL' }}" type="text" name="url")
  419. input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" name="token")
  420. select.js-outgoing-webhooks-type(name="type")
  421. each _type in types
  422. option(value=_type) {{_ _type}}
  423. input.primary.wide(type="submit" value="{{_ 'create'}}")
  424. template(name="boardMenuPopup")
  425. ul.pop-over-list
  426. if currentUser.isBoardAdmin
  427. li
  428. a.js-open-rules-view(title="{{_ 'rules'}}")
  429. i.fa.fa-magic
  430. | {{_ 'rules'}}
  431. if currentUser.isBoardAdmin
  432. li
  433. a.js-custom-fields
  434. i.fa.fa-list-alt
  435. | {{_ 'custom-fields'}}
  436. li
  437. a.js-open-archives
  438. i.fa.fa-archive
  439. | {{_ 'archived-items'}}
  440. if currentUser.isBoardAdmin
  441. li
  442. a.js-change-board-color
  443. i.fa.fa-paint-brush
  444. | {{_ 'board-change-color'}}
  445. li
  446. a.js-change-background-image
  447. i.fa.fa-picture-o
  448. | {{_ 'board-change-background-image'}}
  449. //Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
  450. //if currentUser.isBoardAdmin
  451. // unless currentSetting.hideBoardMemberList
  452. // unless currentSetting.hideCardCounterList
  453. // li
  454. // a.js-board-info-on-my-boards(title="{{_ 'board-info-on-my-boards'}}")
  455. // i.fa.fa-id-card-o
  456. // | {{_ 'board-info-on-my-boards'}}
  457. hr
  458. ul.pop-over-list
  459. if withApi
  460. li
  461. a.js-export-board
  462. i.fa.fa-share-alt
  463. | {{_ 'export-board'}}
  464. if currentUser.isBoardAdmin
  465. li
  466. a.js-outgoing-webhooks
  467. i.fa.fa-globe
  468. | {{_ 'outgoing-webhooks'}}
  469. li
  470. a.js-card-settings
  471. i.fa.fa-id-card-o
  472. | {{_ 'card-settings'}}
  473. li
  474. a.js-subtask-settings
  475. i.fa.fa-sitemap
  476. | {{_ 'subtask-settings'}}
  477. unless currentBoard.isTemplatesBoard
  478. if currentUser.isBoardAdmin
  479. hr
  480. ul.pop-over-list
  481. li
  482. a.js-archive-board
  483. i.fa.fa-arrow-right
  484. i.fa.fa-archive
  485. | {{_ 'archive-board'}}
  486. template(name="exportBoard")
  487. ul.pop-over-list
  488. li
  489. a.download-json-link(href="{{exportUrl}}", download="{{exportJsonFilename}}")
  490. i.fa.fa-share-alt
  491. | {{_ 'export-board-json'}}
  492. li
  493. a(href="{{exportUrlExcel}}", download="{{exportFilenameExcel}}")
  494. i.fa.fa-share-alt
  495. | {{_ 'export-board-excel'}}
  496. li
  497. a(href="{{exportCsvUrl}}", download="{{exportCsvFilename}}")
  498. i.fa.fa-share-alt
  499. | {{_ 'export-board-csv'}} ,
  500. li
  501. a(href="{{exportScsvUrl}}", download="{{exportCsvFilename}}")
  502. i.fa.fa-share-alt
  503. | {{_ 'export-board-csv'}} ;
  504. li
  505. a(href="{{exportTsvUrl}}", download="{{exportTsvFilename}}")
  506. i.fa.fa-share-alt
  507. | {{_ 'export-board-tsv'}}
  508. li
  509. a.html-export-board
  510. i.fa.fa-archive
  511. | {{_ 'export-board-html'}}
  512. template(name="labelsWidget")
  513. .board-widget.board-widget-labels
  514. h3
  515. i.fa.fa-tags
  516. | {{_ 'labels'}}
  517. .board-widget-content
  518. each currentBoard.labels
  519. a.card-label(class="card-label-{{color}}"
  520. class="{{#if currentUser.isNotCommentOnly}}{{#if currentUser.isNotWorker}}js-label{{/if}}{{/if}}")
  521. span.card-label-name
  522. +viewer
  523. = name
  524. if currentUser.isBoardAdmin
  525. a.card-label.add-label.js-add-label(title="{{_ 'label-create'}}")
  526. i.fa.fa-plus
  527. template(name="memberPopup")
  528. .board-member-menu
  529. .miniprofile-header
  530. +userAvatar(userId=user._id showEdit=true)
  531. .info
  532. h3
  533. .js-profile= user.profile.fullname
  534. p.quiet @#{user.username}
  535. if isInvited
  536. p
  537. i.fa.fa-exclamation-circle
  538. | {{_ 'not-accepted-yet'}}
  539. ul.pop-over-list
  540. li
  541. a.js-filter-member {{_ 'filter-cards'}}
  542. if currentUser.isBoardAdmin
  543. li
  544. a.js-change-role
  545. | {{_ 'change-permissions'}}
  546. span.quiet (#{memberType})
  547. unless currentUser.isWorker
  548. li
  549. if $eq currentUser._id userId
  550. a.js-leave-member {{_ 'leave-board'}}
  551. else if currentUser.isBoardAdmin
  552. a.js-remove-member {{_ 'remove-from-board'}}
  553. template(name="removeMemberPopup")
  554. p {{_ 'remove-member-pop' name=user.profile.fullname username=user.username boardTitle=board.title}}
  555. button.js-confirm.negate.full(type="submit") {{_ 'remove-member'}}
  556. template(name="leaveBoardPopup")
  557. p {{_ 'leave-board-pop' boardTitle=board.title}}
  558. button.js-confirm.negate.full(type="submit") {{_ 'leave-board'}}
  559. template(name="addBoardOrgPopup")
  560. select.js-boardOrgs#jsBoardOrgs
  561. option(value="-1") {{_ 'organizations'}} :
  562. each value in orgsDatas
  563. option(value="{{value._id}}") {{value.orgDisplayName}}
  564. template(name="removeBoardOrgPopup")
  565. form
  566. input.hide#hideOrgId(type="text" value=org._id)
  567. label
  568. | {{_ 'remove-organization-from-board'}}
  569. br
  570. hr
  571. div.buttonsContainer
  572. input.primary.wide.leaveBoardBtn#leaveBoardBtn(type="submit" value="{{_ 'confirm-btn'}}")
  573. input.primary.wide.cancelLeaveBoardBtn#cancelLeaveBoardBtn(type="submit" value="{{_ 'cancel'}}")
  574. template(name="addBoardTeamPopup")
  575. select.js-boardTeams#jsBoardTeams
  576. option(value="-1") {{_ 'teams'}} :
  577. each value in teamsDatas
  578. option(value="{{value._id}}") {{_ value.teamDisplayName}}
  579. template(name="removeBoardTeamPopup")
  580. form
  581. input.hide#hideTeamId(type="text" value=team._id)
  582. label
  583. | {{_ 'remove-team-from-table'}}
  584. br
  585. hr
  586. div.buttonsContainer
  587. input.primary.wide.leaveBoardBtn#leaveBoardTeamBtn(type="submit" value="{{_ 'confirm-btn'}}")
  588. input.primary.wide.cancelLeaveBoardBtn#cancelLeaveBoardTeamBtn(type="submit" value="{{_ 'cancel'}}")
  589. template(name="addMemberPopup")
  590. .js-search-member
  591. +EasySearch.Input(index=searchIndex)
  592. if loading.get
  593. +spinner
  594. else if error.get
  595. .warning {{_ error.get}}
  596. else
  597. ul.pop-over-list
  598. +EasySearch.Each(index=searchIndex)
  599. li.item.js-member-item(class="{{#if isBoardMember}}disabled{{/if}}")
  600. a.name.js-select-member(title="{{profile.fullname}} ({{username}})")
  601. +userAvatar(userId=__originalId)
  602. span.full-name
  603. = profile.fullname
  604. | (<span class="username">{{username}}</span>)
  605. if isBoardMember
  606. .quiet ({{_ 'joined'}})
  607. +EasySearch.IfSearching(index=searchIndex)
  608. +spinner
  609. +EasySearch.IfNoResults(index=searchIndex)
  610. .manage-member-section
  611. p.quiet {{_ 'no-results'}}
  612. button.js-email-invite.primary.full {{_ 'email-invite'}}
  613. template(name="changePermissionsPopup")
  614. ul.pop-over-list
  615. li
  616. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-admin{{/if}}")
  617. | {{_ 'admin'}}
  618. if isAdmin
  619. i.fa.fa-check
  620. span.sub-name {{_ 'admin-desc'}}
  621. li
  622. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-normal{{/if}}")
  623. | {{_ 'normal'}}
  624. if isNormal
  625. i.fa.fa-check
  626. span.sub-name {{_ 'normal-desc'}}
  627. li
  628. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-no-comments{{/if}}")
  629. | {{_ 'no-comments'}}
  630. if isNoComments
  631. i.fa.fa-check
  632. span.sub-name {{_ 'no-comments-desc'}}
  633. li
  634. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-comment-only{{/if}}")
  635. | {{_ 'comment-only'}}
  636. if isCommentOnly
  637. i.fa.fa-check
  638. span.sub-name {{_ 'comment-only-desc'}}
  639. li
  640. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-worker{{/if}}")
  641. | {{_ 'worker'}}
  642. if isWorker
  643. i.fa.fa-check
  644. span.sub-name {{_ 'worker-desc'}}
  645. if isLastAdmin
  646. hr
  647. p.quiet.bottom {{_ 'last-admin-desc'}}