Skip to content

Commit

Permalink
refactor $FOOTER_LINKS loop to use key, value and not only the keys
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed May 8, 2023
1 parent 9b67684 commit 926bbc1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/layouts/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
%a{:href => link[:link], :target => "_blank"}
%img{:src => "#{asset_path(link[:logo])}"}/
.footer-nav-links
- $FOOTER_LINKS[:sections].keys.each do |section|
- $FOOTER_LINKS[:sections].each do |key, section_links|
%div
%h2
= t("layout.footer."+section)
= t("layout.footer."+key.to_s)
%div
- $FOOTER_LINKS[:sections][section].keys.each do |item|
%a{:href => $FOOTER_LINKS[:sections][section][item], :target => "_blank"}
= t("layout.footer."+section)
- section_links.each do |section , link|
%a{:href => link, :target => "_blank"}
= t("layout.footer."+section.to_s)



Expand Down

0 comments on commit 926bbc1

Please sign in to comment.