lib/scaffolding/transformer.rb in bullet_train-super_scaffolding-1.0.15 vs lib/scaffolding/transformer.rb in bullet_train-super_scaffolding-1.0.16
- old
+ new
@@ -1345,19 +1345,23 @@
puts ""
puts "OK, great! Let's do this! By default these menu items appear with a puzzle piece, but after you hit enter I'll open two different pages where you can view other icon options. When you find one you like, hover your mouse over it and then come back here and and enter the name of the icon you want to use. (Or hit enter to skip this step.)"
$stdin.gets.chomp
if `which open`.present?
`open https://themify.me/themify-icons`
- `open https://fontawesome.com/icons?d=gallery&s=light`
+ if font_awesome?
+ `open https://fontawesome.com/icons?d=gallery&s=light`
+ end
else
puts "Sorry! We can't open these URLs automatically on your platform, but you can visit them manually:"
puts ""
puts " https://themify.me/themify-icons"
- puts " https://fontawesome.com/icons?d=gallery&s=light"
+ if font_awesome?
+ puts " https://fontawesome.com/icons?d=gallery&s=light"
+ end
puts ""
end
puts ""
- puts "Did you find an icon you wanted to use? Enter the full CSS class here (e.g. 'ti ti-globe' or 'fal fa-puzzle-piece') or hit enter to just use the puzzle piece:"
+ puts "Did you find an icon you wanted to use? Enter the full CSS class here (e.g. 'ti ti-world'#{" or 'fal fa-puzzle-piece'" if font_awesome?}) or hit enter to just use the puzzle piece:"
icon_name = $stdin.gets.chomp
puts ""
unless icon_name.length > 0 || icon_name.downcase == "y"
icon_name = "fal fa-puzzle-piece ti ti-gift"
end