From ae42f0f07d2cfe9d3b184e4a2b0bd9f8da8ad9db Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Thu, 13 Feb 2020 11:47:32 +0100 Subject: Placeholder when there are no more messages --- assets/css/app.css | 2 +- lib/waev_web/templates/exports/show.html.eex | 65 +++++++++++++++------------- 2 files changed, 37 insertions(+), 30 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 0c60267..6b5c4a6 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -64,7 +64,7 @@ body { flex-direction: row-reverse; } -.date-box { +.middle-box { background-color: var(--color-1); color: white; padding: 4px 12px 4px 12px; diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex index b9f84d5..948c125 100644 --- a/lib/waev_web/templates/exports/show.html.eex +++ b/lib/waev_web/templates/exports/show.html.eex @@ -3,47 +3,54 @@ <%= party_peek(assigns, @export.right) %> -<%= for {date, blocks} <- process_messages(@export.messages) do %> +<%= if Enum.empty?(@export.messages) do %>