mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The archive-chart tooltip and the menu-column popup used physical left/right offsets, which do not mirror in right-to-left languages; they now use inset-inline-start/end. A board-settings column label used a fixed 12px font size that ignored the interface font scale. The Time view's adjustments table printed card titles directly instead of through the sanitized Markdown viewer the rest of the view uses; a negative test now requires every rendered title to be inside the viewer. The card-copy override refusal logs in the catch shape the security guard requires. The REST login and impersonation guards now pin insertActiveLoginToken, which replaced Accounts._insertLoginToken so a disabled account cannot get a token, with new negative checks that no REST path mints a token without that check. Thanks to xet7 !
93 lines
3.2 KiB
Plaintext
93 lines
3.2 KiB
Plaintext
template(name="timeView")
|
|
.stats-view
|
|
.stats-view-content
|
|
h1.stats-view-title {{_ 'board-view-time'}}
|
|
.chart-export-buttons
|
|
a.chart-export-button.js-export-chart(href="#" data-chart-key="time")
|
|
i.fa.fa-share-square-o
|
|
| {{_ 'export'}}
|
|
.stats-view-section
|
|
h2.stats-view-heading {{_ 'board-status-time-summary'}}
|
|
table.stats-view-table
|
|
tbody
|
|
tr
|
|
td.stats-view-label {{_ 'board-status-time-spent-total'}}
|
|
td.stats-view-value {{ timeSpentTotal }}
|
|
tr
|
|
td.stats-view-label {{_ 'board-status-cards-with-time'}}
|
|
td.stats-view-value {{ cardsWithTimeSpent }}
|
|
tr
|
|
td.stats-view-label {{_ 'board-status-overtime-cards'}}
|
|
td.stats-view-value {{ overtimeCards }}
|
|
tr
|
|
//- #1121: sum of remaining time until due date, across the
|
|
//- board's open cards that have a due date - the same value
|
|
//- the PDF/Excel export carries as its own section.
|
|
td.stats-view-label {{_ 'board-status-remaining-time-total'}}
|
|
td.stats-view-value {{ remainingTimeTotal }}
|
|
if hasTimeBreakdown
|
|
//- #812 ("reporting total hours by resource and task type"): who
|
|
//- logged how many hours, and which cards those hours went to - the
|
|
//- same data the PDF/Excel export above contains.
|
|
.stats-view-section
|
|
h2.stats-view-heading {{_ 'assignees'}}
|
|
table.stats-view-table.chart-data-table
|
|
thead
|
|
tr
|
|
th {{_ 'name'}}
|
|
th {{_ 'hours'}}
|
|
tbody
|
|
each byAssignee
|
|
tr
|
|
td {{assigneeLabel label}}
|
|
td {{hours}}
|
|
.stats-view-section
|
|
h2.stats-view-heading {{_ 'card'}}
|
|
table.stats-view-table.chart-data-table
|
|
thead
|
|
tr
|
|
th {{_ 'name'}}
|
|
th {{_ 'hours'}}
|
|
tbody
|
|
each byCard
|
|
tr
|
|
td
|
|
.time-view-card-title
|
|
+viewer
|
|
= title
|
|
if isOvertime
|
|
| ({{_ 'overtime'}})
|
|
td {{hours}}
|
|
.stats-view-section.time-adjustments
|
|
h2.stats-view-heading {{_ 'time-adjustments'}}
|
|
p {{_ 'time-adjustment-note'}}
|
|
table.stats-view-table.chart-data-table
|
|
thead
|
|
tr
|
|
th {{_ 'username'}}
|
|
th {{_ 'hours'}}
|
|
tbody
|
|
each timeAdjustmentGroups
|
|
tr
|
|
td {{label}}
|
|
td {{hours}}
|
|
table.stats-view-table.chart-data-table
|
|
thead
|
|
tr
|
|
th {{_ 'date'}}
|
|
th {{_ 'card'}}
|
|
th {{_ 'username'}}
|
|
th Δ {{_ 'hours'}}
|
|
th {{_ 'hours'}}
|
|
tbody
|
|
each timeAdjustmentEntries
|
|
tr
|
|
td {{displayDate at}}
|
|
td
|
|
.time-view-card-title
|
|
+viewer
|
|
= title
|
|
td {{author}}
|
|
td {{hours}}
|
|
td {{total}}
|