Skip to content

Commit

Permalink
format highlights array
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamms committed Nov 5, 2019
1 parent b0d2984 commit de983ca
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions pegasus/sites.v3/hourofcode.com/views/home_highlights.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
:ruby
highlights = [
{:id=>64, :heading_s=>hoc_s(:highlights_constant_trudeau_heading), :short_heading_s=>hoc_s(:highlights_constant_trudeau_short_heading), :image_url_s=>"hoc-trudeau.jpg", :link_text_s=>hoc_s(:highlights_watchvideo), :url_s=>"https://www.youtube.com/watch?v=8QwT58VTj_g"},
{:id=>63, :heading_s=>hoc_s(:highlights_constant_ny_heading), :short_heading_s=>hoc_s(:highlights_constant_ny_short_heading), :image_url_s=>"chicago-2.png", :link_text_s=>hoc_s(:highlights_readmore), :url_s=>"http://www.brooklynpaper.com/stories/39/5/dtg-hour-of-code-challenge-2016-01-29-bk.html"},
{:id=>65, :heading_s=>hoc_s(:highlights_constant_athletes_heading), :short_heading_s=>hoc_s(:highlights_constant_athletes_short_heading), :image_url_s=>"athletes.png", :link_text_s=>hoc_s(:highlights_watchvideo), :url_s=>"https://code.org/athletes"}
{
id: 64,
heading_s: hoc_s(:highlights_constant_trudeau_heading),
short_heading_s: hoc_s(:highlights_constant_trudeau_short_heading),
image_url_s: "hoc-trudeau.jpg",
link_text_s: hoc_s(:highlights_watchvideo),
url_s: "https://www.youtube.com/watch?v=8QwT58VTj_g"
},
{
id: 63,
heading_s: hoc_s(:highlights_constant_ny_heading),
short_heading_s: hoc_s(:highlights_constant_ny_short_heading),
image_url_s: "chicago-2.png",
link_text_s: hoc_s(:highlights_readmore),
url_s: "http://www.brooklynpaper.com/stories/39/5/dtg-hour-of-code-challenge-2016-01-29-bk.html"
},
{
id: 65,
heading_s: hoc_s(:highlights_constant_athletes_heading),
short_heading_s: hoc_s(:highlights_constant_athletes_short_heading),
image_url_s: "athletes.png",
link_text_s: hoc_s(:highlights_watchvideo),
url_s: "https://code.org/athletes"
}
]

-if @language == 'en'
Expand Down

0 comments on commit de983ca

Please sign in to comment.