From 394fb754fef81de0b36a67ccb2d1365dd2f165e9 Mon Sep 17 00:00:00 2001 From: marco ranieri Date: Tue, 24 May 2022 15:20:36 +0200 Subject: [PATCH] FIX: display updated_at first, otherwise published_at date + bump station VERSION --- lib/nexmo_developer/app/views/blog/blogpost/show.html.erb | 5 ++--- lib/nexmo_developer/version.rb | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb b/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb index 77444fe30..6a4f86461 100644 --- a/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb +++ b/lib/nexmo_developer/app/views/blog/blogpost/show.html.erb @@ -89,9 +89,8 @@ <% end %> - <% if @blogpost.updated_at.present? %> -

Last updated on <%= @blogpost.updated_at.strftime('%b %d, %Y') %>

- <% end %> + <% updated = @blogpost.updated_at.present? ? @blogpost.updated_at : @blogpost.published_at %> +

Last updated on <%= updated.strftime('%b %d, %Y') %>

<%= raw @blogpost.content %>
diff --git a/lib/nexmo_developer/version.rb b/lib/nexmo_developer/version.rb index 74de50df2..29c22c275 100644 --- a/lib/nexmo_developer/version.rb +++ b/lib/nexmo_developer/version.rb @@ -1,3 +1,3 @@ module NexmoDeveloper - VERSION = '0.2.5'.freeze + VERSION = '0.2.6'.freeze end