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

Remove unnecessary differntiation between HTML and text-only input

Henriette Darge3efd59943049
diff --git a/app/views/admin/settings/projects_settings/show.html.erb b/app/views/admin/settings/projects_settings/show.html.erb
index 218d3ae010c..6936f2aa733 100644
--- a/app/views/admin/settings/projects_settings/show.html.erb
+++ b/app/views/admin/settings/projects_settings/show.html.erb
@@ -50,7 +50,6 @@ See COPYRIGHT and LICENSE files for more details.
<%=
angular_component_tag 'op-enterprise-banner',
inputs: {
- messageIsHtml: 'true',
moreInfoText: t('text_custom_field_upsale_more_info'),
textMessage: t('text_project_custom_field_html'),
moreInfoLink: 'https://www.openproject.org/docs/system-admin-guide/custom-fields/custom-fields-projects/',
diff --git a/app/views/custom_fields/_tab.html.erb b/app/views/custom_fields/_tab.html.erb
index c88b2a3794e..9387198f355 100644
--- a/app/views/custom_fields/_tab.html.erb
+++ b/app/views/custom_fields/_tab.html.erb
@@ -173,7 +173,6 @@ See COPYRIGHT and LICENSE files for more details.
<%=
angular_component_tag 'op-enterprise-banner',
inputs: {
- messageIsHtml: 'true',
moreInfoText: t('text_custom_field_upsale_more_info'),
textMessage: t('text_project_custom_field_html'),
moreInfoLink: 'https://www.openproject.org/docs/system-admin-guide/custom-fields/custom-fields-projects/',
@@ -187,7 +186,6 @@ See COPYRIGHT and LICENSE files for more details.
<%=
angular_component_tag 'op-enterprise-banner',
inputs: {
- messageIsHtml: 'true',
moreInfoText: t('text_custom_field_upsale_more_info'),
textMessage: t('text_wp_custom_field_html'),
moreInfoLink: 'https://www.openproject.org/docs/system-admin-guide/custom-fields/#create-a-multi-select-custom-field-premium-feature',
diff --git a/app/views/types/form/_form_configuration.html.erb b/app/views/types/form/_form_configuration.html.erb
index 4888edc8759..d66fdad3649 100644
--- a/app/views/types/form/_form_configuration.html.erb
+++ b/app/views/types/form/_form_configuration.html.erb
@@ -44,7 +44,6 @@ See COPYRIGHT and LICENSE files for more details.
angular_component_tag 'op-enterprise-banner',
inputs: {
opReferrer: 'form-configuration',
- messageIsHtml: 'true',
moreInfoText: t('admin.enterprise.buttons.more_info'),
textMessage: t('types.edit.more_info_text_html'),
moreInfoLink: 'https://www.openproject.org/docs/system-admin-guide/manage-work-packages/work-package-types/#work-package-form-configuration-premium-feature',
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 91442a95d6c..a150f446e40 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
@@ -29,8 +29,6 @@ export class EnterpriseBannerBootstrapComponent implements OnInit {
public moreInfoLink:string;
- public messageIsHtml:string;
-
public referrer:string;
constructor(protected elementRef:ElementRef,
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.html
index eac86e8214c..c91a0b18ef7 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
@@ -13,8 +13,7 @@
</div>
<br>
- <span *ngIf="!messageIsHtml" class="op-enterprise-banner--description" [textContent]="textMessage"></span>
- <span *ngIf="messageIsHtml" class="op-enterprise-banner--description" [innerHtml]="textMessage"></span>
+ <span class="op-enterprise-banner--description op-enterprise-banner--description" [innerHtml]="textMessage"></span>
<strong [textContent]="text.become_hero"></strong> &nbsp;
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.ts
index 253dbd245ec..86fbc3ee07e 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
@@ -35,8 +35,6 @@ export class EnterpriseBannerComponent implements OnInit {
@Input() public moreInfoLink:string;
- @Input() public messageIsHtml = false;
-
public link:string;
pricingUrl = pricingUrl;