Files
wekan/client/components/lists/listHeader.jade
T
Lauri Ojansivu fd5c207006 Lists split into Doing and Done.
A list can be split into Doing and Done (models/lib/boardFlowPolicies.js):
a card of it marked Done here, with the circle at its minicard's corner,
waits dimmed and edged green to be pulled into the next list, and the
list header counts Doing and Done. The mark names the list it was made in
(card.flow.splitDoneListId, written by setCardFlow from the card's own
list, and only in a split list), so a card moved on is in Doing of its new
list without anybody clearing it.

A board admin allows split lists in Board Settings / List, and each list
is split from its menu. Admin Panel / Settings / Visibility / Features /
Split lists hides it on every board. Translated in every language.

Thanks to xet7 !
2026-11-20 09:16:10 +02:00

696 lines
31 KiB
Plaintext

template(name="listHeader")
//- Same rule as the minicard: the list header is the LIST's drag source only
//- when drag handles are OFF, so only then must it opt out of dragscroll.
.list-header.js-list-header(
class="{{#unless isTouchScreenOrShowDesktopDragHandles}}nodragscroll{{/unless}}"
class="{{#if limitToShowCardsCount}}list-header-card-count{{/if}}"
class=colorClass
style=colorStyle)
+structuralSelectionCheckbox(kind="list" id=_id label=title)
+scrumMetadata(kind="list" record=this)
//- #459: keyboard/screen-reader list reordering (visually hidden, focusable).
.list-move-buttons.sr-only
a.js-list-move-left(href="#" role="button" aria-label="{{_ 'move-list-left'}}") {{_ 'move-list-left'}}
a.js-list-move-right(href="#" role="button" aria-label="{{_ 'move-list-right'}}") {{_ 'move-list-right'}}
+inlinedForm
+editListTitleForm
else
if isMiniScreen
if isCurrentList
a.list-header-left-icon.js-unselect-list(title="{{_ 'go-back'}}")
i.fa.fa-caret-left
else
if collapsed
if showCardsCountForList cardsCountWhole
br
span.cardCount {{cardsCount containerSwimlaneId}}
if isMiniScreen
h2.list-header-name(
title="{{ displayDate modifiedAt 'LLL' }}"
class="{{#if currentUser.isBoardMember}}{{#unless currentUser.isCommentOnly}}{{#unless currentUser.isWorker}}js-open-inlined-form is-editable{{/unless}}{{/unless}}{{/if}}"
class="{{#if exceededWipLimitGroup}}highlight{{/if}}")
+viewer
= title
if wipLimit.enabled
| (
span(class="{{#if exceededWipLimit}}highlight{{/if}}") {{cardsCountWhole}}
|/#{wipLimit.value})
+listFlowMarks
if showCardsCountForList cardsCountWhole
span.cardCount {{cardsCount containerSwimlaneId}} {{cardsCountForListIsOne cardsCountWhole}}
if hasNumberFieldsSum
|  
span.list-sum-badge(title="{{numberFieldsSumTooltip containerSwimlaneId}}") ∑ {{numberFieldsSum containerSwimlaneId}}
if hasDateFieldsRange
|  
span.list-sum-badge(title="{{dateFieldsRangeTooltip containerSwimlaneId}}") {{dateFieldsRangeLabel containerSwimlaneId}}
else
if collapsed
//- Collapsed: unchanged from before - the caret stays a sibling
//- BEFORE .list-rotated, so its position:absolute (list.css)
//- resolves against .list-header as it always has. .list-rotated
//- itself is position:relative (for its 90deg text rotation), so
//- nesting the caret inside it here would reposition the caret
//- relative to that small rotated box instead - see the expanded
//- branch below for why nesting is right for THAT case and not
//- this one.
a.list-collapse-indicator.js-collapse(title="{{_ 'uncollapse'}}" aria-label="{{_ 'uncollapse'}}")
i.fa.fa-caret-right
div.list-rotated
h2.list-header-name(title="{{ displayDate modifiedAt 'LLL' }}" class="{{#if exceededWipLimitGroup}}highlight{{/if}}")
+viewer
= title
if wipLimit.enabled
| (
span(class="{{#if exceededWipLimit}}highlight{{/if}}") {{cardsCountWhole}}
|/#{wipLimit.value})
else
//- #6675: a sibling BEFORE the title, same as the collapsed branch
//- - NOT nested inside h2.list-header-name (that was tried and
//- reverted: the h2 carries js-open-inlined-form/is-editable, so a
//- click on the caret bubbled up and opened the rename form
//- instead of collapsing the list). list.css floats it to the
//- START of the header's top content line - the same line
//- .list-header-menu (the hamburger/+ icons) floats to the END of
//- - so it lands at the header's top corner, level with those
//- icons, rather than wherever plain in-flow order used to put a
//- static element (between the card count and them).
a.list-collapse-indicator.js-collapse(title="{{_ 'collapse'}}" aria-label="{{_ 'collapse'}}")
i.fa.fa-caret-down
div
h2.list-header-name(
title="{{ displayDate modifiedAt 'LLL' }}"
class="{{#if currentUser.isBoardMember}}{{#unless currentUser.isCommentOnly}}{{#unless currentUser.isWorker}}js-open-inlined-form is-editable{{/unless}}{{/unless}}{{/if}}"
class="{{#if exceededWipLimitGroup}}highlight{{/if}}")
+viewer
= title
if wipLimit.enabled
| (
span(class="{{#if exceededWipLimit}}highlight{{/if}}") {{cardsCountWhole}}
|/#{wipLimit.value})
unless collapsed
//- List policy and commitment point (listFlowPolicies.jade).
+listFlowMarks
if showCardsCountForList cardsCountWhole
span.cardCount {{cardsCount containerSwimlaneId}} {{cardsCountForListIsOne cardsCountWhole}}
if hasNumberFieldsSum
|  
span.list-sum-badge(title="{{numberFieldsSumTooltip containerSwimlaneId}}") ∑ {{numberFieldsSum containerSwimlaneId}}
if hasDateFieldsRange
|  
span.list-sum-badge(title="{{dateFieldsRangeTooltip containerSwimlaneId}}") {{dateFieldsRangeLabel containerSwimlaneId}}
if isMiniScreen
if isCurrentList
if isWatching
i.list-header-watch-icon i.fa.fa-eye
div.list-header-menu
unless currentUser.isCommentOnly
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
if canSeeAddCard
a.js-add-card.list-header-plus-top(title="{{_ 'add-card-to-top-of-list'}}")
i.fa.fa-plus
a.js-open-list-menu(title="{{_ 'listActionPopup-title'}}")
i.fa.fa-bars
else
a.list-header-menu-icon.js-select-list(title="{{_ 'open'}}")
i.fa.fa-caret-right
//- The add-list + sits BETWEEN the caret and the drag handle, so mobile
//- mode needs no "Add List" row of its own. Same class, same handler and
//- the same Font Awesome icon as the desktop list header uses, so the two
//- are one button in two layouts rather than two lookalikes.
unless currentUser.isCommentOnly
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
unless currentUser.isWorker
a.js-add-list-here.list-header-add-list(title="{{_ 'add-list'}}")
i.fa.fa-plus-square-o
unless currentUser.isWorker
if isTouchScreenOrShowDesktopDragHandles
a.list-header-handle.handle.nodragscroll.js-list-handle(title="{{_ 'moveListPopup-title'}}")
i.fa.fa-arrows
else if currentUser.isBoardMember
if isWatching
i.list-header-watch-icon i.fa.fa-eye
unless currentUser.isCommentOnly
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
if isTouchScreenOrShowDesktopDragHandles
a.list-header-handle-desktop.handle.nodragscroll.js-list-handle(title="{{_ 'moveListPopup-title'}}")
i.fa.fa-arrows
unless collapsed
div.list-header-menu
unless currentUser.isCommentOnly
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
//if isBoardAdmin
//
a.fa.js-list-star.list-header-plus-top(class="fa-star{{#unless starred}}-o{{/unless}}")
if isTouchScreenOrShowDesktopDragHandles
a.list-header-handle-desktop.handle.nodragscroll.js-list-handle(title="{{_ 'moveListPopup-title'}}")
i.fa.fa-arrows
if canSeeAddCard
a.js-add-card.list-header-plus-top(title="{{_ 'add-card-to-top-of-list'}}")
i.fa.fa-plus
a.js-open-list-menu(title="{{_ 'listActionPopup-title'}}")
i.fa.fa-bars
//- #6465: far-right add-list button. Opens the inline Add List
//- composer AFTER this list (right in LTR / left in RTL).
a.js-add-list-here.list-header-plus-top(title="{{_ 'add-list'}}")
i.fa.fa-plus-square-o
template(name="editListTitleForm")
.list-composer
textarea.list-name-input.full-line(rows="2" autofocus dir="auto") {{title}}
.edit-controls.clearfix
button.primary.confirm(type="submit") {{_ 'save'}}
a.js-close-inlined-form(title="{{_ 'close'}}")
i.fa.fa-times-thin
template(name="listActionPopup")
//- Grouped under headings by what the entries act on (2026-11-20); every
entry keeps its own condition, and a heading sits inside the same condition
as its group.
//- Copy link, FIRST and above every permission check - see the swimlane
popup: copying an address is reading, not editing.
models/lib/boardItemUrl.js, docs/Features/General/Board-Item-Links.md
h4.menu-group-heading {{_ 'menu-group-share'}}
ul.pop-over-list
li: a.js-copy-list-link
i.fa.fa-link
span
| {{_ 'copy-link-to-clipboard'}}
span.copied-tooltip {{_ 'copied'}}
//- #1172: star/unstar this list - same toggle pattern as the board star,
reused as a reading-like action above the edit permission checks.
ul.pop-over-list
li: a.js-star-list-item
i.fa(class="{{#if isListItemStarred}}fa-star{{else}}fa-star-o{{/if}}")
span
| {{#if isListItemStarred}}{{_ 'unstar-item'}}{{else}}{{_ 'star-item'}}{{/if}}
//- History of this list and its cards. Reading, like the link above it, so it
is not behind the edit permissions below.
ul.pop-over-list
li: a.js-list-history
i.fa.fa-history
span
| {{_ 'history'}}
hr
//- #1173: exporting a list is the board export restricted to it. Reading, like
the link above it, so it is not behind the edit permissions below. The menu
already says what it is about, so the rows are named "Export" and "Import"
and not "Export list" - the noun was in the heading above them either way.
Import WRITES, so it is offered only to somebody who may change the board;
`canImportIntoBoard` is the same question the popup itself asks
(client/components/boards/exportScope.js).
h4.menu-group-heading {{_ 'menu-group-export'}}
ul.pop-over-list
li: a.js-export-list
i.fa.fa-upload
span {{_ 'export'}}
if canImportIntoBoard
li: a.js-import-list
i.fa.fa-download
span {{_ 'import'}}
hr
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
h4.menu-group-heading {{_ 'add'}}
ul.pop-over-list
li
a.js-add-card.list-header-plus-top
i.fa.fa-plus
i.fa.fa-arrow-up
| {{_ 'add-card-to-top-of-list'}}
li
a.js-add-card.list-header-plus-bottom
i.fa.fa-plus
i.fa.fa-arrow-down
| {{_ 'add-card-to-bottom-of-list'}}
hr
ul.pop-over-list
li
a.js-add-list
i.fa.fa-plus
| {{_ 'add-list'}}
//- "Set width" was here. List width can still be dragged from the resize
handle between lists (unless Board Settings / List has locked that), and
the fixed-width value it used to set is now a board-wide admin toggle
there too - a menu entry for the same thing was a second place to look
for it. client/components/sidebar/sidebar.jade
h4.menu-group-heading {{_ 'watch'}}
ul.pop-over-list
li
a.js-toggle-watch-list
if isWatching
i.fa.fa-eye
| {{_ 'unwatch'}}
else
i.fa.fa-eye-slash
| {{_ 'watch'}}
unless currentUser.isCommentOnly
unless currentUser.isReadOnly
unless currentUser.isReadAssignedOnly
h4.menu-group-heading {{_ 'edit'}}
unless currentUser.isWorker
ul.pop-over-list
li
a.js-set-color-list
i.fa.fa-paint-brush
| {{_ 'set-color-list'}}
ul.pop-over-list
if cards.length
li
a.js-select-cards
i.fa.fa-select-square
| {{_ 'list-select-cards'}}
if mayWriteList
li
a.js-archive-list-cards
i.fa.fa-archive
| {{_ 'list-archive-cards'}}
h4.menu-group-heading {{_ 'settings'}}
if currentUser.isBoardAdmin
ul.pop-over-list
li
a.js-set-wip-limit
i.fa.fa-ban
| {{#if isWipLimitEnabled }}{{_ 'edit-wip-limit'}}{{else}}{{_ 'setWipLimitPopup-title'}}{{/if}}
li
a.js-list-permissions
i.fa.fa-lock
| {{_ 'listPermissionsPopup-title'}}
//- The list's policy, when the board shows list policies
(listFlowPolicies.jade); every member who may edit the list.
if showsListPolicies
ul.pop-over-list
li
a.js-list-policy
i.fa.fa-gavel
| {{_ 'list-policy'}}
//- Split into Doing and Done (listFlowPolicies.jade), when the board
allows split lists.
if showsSplitLists
ul.pop-over-list
li
a.js-toggle-list-split
i.fa(class="{{#if split}}fa-check-square-o{{else}}fa-square-o{{/if}}")
| {{_ 'list-split'}}
//- #3847: board-wide toggle, exposed here per the maintainer's
instruction to reach it from the List hamburger menu. See
models/boards.js's stickyListHeaders and list.css's use of the
board class it drives.
ul.pop-over-list
li
a.js-toggle-sticky-list-headers
i.fa(class="{{#if isStickyListHeaders}}fa-check-square-o{{else}}fa-square-o{{/if}}")
| {{_ 'sticky-list-headers'}}
//- List sync (docs/Features/Board-Sidebar/Board-Settings/Import-Export/Sync.md): opens the settings
for keeping this list up to date from an external tracker. Calls the
EXISTING setListSyncSource/hasListSyncCredential/syncListNow methods
in server/methods/listSync.js - this popup is UI wiring only.
ul.pop-over-list
li
a.js-list-sync
i.fa.fa-refresh
| {{_ 'list-sync-menu'}}
if syncSource.type
|  
i.fa.fa-check-circle(class="{{#if syncSource.enabled}}list-sync-active{{else}}list-sync-paused{{/if}}")
hr
h4.menu-group-heading {{_ 'menu-group-move-copy'}}
ul.pop-over-list
unless currentUser.isWorker
li
a.js-copy-list
i.fa.fa-clipboard
| {{_ 'copyListPopup-title'}}
if currentUser.isBoardAdmin
li
a.js-move-list
i.fa.fa-arrow-right
| {{_ 'moveListPopup-title'}}
unless currentUser.isWorker
if mayWriteList
hr
h4.menu-group-heading {{_ 'archives'}}
ul.pop-over-list
li
a.js-close-list
i.fa.fa-arrow-right
i.fa.fa-archive
| {{_ 'archive-list'}}
hr
ul.pop-over-list
li
a.js-more
i.fa.fa-link
| {{_ 'listMorePopup-title'}}
template(name="listMorePopup")
p.quiet
span.clearfix
span {{_ 'link-list'}}
= ' '
i.fa(class="{{currentBoard.visibilityIcon}}")
//- #6459: was {{ rootUrl }}, a helper that does not exist anywhere, so the
//- link input was always empty. absoluteUrl was then resolved through a
//- CARD of this list, so the box showed a card's address - and nothing at
//- all for an empty list. A list has its own address now.
//- models/lib/boardItemUrl.js
input.inline-input(type="text" readonly value="{{ absoluteUrl }}")
| {{_ 'added'}}
span.date(title=list.createdAt) {{ displayDate createdAt 'LLL' }}
//unless currentUser.isWorker
//
if currentUser.isBoardAdmin
//
a.js-delete {{_ 'delete'}}
template(name="listArchivePopup")
p {{_ "list-archive-pop"}}
p {{_ "list-archive-suggest"}}
button.js-confirm.negate.full(type="submit") {{_ 'archive'}}
//- #3383: confirm before archiving every card of a list at once - same
//- confirm-then-act shape as listArchivePopup above, just for the list's
//- cards instead of the list itself.
template(name="listArchiveCardsPopup")
p {{_ "list-archive-cards-pop"}}
button.js-confirm.negate.full(type="submit") {{_ 'archive'}}
template(name="listDeletePopup")
p {{_ "list-delete-pop"}}
unless archived
p {{_ "list-delete-suggest-archive"}}
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
template(name="setWipLimitPopup")
#js-wip-limit-edit
label {{_ 'set-wip-limit-value'}}
ul.pop-over-list
li: a.js-enable-wip-limit {{_ 'enable-wip-limit'}}
if isWipLimitEnabled
i.fa.fa-check
if isWipLimitEnabled
p
input.wip-limit-value(type="number" value="{{ wipLimitValue }}" min="1" max="99")
input.wip-limit-apply(type="submit" value="{{_ 'apply'}}")
input.wip-limit-error
p
.soft-wip-limit
.materialCheckBox(class="{{#if isWipLimitSoft}}is-checked{{/if}}")
label {{_ 'soft-wip-limit'}}
template(name="wipLimitErrorPopup")
.wip-limit-invalid
p {{_ 'wipLimitErrorPopup-dialog-pt1'}}
p {{_ 'wipLimitErrorPopup-dialog-pt2'}}
button.full.js-back-view(type="submit") {{_ 'cancel'}}
template(name="setListWidthPopup")
#js-list-width-edit
unless isAutoWidth
label {{_ 'set-list-width-value'}}
p
input.list-width-value(type="number" value="{{ listWidthValue }}" min="{{ listWidthMinimum }}" step="1")
input.list-width-apply(type="submit" value="{{_ 'apply'}}")
input.list-width-error
if canChangeAutoWidth
a.js-toggle-auto-width(title="{{#if isAutoWidth}}{{_ 'click-to-disable-auto-width'}}{{else}}{{_ 'click-to-enable-auto-width'}}{{/if}}")
i.fa(class="{{#if isAutoWidth}}fa-compress{{else}}fa-arrows-h{{/if}}")
span {{_ 'auto-list-width'}}
a.js-toggle-fixed-list-width(title="{{#if isFixedListWidth}}{{_ 'click-to-disable-fixed-list-width'}}{{else}}{{_ 'click-to-enable-fixed-list-width'}}{{/if}}")
i.fa(class="{{#if isFixedListWidth}}fa-check-square-o{{else}}fa-square-o{{/if}}")
span {{_ 'fixed-list-width'}}
p.list-width-scope-note {{ listWidthScopeNote }}
template(name="listWidthErrorPopup")
.list-width-invalid
p {{_ 'list-width-error-message'}}
button.full.js-back-view(type="submit") {{_ 'cancel'}}
template(name="setListColorPopup")
form.edit-label
.palette-colors: each colors
// note: we use the swimlane palette to have more than just the border
span.card-label.palette-color.js-palette-color(class="card-details-{{color}}")
if(isSelected color)
i.fa.fa-check
// #5514: native color wheel for picking a custom RGB / hex color
.color-wheel-wrap
label(for="listColorWheel") {{_ 'custom-color'}}
input.js-list-color-wheel#listColorWheel(type="color" value=currentColorHex title="{{_ 'custom-color'}}")
//- #4756: cards without a colour of their own follow the list's.
a.flex.js-cards-use-list-color(class="{{#if cardsUseListColor}}is-checked{{/if}}")
.materialCheckBox(class="{{#if cardsUseListColor}}is-checked{{/if}}")
span {{_ 'cards-use-list-color'}}
button.primary.confirm.js-submit {{_ 'save'}}
button.js-remove-color.negate.wide.right {{_ 'remove-btn'}}
//- List sync settings (docs/Features/Board-Sidebar/Board-Settings/Import-Export/Sync.md). UI wiring only -
calls setListSyncSource/hasListSyncCredential/previewListSync/syncListNow
Meteor methods (server/methods/listSync.js) exactly as they are defined;
this popup does not touch the sync backend itself.
The credential field (js-list-sync-token) is write-only, the same
discipline the LDAP Admin Panel override uses for its bind password
(client/components/settings/settingBody.jade/.js, models/lib/configResolver.js's
hasConfigValue): it always starts empty and is never pre-filled with the
real token, even when one is already stored - only a boolean "a credential
is set" (from the hasListSyncCredential method) is shown.
template(name="listSyncPopup")
#js-list-sync-edit
p.quiet {{_ 'list-sync-description'}}
label {{_ 'list-sync-source-type'}}
p
select.list-sync-type.js-list-sync-type
option(value="") {{_ 'list-sync-source-none'}}
each listSyncSourceTypes
option(value="{{this}}" selected="{{#if isCurrentSyncType this}}selected{{/if}}") {{listSyncSourceLabel this}}
if isSyncTypeSelected
label {{_ 'list-sync-url'}}
p
input.list-sync-url.js-list-sync-url(type="text" value="{{currentSyncUrl}}" placeholder="{{_ 'list-sync-url-placeholder'}}")
label {{_ 'list-sync-project-key'}}
p
input.list-sync-project-key.js-list-sync-project-key(type="text" value="{{currentSyncProjectKey}}" placeholder="{{_ 'list-sync-project-key-placeholder'}}")
//- A grain reaches a tracker only through an API a member allowed in the
Sandstorm Powerbox, for the SAVED source (server/sandstormEgress.js).
if isSandstorm
if syncSourceSaved
if syncGranted
p.quiet
i.fa.fa-check
| {{_ 'sandstorm-sync-granted'}}
else
//- Jira signs in with a header the bridge proxy owns: the grant
keeps the sign-in instead (imports/sandstorm/egress.mjs).
if isCurrentSyncType 'jira'
p.quiet {{_ 'sandstorm-sync-jira-hint'}}
p
a.button.js-sandstorm-sync-grant
i.fa.fa-plug
| {{_ 'sandstorm-sync-grant'}}
if syncGrantError
p.error {{syncGrantError}}
each syncTextFields
p
a.flex.js-toggle-sync-field(data-field=field)
.materialCheckBox(class="{{#if checked}}is-checked{{/if}}")
span {{_ label}}
if syncTimeEnabled
p.quiet {{_ 'sync-time-estimate-hint'}}
if syncPlanningEnabled
p.quiet.js-list-sync-planning-hint {{_ 'sync-planning-hint'}}
each syncOperations
p
a.flex.js-toggle-sync-operation(data-operation=operation)
.materialCheckBox(class="{{#if checked}}is-checked{{/if}}")
span {{_ label}}
if syncEstimateEnabled
if syncEstimateGitlab
label {{_ 'sync-estimate-source'}}
select.js-list-sync-estimate-source
each syncEstimateSources
option(value=value selected=selected) {{_ label}}
label {{_ 'sync-estimate-field-gitlab'}}
select.js-list-sync-estimate-field
option(value="") {{_ 'sync-estimate-field-gitlab'}}
each syncEstimateFields
option(value=_id selected=selected) {{name}}
p.quiet {{_ 'sync-estimate-field-gitlab-hint'}}
else
label {{_ 'sync-estimate-field'}}
select.js-list-sync-estimate-field
option(value="") {{_ 'sync-estimate-field'}}
each syncEstimateFields
option(value=_id selected=selected) {{name}}
p.quiet {{_ 'sync-estimate-field-hint'}}
label {{_ 'list-sync-credential'}}
p.quiet.list-sync-credential-status {{ listSyncCredentialStatusText }}
p
input.list-sync-token.js-list-sync-token(type="password" value="" autocomplete="new-password" placeholder="{{_ 'list-sync-credential-placeholder'}}")
p
input.list-sync-username.js-list-sync-username(type="text" value="{{currentSyncUsername}}" placeholder="{{_ 'list-sync-username-placeholder'}}")
p
a.flex.js-toggle-list-sync-enabled
.materialCheckBox(class="{{#if currentSyncEnabled}}is-checked{{/if}}")
span {{_ 'list-sync-enabled'}}
p.quiet
span {{_ 'list-sync-last-synced'}}: {{ listSyncLastSyncedText }}
if listSyncLastError
p.list-sync-error {{_ 'list-sync-last-error'}}: {{ listSyncLastError }}
if listSyncWriteBackError
p.list-sync-error {{_ 'sync-write-back-error'}}: {{ listSyncWriteBackError }}
p
button.js-list-sync-save.primary(type="submit") {{_ 'save'}}
button.js-list-sync-preview(type="button" disabled=syncBusy) {{_ 'sync-preview-button'}}
button.js-list-sync-now.primary(type="button") {{_ 'list-sync-now'}}
button.js-list-sync-clear.negate(type="button") {{_ 'list-sync-clear'}}
p
button.js-list-sync-reports(type="button" disabled=syncReportsBusy) {{_ 'sync-report-button'}}
if syncReportError
p.list-sync-error {{syncReportError}}
if syncReportsLoaded
.list-sync-run-reports
p.quiet {{_ 'sync-report-retention'}}
each syncRunReports
details
summary {{when}} — {{_ statusLabel}}
p.quiet {{_ 'sync-report-partial'}}
if hasCounts
p {{_ 'sync-preview-create'}}: {{created}}
p {{_ 'sync-preview-update'}}: {{updated}}
p {{_ 'sync-preview-archive'}}: {{archived}}
each sourceRows
p {{path}}: {{count}} — {{_ reasonLabel}}
if coverage.source.truncated
p.quiet {{_ 'sync-source-truncated'}}
else
p {{_ 'sync-report-empty'}}
if listSyncNowResult
p(class="{{listSyncNowResultClass}}")= listSyncNowResult
with syncPreview
.list-sync-preview
h3 {{_ 'sync-preview-heading'}}
p.quiet {{_ 'sync-preview-saved'}}
if blocked
p {{_ 'sync-preview-blocked'}}
else
p {{_ 'sync-preview-create'}}: {{created}}
p {{_ 'sync-preview-update'}}: {{updated}}
p {{_ 'sync-preview-archive'}}: {{archived}}
each syncPreviewItems
p
strong {{_ actionLabel}}: {{externalId}} — {{title}}
if fieldsText
span — {{fieldsText}}
if truncated
p.quiet {{_ 'sync-preview-truncated'}}
h4 {{_ 'sync-preview-omissions'}}
p.quiet {{_ 'sync-preview-scope'}}
each syncPreviewOmissions
p {{fieldText}}: {{count}} — {{_ reasonLabel}}
p {{_ 'sync-preview-parser-warnings'}}: {{coverage.parserWarnings}}
p {{_ 'sync-preview-parser-unsupported'}}: {{coverage.parserUnsupported}}
if coverage.truncated
p.quiet {{_ 'sync-preview-truncated'}}
.list-sync-source-coverage
h4 {{_ 'sync-source-heading'}}
p.quiet {{_ 'sync-source-scope'}}
each syncSourceOmissions
p {{path}}: {{count}} — {{_ reasonLabel}}
p {{_ 'sync-source-occurrences'}}: {{coverage.source.occurrences}}
if coverage.source.truncated
p.quiet {{_ 'sync-source-truncated'}}
p {{_ 'sync-source-omitted'}}: {{coverage.source.omittedOccurrences}}
if syncConflicts
h3 {{_ 'sync-conflict-heading'}}
p.quiet {{_ 'sync-conflict-hint'}}
each syncConflicts
.list-sync-conflict
strong {{externalId}} — {{_ label}}
if creation
p {{_ 'event-source'}}
else
p {{_ 'sync-conflict-local'}}
pre= local
if creation
p.quiet {{_ 'sync-conflict-creation-hint'}}
button.js-resolve-sync-conflict(type="button" data-choice="replace" disabled=syncBusy) {{_ 'sync-conflict-create-replacement'}}
else if archive
p.quiet {{_ 'sync-conflict-archive-hint'}}
button.js-resolve-sync-conflict(type="button" data-choice="detach" disabled=syncBusy) {{_ 'sync-conflict-keep-card-local'}}
else if duplicate
p {{_ 'sync-conflict-keep-mapping'}}
pre= retained
p.quiet {{_ 'sync-conflict-detach-hint'}}
button.js-resolve-sync-conflict(type="button" data-choice="detach" disabled=syncBusy) {{_ 'sync-conflict-detach'}}
else
p {{_ 'event-source'}}
pre= incoming
button.js-resolve-sync-conflict(type="button" data-choice="local" disabled=syncBusy) {{_ 'sync-conflict-keep-local'}}
button.js-resolve-sync-conflict(type="button" data-choice="source" disabled=syncBusy) {{_ 'sync-conflict-use-source'}}
//- WHERE a list goes: the board, the swimlane, which list to put it left or
right of, and Done. Copy list and Move list asked the same question with the
same form; only the title field above it differs, so that stays with each.
The dialog comes from the popup that includes this and is read from the
template INSTANCE, because inside `each boards` the data context is a board.
client/components/lists/listHeader.js
template(name="listDestinationPicker")
label {{_ 'boards'}}:
select.js-select-boards
each boards
option(value="{{_id}}" selected="{{#if isDialogOptionBoardId _id}}selected{{/if}}") {{add @index 1}}. {{title}}
label {{_ 'swimlanes'}}:
select.js-select-swimlanes
each swimlanes
option(value="{{_id}}" selected="{{#if isDialogOptionSwimlaneId _id}}selected{{/if}}") {{add @index 1}}. {{isTitleDefault title}}
label {{_ 'lists'}}:
select.js-select-lists
each lists
option(value="{{_id}}" selected="{{#if isDialogOptionListId _id}}selected{{/if}}") {{add @index 1}}. {{title}}
div
input(type="radio" name="list-position" value="left" checked id="list-position-left" style="display: inline")
label(for="list-position-left") {{_ 'left-of-list'}}
div
input(type="radio" name="list-position" value="right" id="list-position-right" style="display: inline")
label(for="list-position-right") {{_ 'right-of-list'}}
.edit-controls.clearfix
button.primary.confirm.js-done {{_ 'done'}}
template(name="copyListPopup")
label(for='copy-list-title') {{_ 'title'}}:
textarea#copy-list-title.full-line(data-editor-submit=".js-done" rows="2" autofocus)= title
+listDestinationPicker(dialog=dialog)
template(name="moveListPopup")
label(for='move-list-title') {{_ 'title'}}:
textarea#move-list-title.full-line(data-editor-submit=".js-done" rows="2" autofocus)= title
+listDestinationPicker(dialog=dialog)
template(name="addListPopup")
form.js-add-list-form
textarea.list-name-input.full-line(rows="2" dir="auto" placeholder="{{_ 'add-list'}}" autocomplete="off" autofocus)
+multilineTitleChoice(selector=".list-name-input" singular="list" plural="lists")
if currentSwimlaneData
if swimlaneLists.length
label {{_ 'add-after-list'}}
select.list-position-input.full-line
each swimlaneLists
option(value="{{_id}}" selected="{{$eq _id currentListIdValue}}") {{increment @index}} {{title}}
else
if currentBoard.lists.length
label {{_ 'add-after-list'}}
select.list-position-input.full-line
each currentBoard.lists
option(value="{{_id}}" selected="{{$eq _id currentListIdValue}}") {{increment @index}} {{title}}
.edit-controls.clearfix
button.primary.confirm.js-submit-add-list(type="submit") {{_ 'save'}}
unless currentBoard.isTemplatesBoard
unless currentBoard.isTemplateBoard
span.quiet
| {{_ 'or'}}
a.js-list-template {{_ 'template'}}