Skip to content

Commit

Permalink
Update trending comments to match latest design
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 21, 2024
1 parent 12368b8 commit f4f0391
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/views/_tailwind/applications/_application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<% end %>
</p>
<p class="text-lg text-warm-grey">
Found <%= time_ago_in_words(application.first_date_scraped) %>
<%= time_ago_in_words(application.first_date_scraped).capitalize %>
<% if application.respond_to? :distance %>
ago, <%= km_in_words(application.distance.to_f) %> away
<% else %>
Expand Down
29 changes: 10 additions & 19 deletions app/views/_tailwind/applications/trending.html.erb
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
<% content_for :page_title, "Most commented applications across Australia" %>
<% content_for :page_title, "Top 20 most commented" %>

<%= render Tailwind::Heading.new(tag: :h1) do %>
<%= yield :page_title %>
<% end %>

<div class="text-2xl text-navy">
<p class="mt-12">
Some planning applications attract considerably more community interest than others.
For instance, in 2016 hundreds of people in the local community opposed
<%= pa_link_to "the loss of a historic Sydney building", "https://www.planningalerts.org.au/applications/534084" %>.
Their efforts
<%= pa_link_to "succeeded in saving this building", "https://www.oaf.org.au/2016/02/10/you-saved-the-historic-alexandria-hotel-go-you/" %>,
their much loved hotel, due in no small part to their comments on Planning Alerts.
</p>

<p class="mt-6">
However you probably would not have heard about this application unless you lived nearby.
</p>
<p class="mt-12 text-2xl text-navy">
This page shows you the top 20 most commented on applications from across Australia in the last six months.
</p>

<p class="mt-6">
Now we bring you the trending applications so you can see what
people find most popular or contentious. This
page shows you the top 20 most commented on applications from across Australia in the last six months.
<section class="mt-8">
<%= render Tailwind::Heading.new(tag: :h2).with_content("Journalist?") %>
<p class="text-2xl text-navy">
When you include information from Planning Alerts in a story or post, please cite it by including a link with a full URL.
That way your readers can see the facts for themselves, understand the broader context and write their own comment.
</p>
</div>
</section>

<div class="mt-16 mb-8 divide-y divide-light-grey2 border-y border-light-grey2">
<%= render partial: "application", collection: @applications %>
Expand Down

0 comments on commit f4f0391

Please sign in to comment.