sidebar.jade 24 KB

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