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
Remove generic top margin for EE banners and add it only when needed
Henriette Darge770be80d4560
diff --git a/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb b/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erbindex d82dc602b7c..0072914c652 100644--- a/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb+++ b/app/views/admin/settings/work_packages_general/_enterprise_feature_hint.html.erb@@ -1,12 +1,13 @@<% unless EnterpriseToken.allows_to?(ee_feature) %>- <span class="form--field -indented">+ <div class="form--field-extra-actions"><%=- angular_component_tag 'opce-enterprise-banner',- inputs: {- collapsible: true,- textMessage: explanation,- moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:attribute_highlighting][:href],- }+ angular_component_tag 'opce-enterprise-banner',+ inputs: {+ collapsible: true,+ textMessage: explanation,+ topMargin: true,+ moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:attribute_highlighting][:href],+ }%>- </span>+ </div><% end %>diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erbindex 8d4551607bd..212917bf8ab 100644--- a/app/views/types/form/_form_configuration.html.erb+++ b/app/views/types/form/_form_configuration.html.erb@@ -43,6 +43,7 @@ See COPYRIGHT and LICENSE files for more details.inputs: {collapsible: true,opReferrer: 'form-configuration',+ topMargin: true,textMessage: t('types.edit.more_info_text_html'),moreInfoLink: OpenProject::Static::Links.links[:enterprise_docs][:form_configuration][:href],}diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.htmlindex 8c1bd9d5d09..855a6d4ff34 100644--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html@@ -3,7 +3,7 @@data-test-selector="op-enterprise-banner"><div class="op-toast -ee-upsale"- [ngClass]="{'-left-margin': leftMargin }">+ [ngClass]="{'-left-margin': leftMargin, '-top-margin': topMargin }"><img [src]="image.enterprise_edition" class="hidden-for-mobile op-enterprise-banner--image"><div class="op-toast--content">diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.tsindex b2206c734c1..fc6af3c8022 100644--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts@@ -16,6 +16,8 @@ import { pricingUrl } from 'core-app/core/setup/globals/constants.const';export class EnterpriseBannerComponent implements OnInit {@Input() public leftMargin = false;+ @Input() public topMargin = false;+@Input() public textMessage:string;@Input() public linkMessage:string;diff --git a/frontend/src/global_styles/content/_toast.sass b/frontend/src/global_styles/content/_toast.sassindex 8ee85f211d5..e11ee068748 100644--- a/frontend/src/global_styles/content/_toast.sass+++ b/frontend/src/global_styles/content/_toast.sass@@ -137,11 +137,13 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)&.-ee-upsalez-index: 1padding: 1rem- margin-top: 1rem&.-left-marginmargin-left: 20px+ &.-top-margin+ margin-top: 1rem+&.-error@extend %error-placeholder