sidebar.jade 24 KB

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