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
Outsource all links into constants or static links, upsale icons added to images
Inga Maibe2f9fee0b23
diff --git a/app/assets/images/premium_features.png b/app/assets/images/premium_features.pngnew file mode 100644index 00000000000..292b8545755Binary files /dev/null and b/app/assets/images/premium_features.png differdiff --git a/app/assets/images/security_alerts.jpg b/app/assets/images/security_alerts.jpgnew file mode 100644index 00000000000..fc3b6f1b877Binary files /dev/null and b/app/assets/images/security_alerts.jpg differdiff --git a/app/assets/images/security_features.png b/app/assets/images/security_features.pngnew file mode 100644index 00000000000..ddaf2e35b49Binary files /dev/null and b/app/assets/images/security_features.png differdiff --git a/app/assets/images/system_maintenance.jpg b/app/assets/images/system_maintenance.jpgnew file mode 100644index 00000000000..f0b1155d91aBinary files /dev/null and b/app/assets/images/system_maintenance.jpg differdiff --git a/app/views/enterprises/_info.html.erb b/app/views/enterprises/_info.html.erbindex 21e5187d6f7..9ba419286c4 100644--- a/app/views/enterprises/_info.html.erb+++ b/app/views/enterprises/_info.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%><% content_for :header_tags do %>- <script src="https://js.chargebee.com/v2/chargebee.js"+ <script src="<%= OpenProject::Static::Links.links[:chargebee][:href] %>"data-cb-site="openproject-enterprise-test"></script><% end %>@@ -45,16 +45,14 @@ See docs/COPYRIGHT.rdoc for more details.data-cb-plan-id="enterprise-edition---annual-user-license"><%= t('admin.enterprise.book_now') %></a>- <a href="https://www.openproject.org/upgrade-enterprise-edition/" target="_blank">- <%= t('admin.enterprise.get_quote') %>- </a>+ <%= static_link_to :upsale_get_quote %></div><div class="info-boxes upsale-benefits"><h3 class="info-boxes--title -no-border"><%= t('homescreen.blocks.upsale.description') %></h3><div class="info-boxes--container"><div class="info-boxes--item">- <%= image_tag "https://1t1rycb9er64f1pgy2iuseow-wpengine.netdna-ssl.com/wp-content/uploads/2017/06/icon-security-features.png",+ <%= image_tag "security_features.png",class: "info-boxes--teaser-image",title: t('js.admin.enterprise.upsale.benefits.installation'),alt: t('js.admin.enterprise.upsale.benefits.installation') %>@@ -63,15 +61,13 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= t('js.admin.enterprise.upsale.benefits.installation_text') %></p><ul class="widget-box--arrow-links"><li>- <a href="https://www.openproject.org/enterprise-edition/#installation" target="_blank">- <%= t('js.label_learn_more_link') %>- </a>+ <%= static_link_to :upsale_benefits_installation %></li></ul></div></div><div class="info-boxes--item">- <%= image_tag "https://1t1rycb9er64f1pgy2iuseow-wpengine.netdna-ssl.com/wp-content/uploads/2017/06/icon-system-maintenance.jpg",+ <%= image_tag "system_maintenance.jpg",class: "info-boxes--teaser-image",title: t('js.admin.enterprise.upsale.benefits.professional_support'),alt: t('js.admin.enterprise.upsale.benefits.professional_support') %>@@ -80,15 +76,13 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= t('js.admin.enterprise.upsale.benefits.professional_support_text') %></p><ul class="widget-box--arrow-links"><li>- <a href="https://www.openproject.org/enterprise-edition/#professional-support" target="_blank">- <%= t('js.label_learn_more_link') %>- </a>+ <%= static_link_to :upsale_benefits_support %></li></ul></div></div><div class="info-boxes--item">- <%= image_tag "https://1t1rycb9er64f1pgy2iuseow-wpengine.netdna-ssl.com/wp-content/uploads/2017/03/icon-premium-features.png",+ <%= image_tag "premium_features.png",class: "info-boxes--teaser-image",title: t('js.admin.enterprise.upsale.benefits.premium_features'),alt: t('js.admin.enterprise.upsale.benefits.premium_features') %>@@ -97,15 +91,13 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= t('js.admin.enterprise.upsale.benefits.premium_features_text') %></p><ul class="widget-box--arrow-links"><li>- <a href="https://www.openproject.org/enterprise-edition/#premium-features" target="_blank">- <%= t('js.label_learn_more_link') %>- </a>+ <%= static_link_to :upsale_benefits_features %></li></ul></div></div><div class="info-boxes--item">- <%= image_tag "https://1t1rycb9er64f1pgy2iuseow-wpengine.netdna-ssl.com/wp-content/uploads/2017/06/icon-security-alerts.jpg",+ <%= image_tag "security_alerts.jpg",class: "info-boxes--teaser-image",title: t('js.admin.enterprise.upsale.benefits.high_security'),alt: t('js.admin.enterprise.upsale.benefits.high_security') %>@@ -114,9 +106,7 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= t('js.admin.enterprise.upsale.benefits.high_security_text') %></p><ul class="widget-box--arrow-links"><li>- <a href="https://www.openproject.org/enterprise-edition/#security-features" target="_blank">- <%= t('js.label_learn_more_link') %>- </a>+ <%= static_link_to :upsale_benefits_security %></li></ul></div>diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.htmlindex 986c5d49828..16a93e20bc5 100644--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html@@ -57,9 +57,9 @@required></div><span>{{ text.general_consent }}- <a href="https://www.openproject.com/terms-of-service/" target="_blank">{{ text.terms_of_service }}</a>+ <a [href]="termsOfServiceURL" target="_blank">{{ text.terms_of_service }}</a>and the- <a href="https://www.openproject.com/legal-notice/" target="_blank">{{ text.privacy_policy }}</a>.+ <a [href]="legalNoticeURL" target="_blank">{{ text.privacy_policy }}</a>.</span></label></div>@@ -73,7 +73,7 @@formControlName="newsletter_consent"></div><span>{{ text.receive_newsletter }}- <a href="https://www.openproject.com/newsletter/" target="_blank">+ <a [href]="newsletterURL" target="_blank">{{ text.newsletter }}</a>.</span></label>diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.tsindex 0e86d10e3b0..1903d7919c1 100644--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts@@ -31,6 +31,10 @@ import {FormBuilder, Validators} from "@angular/forms";import {I18nService} from "app/modules/common/i18n/i18n.service";import {EnterpriseTrialService} from "core-components/enterprise/enterprise-trial.service";+export const termsOfServiceURL = 'https://www.openproject.com/terms-of-service/';+export const legalNoticeURL = 'https://www.openproject.com/legal-notice/';+export const newsletterURL = 'https://www.openproject.com/newsletter/';+@Component({selector: 'enterprise-trial-form',templateUrl: './ee-trial-form.component.html',@@ -48,6 +52,9 @@ export class EETrialFormComponent {newsletter_consent: null,});+ readonly termsOfServiceURL = termsOfServiceURL;+ readonly legalNoticeURL = legalNoticeURL;+ readonly newsletterURL = newsletterURL;public text = {general_consent: this.I18n.t('js.admin.enterprise.trial.form.general_consent'),invalid_email: this.I18n.t('js.admin.enterprise.trial.form.invalid_email'),diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rbindex 7b39566a40d..c4846485900 100644--- a/lib/open_project/static/links.rb+++ b/lib/open_project/static/links.rb@@ -77,6 +77,26 @@ module OpenProjecthref: 'https://www.openproject.org/enterprise-edition',label: 'homescreen.links.upgrade_enterprise_edition'},+ upsale_benefits_features: {+ href: 'https://www.openproject.org/enterprise-edition/#premium-features',+ label: 'noscript_learn_more'+ },+ upsale_benefits_installation: {+ href: 'https://www.openproject.org/enterprise-edition/#installation',+ label: 'noscript_learn_more'+ },+ upsale_benefits_security: {+ href: 'https://www.openproject.org/enterprise-edition/#security-features',+ label: 'noscript_learn_more'+ },+ upsale_benefits_support: {+ href: 'https://www.openproject.org/enterprise-edition/#professional-support',+ label: 'noscript_learn_more'+ },+ upsale_get_quote: {+ href: 'https://www.openproject.org/upgrade-enterprise-edition/',+ label: 'admin.enterprise.get_quote'+ },user_guides: {href: 'https://docs.openproject.org/user-guide/',label: 'homescreen.links.user_guides'@@ -162,6 +182,9 @@ module OpenProject},security_badge_documentation: {href: 'https://docs.openproject.org/system-admin-guide/information/#security-badge'+ },+ chargebee: {+ href: 'https://js.chargebee.com/v2/chargebee.js',}}end