From 23bd35fa08b5875ac2b16e15f8cd52bdc1e2c97a Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Thu, 30 Jan 2025 23:16:34 +0100 Subject: [PATCH] Show 'unknown' for 'Published' on talk page if it's in a published state --- app/views/talks/_talk.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/talks/_talk.html.erb b/app/views/talks/_talk.html.erb index 3779f56c..26ca8622 100644 --- a/app/views/talks/_talk.html.erb +++ b/app/views/talks/_talk.html.erb @@ -262,7 +262,7 @@ Date: <% if talk.date %> <%= talk.formatted_date %> <% else %> unknown<% end %>
- Published: <% if talk.published_at %><%= talk.published_at.strftime("%B %d, %Y") %><% else %> not published<% end %>
+ Published: <% if talk.published_at %><%= talk.published_at.strftime("%B %d, %Y") %><% elsif talk.published_state? %> unknown <% else %> not published <% end %>
Announced: <% if talk.announced_at %><%= talk.announced_at.strftime("%B %d, %Y") %><% else %> unknown<% end %>