Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Exclude the logTime link from the highlighting of the field.

Henriette Darged9149cc95365
diff --git a/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass b/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass
index 0b18ef97f13..24bc8806648 100644
--- a/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass
+++ b/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass
@@ -86,6 +86,9 @@
font-style: italic
font-weight: bold
+ &.spentTime .time-logging--value
+ padding: 0 2px
+
.wp-table--cell-container
&.estimatedTime
width: 100%
@@ -118,11 +121,14 @@
white-space: inherit
// Mark focused, non-editable read-values
-.inline-edit--display-field:not(.id).-read-only
+// Special handling for spent time field, as the logTime link should not be highlighted
+.inline-edit--display-field:not(.id):not(.spentTime).-read-only,
+.inline-edit--display-field.spentTime.-read-only .time-logging--value
+ cursor: not-allowed
+
&:focus, &:hover
color: $inplace-edit--color--disabled
background: $inplace-edit--bg-color--disabled
- cursor: not-allowed
editable-attribute-field
width: 100%
diff --git a/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts b/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts
index 6faf1f775f3..e715a7fe9bd 100644
--- a/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts
+++ b/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts
@@ -52,6 +52,7 @@ export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {
const link = document.createElement('a');
link.textContent = displayText;
link.setAttribute('title', this.text.linkTitle);
+ link.setAttribute('class', 'time-logging--value');
if (this.resource.project) {
const wpID = this.resource.id.toString();