sidebar.jade 25 KB

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