Skip to content

Commit

Permalink
Fix invalid html (a link was directly under ul and ol)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 29, 2024
1 parent 7a4536b commit db8fb71
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions app/views/_tailwind/applications/_address_search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,35 @@
<div class="flex items-end">
<%= image_tag "tailwind/illustration/people-talking.svg", alt: "" %>
</div>
<ol class="space-y-8 [counter-reset:section]">
<%= render partial: "trending", collection: Application.trending.limit(3), as: :application %>
<div class="space-y-8">
<ol class="space-y-8 [counter-reset:section]">
<%= render partial: "trending", collection: Application.trending.limit(3), as: :application %>
</ol>
<%= pa_link_to "View top 20 commented applications", trending_applications_path, extra_classes: "text-2xl inline-block" %>
</ol>
</div>
<%= render Tailwind::Heading.new(tag: :h2).with_content("Latest applications across Australia") %>
<div class="flex items-end">
<%= image_tag "tailwind/illustration/houses.svg", alt: "" %>
</div>
<ul class="space-y-8">
<%# TODO: Probably want some ordering that shows applications from different places %>
<% Application.order(first_date_scraped: :desc).limit(3).each do |application| %>
<li class="flex items-start gap-6">
<%= image_tag "tailwind/clock.svg", class: "mt-1", alt: "" %>
<%= render Tailwind::LinkBlock.new(url: application_path(application)) do |c| %>
<%# TODO: Extract this piece below as a partial %>
<div class="text-2xl text-navy">
<div><%= c.linkify application.address %></div>
<div class="line-clamp-4"><%= application.description %></div>
<div class="mt-2 text-lg text-warm-grey">Found <%= time_ago_in_words(application.first_date_scraped) %> ago</div>
</div>
<% end %>
</li>
<% end %>
<div class="space-y-8">
<ul class="space-y-8">
<%# TODO: Probably want some ordering that shows applications from different places %>
<% Application.order(first_date_scraped: :desc).limit(3).each do |application| %>
<li class="flex items-start gap-6">
<%= image_tag "tailwind/clock.svg", class: "mt-1", alt: "" %>
<%= render Tailwind::LinkBlock.new(url: application_path(application)) do |c| %>
<%# TODO: Extract this piece below as a partial %>
<div class="text-2xl text-navy">
<div><%= c.linkify application.address %></div>
<div class="line-clamp-4"><%= application.description %></div>
<div class="mt-2 text-lg text-warm-grey">Found <%= time_ago_in_words(application.first_date_scraped) %> ago</div>
</div>
<% end %>
</li>
<% end %>
</ul>
<%= pa_link_to "View more latest applications", applications_path, extra_classes: "text-2xl inline-block" %>
</ul>
</div>
</div>

<section class="py-12 mt-8 text-2xl border-t border-light-grey2 text-navy">
Expand Down

0 comments on commit db8fb71

Please sign in to comment.