Fix utm params to source unknown and medium to community-edition

pull/5837/head
Wieland Lindenthal 7 years ago
parent 275d2fb028
commit b47e967bea
  1. 2
      app/views/custom_styles/upsale.html.erb
  2. 4
      app/views/enterprises/show.html.erb
  3. 2
      app/views/homescreen/blocks/_upsale.html.erb
  4. 4
      app/views/types/form/_form_configuration.html.erb

@ -37,7 +37,7 @@ See doc/COPYRIGHT.rdoc for more details.
<p>
<%= t('admin.custom_styles.enterprise_notice') %>
</p>
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=#{CGI.escape request.base_url}&utm_medium=custom-edition&utm_campaign=custom-styles",
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=custom-styles",
{ class: 'button -alt-highlight',
aria: {label: t('admin.enterprise.order')},
title: t('admin.enterprise.order')}) do %>

@ -3,7 +3,7 @@
<%= toolbar title: t(:label_enterprise_edition) do %>
<% if EnterpriseToken.show_banners? %>
<li class="toolbar-item">
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=#{CGI.escape request.base_url}&utm_medium=custom-edition&utm_campaign=enterprise-admin",
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=enterprise-admin",
{ class: 'button -alt-highlight',
title: t('admin.enterprise.order')}) do %>
<%= op_icon('button--icon icon-add') %>
@ -36,7 +36,7 @@
<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=#{CGI.escape request.base_url}&utm_medium=custom-edition&utm_campaign=enterprise-admin",
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=enterprise-admin",
{ class: 'button -alt-highlight',
aria: {label: t('admin.enterprise.order')},
title: t('admin.enterprise.order')}) do %>

@ -20,7 +20,7 @@
</p>
<div class="widget-box--blocks--buttons">
<%= link_to "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=#{CGI.escape request.base_url}&utm_medium=custom-edition&utm_campaign=home-screen",
<%= link_to "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=home-screen",
{ class: 'button -alt-highlight',
aria: {label: t('homescreen.blocks.upsale.more_info')},
title: t('homescreen.blocks.upsale.more_info')} do %>

@ -30,7 +30,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% form_attributes = @type.form_configuration_groups %>
<section class="form--section">
<%= f.hidden_field :attribute_groups, value: @type.attribute_groups.map { |group| [group[0], group[1], (group[0].is_a? Symbol)] }.to_json %>
<div id="types-form-configuration" op-drag-scroll ng-controller="TypesFormConfigurationCtrl" ng-init="upsaleLink = <%= '"' + OpenProject::Static::Links.links[:upsale][:href] + "/?utm_source=#{CGI.escape request.base_url}&utm_medium=custom-edition&utm_campaign=form-configuration" + '"' %>">
<div id="types-form-configuration" op-drag-scroll ng-controller="TypesFormConfigurationCtrl" ng-init="upsaleLink = <%= '"' + OpenProject::Static::Links.links[:upsale][:href] + "/?utm_source=unknown&utm_medium=community-edition&utm_campaign=form-configuration" + '"' %>">
<div class="grid-block wrap">
<div class="grid-content small-12 large-10">
<div class="notification-box -info">
@ -61,7 +61,7 @@ See doc/COPYRIGHT.rdoc for more details.
<br/>
<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=#{CGI.escape request.base_url}&utm_medium=custom-edition&utm_campaign=form-configuration",
<%= link_to( "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=form-configuration",
{ class: 'button -alt-highlight',
aria: {label: t('admin.enterprise.order')},
title: t('admin.enterprise.order')}) do %>

Loading…
Cancel
Save