Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Mar 5, 2025
1 parent 70251fb commit d55c856
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/ecosystems.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $color-grey-dark: #4C4C61;
/* Tokens to override bootstrap colours */
$primary: $color-purple;
$secondary: $color-grey;
$success: $color-green;
$success: $color-green-dark;
$info: $color-purple-light;
$warning: $color-orange-light;
$danger: $color-orange-dark;
Expand Down
9 changes: 7 additions & 2 deletions lib/tasks/ecosystems.rake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace :ecosystems do

# Copy required files
`cp #{temp_rake_file} #{ecosystems_rake_path}`
`cp #{temp_dir}/app/views/shared/_header.html.erb app/views/shared/`
`cp #{temp_dir}/app/views/shared/_footer.html.erb app/views/shared/`
`cp #{temp_dir}/app/views/layouts/application.html.erb app/views/layouts/`
`cp #{temp_dir}/app/assets/stylesheets/ecosystems.scss app/assets/stylesheets/`
Expand All @@ -50,7 +49,13 @@ namespace :ecosystems do
unless File.exist?(menu_file)
`cp #{temp_dir}/app/views/shared/_menu.html.erb #{menu_file}`
end


# Copy _header.html.erb only if it does not already exist
header_file = "app/views/shared/_header.html.erb"
unless File.exist?(header_file)
`cp #{temp_dir}/app/views/shared/_header.html.erb #{header_file}`
end

# Cleanup
`rm -rf #{temp_dir}`

Expand Down

0 comments on commit d55c856

Please sign in to comment.