From 2979c488599360277dcc939689302fb3982fd607 Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Mon, 16 Dec 2024 14:43:16 +1030 Subject: [PATCH] fixed nav on pages; added ml summaries for logged in users on dispatches if enabled in settings --- app/assets/stylesheets/application.css | 2 +- app/views/pubview/index.html.erb | 7 ++++++- app/views/pubview/show_public.html.erb | 6 ++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index ef1ed66..082a088 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -326,7 +326,7 @@ footer p { .ai-summary { transform: rotate(270deg); - margin-left: -5em; + margin-left: -5.6em; padding-right: 2em; display: inline-block; clear: both; diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index ad9d30c..3abf7e4 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -33,6 +33,11 @@ <% else %>
<%= item.generate_excerpt %>...
+ <% if item.summary? && current_user.present? && (!current_user&.hide_ai_summaries?) %> +
+ ML Summary<%= item.summary %> +
+ <% end %> <% end %> <% else %> @@ -40,7 +45,7 @@ ↗︎
<%= item.content %> <% if item.summary? && (!current_user&.hide_ai_summaries?) %>
- AI Summary<%= item.summary %> + ML Summary<%= item.summary %>
<% end %>
diff --git a/app/views/pubview/show_public.html.erb b/app/views/pubview/show_public.html.erb index a553053..efba06e 100644 --- a/app/views/pubview/show_public.html.erb +++ b/app/views/pubview/show_public.html.erb @@ -4,12 +4,10 @@ <% end %> <% content_for :title, "#{@page.title} :: mind reader" %>

<%= @page.title.downcase %>

-

Aidan’s anti-capitalist posting and sharing project

+

Aidan’s anti-capitalist posting and sharing project

-
- <%= render partial: "layouts/navigation_buttons" %> -
+<%= render partial: "layouts/navigation_buttons" %>
-- 2.39.5