From 52b52c7b09a51af60a847d8956824f0dcae8c99b Mon Sep 17 00:00:00 2001
From: Guillermo Ramos
Date: Tue, 4 Feb 2020 18:11:46 +0100
Subject: And closer
---
lib/waev_web/templates/exports/show.html.eex | 25 +++++++++++++++++++------
lib/waev_web/templates/layout/app.html.eex | 9 +--------
2 files changed, 20 insertions(+), 14 deletions(-)
(limited to 'lib/waev_web')
diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex
index b8cb69c..2d72e2e 100644
--- a/lib/waev_web/templates/exports/show.html.eex
+++ b/lib/waev_web/templates/exports/show.html.eex
@@ -1,20 +1,33 @@
ID: <%= @id %>
-
+
- <%= @export.left %>
+ <%= @export.left.name %>
- <%= @export.right %>
+ <%= @export.right.name %>
<%= for message <- @export.messages do %>
-
+ <%= case message.side do %>
+ <% :left -> %>
+
+ <% :right -> %>
+
+ <% nil -> %>
+
+ <% end %>
+ <%= case message.attachment do %>
+ <% %Waev.Export.Message.File{filename: filename} -> %>
+
<%= filename %>
+ <% nil -> %>
+ <% end %>
<%= message.text %>
-
- <%= message.date %>
+
+ <%= message.date %>
+
<% end %>
diff --git a/lib/waev_web/templates/layout/app.html.eex b/lib/waev_web/templates/layout/app.html.eex
index 3eb7e3a..d83e5bc 100644
--- a/lib/waev_web/templates/layout/app.html.eex
+++ b/lib/waev_web/templates/layout/app.html.eex
@@ -11,14 +11,7 @@
--
cgit v1.2.3