diff --git a/app/views/enterprises/_current.html.erb b/app/views/enterprises/_current.html.erb index 06eb4e6d525..c1d737fff8e 100644 --- a/app/views/enterprises/_current.html.erb +++ b/app/views/enterprises/_current.html.erb @@ -3,25 +3,25 @@ data-email="<%= @current_token.mail %>" data-company="<%= @current_token.try(:company) %>" data-domain="<%= @current_token.try(:domain) %>" - data-user-count="<%= @current_token.restrictions.nil? ? t('js.admin.enterprise.upsale.unlimited') : @current_token.restrictions[:active_user_count] %>" + data-user-count="<%= @current_token.restrictions.nil? ? t("js.admin.enterprise.upsale.unlimited") : @current_token.restrictions[:active_user_count] %>" data-starts-at="<%= format_date @current_token.starts_at %>" - data-expires-at="<%= (!@current_token.will_expire?) ? t('js.admin.enterprise.upsale.unlimited') : (format_date @current_token.expires_at) %>" + data-expires-at="<%= @current_token.will_expire? ? (format_date @current_token.expires_at) : t("js.admin.enterprise.upsale.unlimited") %>" data-is-expired="<%= @current_token.expired?(reprieve: false) %>" - data-reprieve-days-left="<%= @current_token.reprieve_days_left %>" -> + data-reprieve-days-left="<%= @current_token.reprieve_days_left %>"> -<%= form_tag(enterprise_path, - method: :delete, - data: augmented_confirmation_dialog( - danger_zone: true, - text: t('admin.enterprise.delete_token_modal.text'), - title: t('admin.enterprise.delete_token_modal.title'), - button_continue: t(:button_delete), - icon_continue: 'delete' - ) +<%= form_tag( + enterprise_path, + method: :delete, + data: augmented_confirmation_dialog( + danger_zone: true, + text: t("admin.enterprise.delete_token_modal.text"), + title: t("admin.enterprise.delete_token_modal.title"), + button_continue: t(:button_delete), + icon_continue: "delete" + ) ) do %> <%= styled_button_tag t(:button_delete), method: :delete, - class: '-with-icon icon-delete' %> + class: "-with-icon icon-delete" %> <% end %> diff --git a/app/views/enterprises/_info.html.erb b/app/views/enterprises/_info.html.erb index 14ac7797514..28e409b7e46 100644 --- a/app/views/enterprises/_info.html.erb +++ b/app/views/enterprises/_info.html.erb @@ -27,9 +27,8 @@ See COPYRIGHT and LICENSE files for more details. ++#%> <% content_for :header_tags do %> - + <%= nonced_javascript_include_tag OpenProject::Static::Links.links[:chargebee][:href], + "data-cb-site": OpenProject::Configuration.enterprise_chargebee_site %> <% end %>
@@ -42,31 +41,31 @@ See COPYRIGHT and LICENSE files for more details. class="button -highlight-inverted" data-cb-type="checkout" data-cb-plan-id="<%= OpenProject::Configuration.enterprise_plan %>"> - <%= t('admin.enterprise.book_now') %> + <%= t("admin.enterprise.book_now") %> <% quote_link = OpenProject::Static::Links.links.fetch :upsale_get_quote %> <%= link_to t(quote_link[:label]), quote_link[:href], - target: '_blank', - class: 'button -highlight-inverted'%> + target: "_blank", + class: "button -highlight-inverted" %>
<%= static_link_to :contact %>