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

improve style of EE banner component styles and make it usable in rails

bsatarnejad9d371bbf8035
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
index 9cae9db82a8..1c6caa808c2 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
@@ -16,6 +16,8 @@ export const enterpriseBannerrBootstrapSelector = 'enterprise-banner-bootstrap';
<op-enterprise-banner
[textMessage]="textMessage"
[linkMessage]="linkMessage"
+ [moreInfoText]="moreInfoText"
+ [moreInfoLink]="moreInfoLink"
[opReferrer]="referrer">
</op-enterprise-banner>
`,
@@ -25,6 +27,10 @@ export class EnterpriseBannerBootstrapComponent implements OnInit {
public linkMessage:string;
+ public moreInfoText:string;
+
+ public moreInfoLink:string;
+
public referrer:string;
constructor(protected elementRef:ElementRef,
@@ -35,6 +41,8 @@ export class EnterpriseBannerBootstrapComponent implements OnInit {
const $element = jQuery(this.elementRef.nativeElement);
this.textMessage = $element.attr('text-message')!;
+ this.moreInfoText = $element.attr('more-info-text')!;
+ this.moreInfoLink = $element.attr('more-info-link')!;
this.linkMessage = $element.attr('link-message') || this.i18n.t('js.work_packages.table_configuration.upsale.check_out_link');
this.referrer = $element.attr('referrer')!;
}
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
index 69523eb8a0f..913d569d170 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
@@ -10,6 +10,9 @@
&--description
margin-bottom: 10px
display: block
+ font-size: 14px
+ font-weight: 400
+ line-height: 16px
&--image
width: 115px
diff --git a/frontend/src/global_styles/content/_toast.sass b/frontend/src/global_styles/content/_toast.sass
index cb083f9e298..6b4f702946b 100644
--- a/frontend/src/global_styles/content/_toast.sass
+++ b/frontend/src/global_styles/content/_toast.sass
@@ -132,9 +132,10 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)
&.-error,
&.-success,
&.-warning,
- &.-info,
- &.-ee-upsale
+ &.-info
padding: $nm-box-padding
+ &.-ee-upsale
+ z-index: 1
&.-error
@extend %error-placeholder