Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
faheempatel committed Aug 16, 2024
1 parent c6bcb82 commit 1cbc436
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/helpers/landing_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module LandingHelper
def featured_downlodable_resource_cards
def featured_downloadable_resource_cards
recitations = ResourceContent.approved.recitations
with_segments = recitations.with_segments.count
total_recitations = recitations.count
Expand Down Expand Up @@ -30,7 +30,7 @@ def featured_downlodable_resource_cards
]
end

def downlodable_resource_cards
def downloadable_resource_cards
translations = ResourceContent.approved.translations
wbw_translation = translations.one_word.count
ayah_translation = translations.one_verse.count
Expand Down
2 changes: 1 addition & 1 deletion app/views/resources/_featured_cards.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card-container-upper mt-3 gap-4">
<% featured_downlodable_resource_cards.each do |card| %>
<% featured_downloadable_resource_cards.each do |card| %>
<div class="featured-resource-card <%= card.type %>" data-search="<%= card.type %> <%= card.title.downcase %> <%= card.description.to_s.downcase %>" >
<a href="<%= card.url %>">
<div class="overlay"></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/resources/_resources_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<%= render 'featured_cards' %>

<div class="mt-4 card-container gap-4">
<% downlodable_resource_cards.each do |card| %>
<% downloadable_resource_cards.each do |card| %>
<div class="resource-card tool-card-with-bg <%= 'full-card' if card.full_width %> <%= card.type %>" data-search="<%= card.type %> <%= card.title.downcase %> <%= card.description.to_s.downcase %>">
<a href="<%= card.url %>">
<div class="overlay"></div>
Expand Down

0 comments on commit 1cbc436

Please sign in to comment.