sidebar.jade 25 KB

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