From f6056515f8d2f8bb80f601b352e17ce16f14a965 Mon Sep 17 00:00:00 2001 From: Cyril Blaecke Date: Tue, 2 Jul 2024 23:18:47 +0200 Subject: [PATCH] =?UTF-8?q?Document=20preview=20=E2=9C=A8=20(#42)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/documents/_document.html.erb | 11 ++++------- app/views/documents/show.html.erb | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/views/documents/_document.html.erb b/app/views/documents/_document.html.erb index 0558674..0284aec 100644 --- a/app/views/documents/_document.html.erb +++ b/app/views/documents/_document.html.erb @@ -1,9 +1,6 @@
-

- Title: - <%= document.title %> -

-

- <%= document.content&.first(100) %> -

+

<%= document.title %>

+ + +
diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index c4cdc09..29057e9 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -1,4 +1,4 @@ -
+
<% if notice.present? %>

<%= notice %>