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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix errors and remove repetitive codes
bsatarnejadabaa0684eb14
diff --git a/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.html b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.htmlindex 1a11a90eca9..21f2fd94544 100644--- a/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.html+++ b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.html@@ -5,7 +5,7 @@[hide-name]="true"size="mini"></op-principal>- <h2 class="op-assignee-board-header--editable-toolbar-title--fixed">+ <h2 class="editable-toolbar-title--fixed"><small [textContent]="text.assignee"></small><br/><a *ngIf="user.id"diff --git a/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.sass b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.sassindex 0df9ddda859..0d14a0052a8 100644--- a/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.sass@@ -4,6 +4,3 @@op-principalalign-self: centerpadding-right: 5px-- &--editable-toolbar-title--fixed- line-height: 1 !important\ No newline at end of filediff --git a/frontend/src/app/features/boards/board/board-actions/status/status-board-header.html b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.htmlindex 91489bba079..db09f9312b7 100644--- a/frontend/src/app/features/boards/board/board-actions/status/status-board-header.html+++ b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.html@@ -1,5 +1,5 @@<div class="op-status-board-header" *ngIf="status">- <h2 class="op-status-board-header--editable-toolbar-title--fixed">+ <h2 class="editable-toolbar-title--fixed"><small [textContent]="text.status"></small><br/>{{ status.name }}diff --git a/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sassindex 122226a7c1c..a27643557e4 100644--- a/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass@@ -1,3 +1 @@.op-status-board-header- &--editable-toolbar-title--fixed- line-height: 1 !important\ No newline at end of filediff --git a/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.html b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.htmlindex fdd3f10941f..8c4d7b1923f 100644--- a/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.html+++ b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.html@@ -1,5 +1,5 @@<div class="op-subproject-board-header" *ngIf="resource">- <h2 class="op-subproject-board-header--editable-toolbar-title--fixed">+ <h2 class="editable-toolbar-title--fixed"><small [textContent]="text.project"></small><br/><a [href]="pathHelper.projectPath(resource.idFromLink)"diff --git a/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sassindex 16458224588..410853b7de5 100644--- a/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass@@ -1,5 +1,3 @@// Override line-height for proper// display of the h2 + small.op-subproject-board-header- &--editable-toolbar-title--fixed- line-height: 1 !important\ No newline at end of filediff --git a/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.html b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.htmlindex 3da4cba113c..1629e4efe03 100644--- a/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.html+++ b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.html@@ -1,5 +1,5 @@<div class="op-subtask-board-header" *ngIf="resource">- <h2 class="op-subtask-board-header--editable-toolbar-title--fixed">+ <h2 class="editable-toolbar-title--fixed"><small [textContent]="text.workPackage"></small><br/><span class="op-subtask-board-header--work-package-type"diff --git a/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.sass b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.sassindex 6ca5784995a..27afadd5ae7 100644--- a/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.sass@@ -1,8 +1,6 @@// Override line-height for proper// display of the h2 + small.op-subtask-board-header- &--editable-toolbar-title--fixed- line-height: 1 !important&--work-package-typepadding-right: 0.5rem\ No newline at end of filediff --git a/frontend/src/app/features/boards/board/board-actions/version/version-board-header.html b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.htmlindex e15524c659b..054d41a9bfe 100644--- a/frontend/src/app/features/boards/board/board-actions/version/version-board-header.html+++ b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.html@@ -1,7 +1,8 @@<div class="op-version-board-header"+ data-qa-selector="op-version-board-header"[ngClass]="{ '-closed': version.isClosed(), '-locked': version.isLocked() }"*ngIf="version">- <h2 class="op-version-board-header--editable-toolbar-title--fixed">+ <h2 class="editable-toolbar-title--fixed"><small [textContent]="text.version"></small><br/><a [href]="pathHelper.versionShowPath(version.id)"diff --git a/frontend/src/app/features/boards/board/board-actions/version/version-board-header.sass b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.sassindex b0a47354419..7d88da92194 100644--- a/frontend/src/app/features/boards/board/board-actions/version/version-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.sass@@ -1,6 +1,3 @@.op-version-board-headerdisplay: flexflex-direction: column-- &--editable-toolbar-title--fixed- line-height: 1 !important\ No newline at end of filediff --git a/frontend/src/global_styles/layout/_boards.sass b/frontend/src/global_styles/layout/_boards.sassindex db573c708cb..d90a698db16 100644--- a/frontend/src/global_styles/layout/_boards.sass+++ b/frontend/src/global_styles/layout/_boards.sass@@ -6,3 +6,6 @@#contentheight: 100%++ .editable-toolbar-title--fixed+ line-height: 1 !important\ No newline at end of filediff --git a/modules/boards/spec/features/action_boards/version_board_spec.rb b/modules/boards/spec/features/action_boards/version_board_spec.rbindex ee0ccedff25..1ac8b04c925 100644--- a/modules/boards/spec/features/action_boards/version_board_spec.rb+++ b/modules/boards/spec/features/action_boards/version_board_spec.rb@@ -248,18 +248,18 @@ describe 'Version action board', type: :feature, js: true doendboard_page.expect_list 'Closed version'- expect(page).to have_selector('.version-board-header.-closed')+ expect(page).to have_selector('[data-qa-selector="op-version-board-header"].-closed')# Can open that versionboard_page.click_list_dropdown 'Closed version', 'Open version'- expect(page).to have_no_selector('.version-board-header.-closed')+ expect(page).to have_no_selector('[data-qa-selector="op-version-board-header"].-closed')closed_version.reloadexpect(closed_version.status).to eq 'open'# Can lock that versionboard_page.click_list_dropdown 'Closed version', 'Lock version'- expect(page).to have_selector('.version-board-header.-locked')+ expect(page).to have_selector('[data-qa-selector="op-version-board-header"].-locked')closed_version.reloadexpect(closed_version.status).to eq 'locked'