mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
- Calendar, Calendar Mode and Multi Board Calendar showed archived cards once the Archive sidebar had loaded them; every calendar selector leaves them out now. - Timeline offered "Restore to this state" to every viewer, and a refused restore vanished, since nothing awaited it. The button is shown to those who may change the card, and a refusal is reported. - Table: a swimlane header row spanned a fixed 11 columns, one short with all four date columns and too wide on a phone; it spans the columns the table has. Its add-card error was an English sentence. - Map showed the raw "upload-failed" for a failed upload; it is translated. - client/lib/errorMessage.js turns a failed call into a message in the reader's language: the translation when the error code is a translation key, otherwise the translated "Something went wrong" with the server's reason after it. 25 alert() calls with their own English fallback use it. tests/errorMessageI18n.test.cjs runs the helper and fails on an alert() that falls back to English again; calendarFilter tests the archived cards for all four selectors. Thanks to xet7 !
56 lines
2.2 KiB
Plaintext
56 lines
2.2 KiB
Plaintext
template(name="timelineView")
|
|
.stats-view.timeline-view
|
|
.stats-view-content
|
|
h1.stats-view-title {{_ 'board-view-timeline'}}
|
|
p.timeline-view-hint {{_ 'board-view-timeline-hint'}}
|
|
|
|
.timeline-track
|
|
a.timeline-marker.js-timeline-live(class="{{#unless selectedTimestamp}}is-selected{{/unless}}")
|
|
| {{_ 'board-view-timeline-now'}}
|
|
each timelineMarkers
|
|
a.timeline-marker.js-timeline-marker(data-ts="{{this.time}}" class="{{#if isSelectedMarker this.time}}is-selected{{/if}}")
|
|
| {{this.label}}
|
|
|
|
if selectedTimestamp
|
|
p.timeline-view-asof
|
|
| {{_ 'board-view-timeline-showing'}} {{formattedSelectedTimestamp}}
|
|
|
|
.timeline-lists
|
|
each timelineLists
|
|
.timeline-list
|
|
.timeline-list-title
|
|
+viewer
|
|
= this.title
|
|
each this.cards
|
|
.timeline-card
|
|
if this.archived
|
|
span.timeline-card-badge {{_ 'archived'}}
|
|
.timeline-card-title
|
|
+viewer
|
|
= this.title
|
|
if this.description
|
|
.timeline-card-description
|
|
+viewer
|
|
= this.descriptionSnippet
|
|
if this.labelNames.length
|
|
p.timeline-card-labels
|
|
each this.labelNames
|
|
span.timeline-card-label
|
|
+viewer
|
|
= this
|
|
if this.memberNames.length
|
|
p.timeline-card-members
|
|
| {{_ 'members'}}:
|
|
| {{this.memberNames}}
|
|
if this.dueAt
|
|
p.timeline-card-due
|
|
| {{_ 'due-date'}}: {{this.formattedDueAt}}
|
|
if selectedTimestamp
|
|
if canRestoreCard this.cardId
|
|
button.timeline-card-restore.js-restore-card-timeline.primary(type="button")
|
|
| {{_ 'board-view-timeline-restore'}}
|
|
|
|
template(name="cardRestoreToTimelinePopup")
|
|
p {{_ 'board-view-timeline-restore-confirm'}}
|
|
button.js-confirm.primary.full(type="submit") {{_ 'board-view-timeline-restore'}}
|