sidebar.jade 25 KB

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