From: Aidan Cornelius-Bell Date: Sun, 8 Dec 2024 07:19:31 +0000 (+1030) Subject: added 'ai summaries' to the home page, bloody yikes folks. X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=84d68ae04d8f1aab7571f0dcc8d689dd2a9f63f9;p=arelpe.git added 'ai summaries' to the home page, bloody yikes folks. --- diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 4f0692b..c53781f 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -311,6 +311,15 @@ footer p { padding: 20px; } +.ai-summary { + transform: rotate(270deg); + margin-left: -5em; + padding-right: 2em; + display: inline-block; + clear: both; + text-indent: -34px; +} + .aidans_arrow { max-width: 70px; float: right; diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index 23e0232..f77ccfe 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -38,6 +38,11 @@ <%= link_to item.title, item.url, target: "_blank" %> ↗︎
<%= item.content %> + <% if item.summary? %> +
+ AI Summary<%= item.summary %> +
+ <% end %>
added <%= item.created_at.strftime('%l:%M%P on %d/%m/%y') if item.created_at.present? %> <%= link_to "❧", "/#{item.updated_at.year}/#{item.slug}", title: "permalink" %>