Skip to content

Commit

Permalink
add cookiepolicy, privacypolicy and update logos
Browse files Browse the repository at this point in the history
Signed-off-by: ayush-billore <[email protected]>
  • Loading branch information
ayush-billore committed Nov 15, 2023
1 parent f8d3a37 commit e1403ff
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 70 deletions.
Binary file added src/oc-id/app/assets/images/favicon.ico
Binary file not shown.
7 changes: 6 additions & 1 deletion src/oc-id/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js' %>
<%= csrf_meta_tags %>
<%= favicon_link_tag asset_path('favicon.ico') %>
</head>
<body>
<div class="contain-to-grid">
Expand Down Expand Up @@ -47,7 +48,11 @@
<%= yield %>
</div>
<footer>
&copy; <%= Time.now.year %> Chef Software, Inc.
<center>
<a href="https://www.progress.com/legal/privacy-policy">Privacy Policy</a> | <a href="https://www.progress.com/legal/cookie-policy">Cookie Policy</a>
<br>
&copy; <%= Time.now.year %> Chef Software, Inc.
</center>
</footer>
<%= javascript_include_tag "application" %>
<script>
Expand Down
Binary file removed src/oc-id/lib/assets/images/chef-logo.png
Binary file not shown.
67 changes: 0 additions & 67 deletions src/oc-id/lib/assets/images/chef-logo.svg

This file was deleted.

1 change: 1 addition & 0 deletions src/oc-id/lib/assets/images/progress-chef-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/oc-id/lib/assets/javascripts/chef/components/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
var $el = $(this);

if ($el.find('> svg').length === 0) {
$el.load(Chef.Web.Core.imageUrl('chef-logo.svg'), function() {
$el.load(Chef.Web.Core.imageUrl('progress-chef-logo.svg'), function() {
var tag = $el.data('tag-line');
if (tag) {
var tag = this.querySelector('svg .tag-line text');
Expand Down
2 changes: 1 addition & 1 deletion src/oc-id/lib/chef/web/core/asset_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def chef_logo(element=:div, opts={})
classnames = (opts[:attributes][:class] || '').split(' ')
opts[:attributes][:class] = classnames.reject { |c| c == logo_classname }.push(logo_classname).join(' ')

opts[:svg] = Nokogiri::XML(open(File.join(File.dirname(__FILE__), '../../../assets/images/chef-logo.svg')))
opts[:svg] = Nokogiri::XML(open(File.join(File.dirname(__FILE__), '../../../assets/images/progress-chef-logo.svg')))

if opts[:data][:'tag-line']
opts[:svg].css('#chef-logo-tag-line text').first.content = opts[:data][:'tag-line']
Expand Down

0 comments on commit e1403ff

Please sign in to comment.