Use core upsale template (#8)

[ci skip]
pull/6827/head
Oliver Günther 7 years ago committed by GitHub
parent 7f02918a43
commit 45525ddaf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      app/views/two_factor_authentication/upsale.html.erb
  2. 3
      config/locales/en.yml

@ -1,30 +1,11 @@
<% html_title(t(:label_administration), t('two_factor_authentication.settings.title')) -%> <% html_title(t(:label_administration), t('two_factor_authentication.settings.title')) -%>
<%= breadcrumb_toolbar(t('two_factor_authentication.settings.title')) %> <%= breadcrumb_toolbar(t('two_factor_authentication.settings.title')) %>
<div class="notification-box upsale-notification">
<div class="notification-box--content">
<h3><%= t('admin.enterprise.upgrade_to_ee') %></h3>
<%= image_tag "enterprise_edition.png", class: "widget-box--teaser-image" %>
<p><%= t('homescreen.blocks.upsale.description') %></p> <%= render partial: 'common/upsale',
locals: {
feature_title: t('two_factor_authentication.upsale.title'),
feature_description: t('two_factor_authentication.upsale.description'),
feature_reference: '2fa'
} %>
<ul class="">
<li>
<%= t('homescreen.blocks.upsale.additional_features') %>
</li>
<li>
<%= t('homescreen.blocks.upsale.professional_support') %>
</li>
</ul>
<p>
<b><%= t('homescreen.blocks.upsale.become_hero') %></b> <%= t('homescreen.blocks.upsale.you_contribute') %>
</p>
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=2fa",
{ class: 'button -alt-highlight',
aria: {label: t('admin.enterprise.order')},
title: t('admin.enterprise.order')}) do %>
<%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= t('admin.enterprise.order') %></span>
<% end %>
</div>
</div>

@ -70,6 +70,9 @@ en:
button_register_mobile_phone_for_user: 'Register mobile phone' button_register_mobile_phone_for_user: 'Register mobile phone'
text_2fa_enabled: 'Upon every login, this user will be requested to enter a OTP token from his default 2FA device.' text_2fa_enabled: 'Upon every login, this user will be requested to enter a OTP token from his default 2FA device.'
text_2fa_disabled: "The user did not set up a 2FA device through his 'My account page'" text_2fa_disabled: "The user did not set up a 2FA device through his 'My account page'"
upsale:
title: 'Two-factor authentication is an enterprise feature'
description: 'Strenghten your internal or external authentication mechanisms with a second factor.'
backup_codes: backup_codes:
none_found: No backup codes exist for this account. none_found: No backup codes exist for this account.
singular: Backup code singular: Backup code

Loading…
Cancel
Save