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 enterprise page no longer in use

Oliver Günther60dc69696592
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
deleted file mode 100644
index 37870323435..00000000000
--- a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<div class="upsale-notification"
- [ngClass]="{ 'upsale-notification_hide-breadcrumb': hide_breadcrumb }">
- <h2 [textContent]="feature_title"></h2>
- <p *ngIf="feature_description">{{feature_description}}</p>
- <p *ngIf="!feature_description" class="upsale--feature-reference">
- {{text.benefits_description}}
- <br>
- {{text.premium_features_text}}
- <br>
- {{text.professional_support_text}}
- </p>
-
- <p class="upsale--feature-reference"
- [textContent]="more_info"></p>
-
- <video width="400"
- *ngIf="feature_video"
- [autoplay]="true"
- [loop]="true"
- [muted]="true"
- playsinline
- class="widget-box--teaser-video">
- <source [src]="feature_video" type="video/mp4">
- </video>
-
- <img [src]="feature_image" class="widget-box--teaser-image" *ngIf="feature_image">
- <img
- [src]="image.enterprise_edition"
- class="widget-box--teaser-image_default"
- *ngIf="!feature_image && !feature_video"
- >
-
- <p [innerHTML]="text.enterprise_info_html(feature_title)"></p>
- <p>{{text.upgrade_info}}</p>
-
- <a
- [attr.href]="text.contact_link"
- class="button"
- target=”_blank”>
- {{ text.button_contact_us }}
- </a>
-
- <a
- [attr.href]="text.upgrade_link"
- target="_blank"
- class="button -primary">
- <span class="spot-icon spot-icon_enterprise-addons"></span>
- {{ text.upgrade }}
- </a>
- <opce-free-trial-button></opce-free-trial-button>
-</div>
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
deleted file mode 100644
index d2313ffa800..00000000000
--- a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { ChangeDetectionStrategy, Component, ElementRef, Input } from '@angular/core';
-import { I18nService } from 'core-app/core/i18n/i18n.service';
-import { imagePath } from 'core-app/shared/helpers/images/path-helper';
-import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
-import { contactUrl, pricingUrl } from 'core-app/core/setup/globals/constants.const';
-
-
-@Component({
- selector: 'op-enterprise-page',
- changeDetection: ChangeDetectionStrategy.OnPush,
- templateUrl: './enterprise-page.component.html',
-})
-export class EnterprisePageComponent {
- @Input() public feature_more_info:string;
-
- @Input() public feature_video:string;
-
- @Input() public feature_image:string;
-
- @Input() public feature_title:string;
-
- @Input() public feature_description:string;
-
- @Input() public more_info:string;
-
- @Input() public hide_breadcrumb = false;
-
- text = {
- button_contact_us: this.I18n.t('js.admin.enterprise.upsale.button_contact_us'),
- upgrade: this.I18n.t('js.admin.enterprise.upsale.button_upgrade'),
- upgrade_link: pricingUrl,
- contact_link: contactUrl.en,
- benefits_description: this.I18n.t('js.admin.enterprise.upsale.benefits.description'),
- premium_features_text: this.I18n.t('js.admin.enterprise.upsale.benefits.premium_features_text'),
- professional_support_text: this.I18n.t('js.admin.enterprise.upsale.benefits.professional_support_text'),
- enterprise_info_html: (feature_title:string):string => this.I18n.t('js.admin.enterprise.upsale.enterprise_info_html', {
- feature_title,
- }),
- upgrade_info: this.I18n.t('js.admin.enterprise.upsale.upgrade_info'),
- button_contact: this.I18n.t('js.admin.enterprise.upsale.buttons.contact'),
- button_upgrade: this.I18n.t('js.admin.enterprise.upsale.buttons.upgrade'),
- };
-
- image = {
- enterprise_edition: imagePath('enterprise-add-on.svg'),
- };
-
- constructor(
- readonly elementRef:ElementRef,
- protected I18n:I18nService,
- readonly pathHelper:PathHelperService,
- ) {
-
- }
-}
diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts
index 08e6ec760ae..b4664769fa7 100644
--- a/frontend/src/app/shared/shared.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@ -57,7 +57,6 @@ import {
import { OPContextMenuComponent } from 'core-app/shared/components/op-context-menu/op-context-menu.component';
import { OpenprojectPrincipalRenderingModule } from 'core-app/shared/components/principal/principal-rendering.module';
import { FocusModule } from 'core-app/shared/directives/focus/focus.module';
-import { EnterprisePageComponent } from 'core-app/shared/components/enterprise-page/enterprise-page.component';
import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-trial-button/free-trial-button.component';
import { HomescreenNewFeaturesBlockComponent } from 'core-app/features/homescreen/blocks/new-features.component';
import { TablePaginationComponent } from 'core-app/shared/components/table-pagination/table-pagination.component';
@@ -174,7 +173,6 @@ export function bootstrapModule(injector:Injector):void {
EditableToolbarTitleComponent,
// Enterprise Edition
- EnterprisePageComponent,
FreeTrialButtonComponent,
DynamicModule,
@@ -220,7 +218,6 @@ export function bootstrapModule(injector:Injector):void {
RemoteFieldUpdaterComponent,
// Enterprise Edition
- EnterprisePageComponent,
FreeTrialButtonComponent,
HomescreenNewFeaturesBlockComponent,