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
add logos feature for support Ukraine (#15360)
Eugene0b0c3a8404c2
diff --git a/app/assets/images/logo-black-bg-ua.png b/app/assets/images/logo-black-bg-ua.pngnew file mode 100644index 00000000000..176f3cf46daBinary files /dev/null and b/app/assets/images/logo-black-bg-ua.png differdiff --git a/app/assets/images/logo-white-bg-ua.png b/app/assets/images/logo-white-bg-ua.pngnew file mode 100644index 00000000000..7278fdcf6d2Binary files /dev/null and b/app/assets/images/logo-white-bg-ua.png differdiff --git a/app/views/custom_styles/_inline_css_logo.erb b/app/views/custom_styles/_inline_css_logo.erbindex 9ac46c69ed8..c08ea944944 100644--- a/app/views/custom_styles/_inline_css_logo.erb+++ b/app/views/custom_styles/_inline_css_logo.erb@@ -27,28 +27,38 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% cache(CustomStyle.current) do %>- <style type="text/css">- <%- logo_url = asset_path("logo_openproject_white_big.png")- high_contrast_logo_url = asset_path("logo_openproject.png")- high_contrast_bim_logo_url = asset_path("bim/logo_openproject_bim_big_coloured.png")-- if apply_custom_styles?- if CustomStyle.current.logo.present?- logo_url = custom_style_logo_path(digest: CustomStyle.current.digest, filename: CustomStyle.current.logo_identifier)- elsif CustomStyle.current.theme_logo.present?- logo_url = asset_path(CustomStyle.current.theme_logo)- end+<style type="text/css">+ <%+ isRu = I18n.locale == :ru++ logo_url = if isRu+ asset_path("logo-white-bg-ua.png")+ else+ asset_path("logo_openproject_white_big.png")+ end++ high_contrast_logo_url = if isRu+ asset_path("logo-black-bg-ua.png")+ else+ asset_path("logo_openproject.png")+ end++ high_contrast_bim_logo_url = asset_path("bim/logo_openproject_bim_big_coloured.png")++ if apply_custom_styles?+ if CustomStyle.current.logo.present?+ logo_url = custom_style_logo_path(digest: CustomStyle.current.digest, filename: CustomStyle.current.logo_identifier)+ elsif CustomStyle.current.theme_logo.present?+ logo_url = asset_path(CustomStyle.current.theme_logo)end- %>+ end+ %>- .op-logo--link {- background-image: url(<%= logo_url %>);- }+ .op-logo--link {+ background-image: url(<%= logo_url %>);+ }- .op-logo--link_high_contrast {- background-image: url(<%= OpenProject::Configuration.bim? ? high_contrast_bim_logo_url : high_contrast_logo_url %>);- }- </style>-<% end %>+ .op-logo--link_high_contrast {+ background-image: url(<%= OpenProject::Configuration.bim? ? high_contrast_bim_logo_url : high_contrast_logo_url %>);+ }+</style>