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

update upsale home screen block

bsatarnejad6e7889fba5e4
diff --git a/app/views/homescreen/blocks/_upsale.html.erb b/app/views/homescreen/blocks/_upsale.html.erb
index 8265a594df8..fca10b0daa3 100644
--- a/app/views/homescreen/blocks/_upsale.html.erb
+++ b/app/views/homescreen/blocks/_upsale.html.erb
@@ -1,31 +1,43 @@
-<%= render 'homescreen/blocks/header', title: t('homescreen.blocks.upsale.title') %>
-
<div class="widget-box--description">
<%= image_tag "enterprise_edition.png", class: "widget-box--teaser-image" %>
- <p>
+ <div class="widget-box--blocks--upsale-title">
+ <%= op_icon('button--icon icon-medal') %>
+ <span><%= t('homescreen.blocks.upsale.title') %></span>
+ <p class="widget-box--blocks--upsale-description">
<%= t('js.admin.enterprise.upsale.text') %>
- </p>
+ </p>
+ </div>
+
</div>
-<div class="widget-box--blocks--buttons">
- <% if current_user.admin? %>
- <%= link_to t('js.admin.enterprise.upsale.button_start_trial'), enterprise_path, class: 'button -alt-highlight' %>
- <% end %>
+<strong><%= t('js.admin.enterprise.upsale.become_hero') %></strong>
+
+<span><%= t('js.admin.enterprise.upsale.you_contribute') %></span>
+
+<p class="widget-box--blocks--upsale-description">
+ <b><%= t('js.admin.enterprise.upsale.confidence') %></b>
+</p>
+<div class="widget-box--blocks--upsale-buttons">
<%= link_to "#{OpenProject::Static::Links.links[:upsale][:href]}/?utm_source=unknown&utm_medium=community-edition&utm_campaign=home-screen",
- { class: 'button -highlight-inverted',
- aria: {label: t('homescreen.blocks.upsale.more_info')},
- target: '_blank',
- title: t('homescreen.blocks.upsale.more_info')} do %>
+ { class: 'button--link widget-box--blocks--upsale-info-button',
+ aria: {label: t('homescreen.blocks.upsale.more_info')},
+ target: '_blank',
+ title: t('homescreen.blocks.upsale.more_info')} do %>
<span class="button--text"><%= t('homescreen.blocks.upsale.more_info') %></span>
<%= op_icon('button--icon icon-external-link') %>
<% end %>
-</div>
-
-<span><b><%= t('js.admin.enterprise.upsale.become_hero') %></b></span>
-<p><%= t('js.admin.enterprise.upsale.you_contribute') %></p>
+ <%= link_to( "https://www.openproject.org/pricing/",
+ { class: 'button -highlight',
+ aria: {label: t('admin.enterprise.buttons.upgrade')},
+ target: '_blank',
+ title: t('admin.enterprise.buttons.upgrade')}) do %>
+ <%= op_icon('button--icon icon-medal') %>
+ <span class="button--text"><%= t('admin.enterprise.buttons.upgrade') %></span>
+ <% end %>
-<p>
- <b><%= t('js.admin.enterprise.upsale.confidence') %></b>
-</p>
+ <% if current_user.admin? %>
+ <%= link_to t('js.admin.enterprise.upsale.button_start_trial'), enterprise_path, class: 'button -alt-highlight' %>
+ <% end %>
+</div>
\ No newline at end of file
diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sass
index cca03538483..aa92ea9d669 100644
--- a/frontend/src/global_styles/content/_enterprise.sass
+++ b/frontend/src/global_styles/content/_enterprise.sass
@@ -41,3 +41,20 @@
.token-form textarea
font-family: "Lucida Console", Monaco, monospace
max-width: 560px
+
+.widget-box--blocks--upsale-buttons
+ display: flex
+ justify-content: end
+
+.widget-box--blocks--upsale-info-button
+ margin: 0.5rem 1rem 0 0
+
+.widget-box--blocks--upsale-title
+ font-weight: 400
+ font-size: 20px
+ line-height: 24px
+ margin-top: 10px
+
+.widget-box--blocks--upsale-description
+ margin: 10px 0 10px 0
+ display: flex
\ No newline at end of file