From: Aidan Cornelius-Bell Date: Mon, 16 Jun 2025 03:59:50 +0000 (+0930) Subject: home page now shows audios X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=bee7030678ba1ce19be17aba878d3b81abe59157;p=arelpe.git home page now shows audios --- diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 5a616e0..2d9cbf4 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -317,6 +317,7 @@ blockquote { .home-full-content { max-width: 812px; + margin-left: -16px; } code { diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index e9b869d..25794af 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -23,9 +23,12 @@ posted <%= item.published_at.strftime('%d/%m/%y') %>, tagged with <%= raw item.format_tags %> -
+
+ <% if item.audio.present? && @post.audio.file.attached? %> + <%= render partial: "shared/audio_player", locals: { audio: item.audio } %> + <% end %> <%= raw item.rendered_content.html_safe %> -
+ <% else %> <%= link_to item.title, item.url, target: "_blank" %> diff --git a/app/views/pubview/post.html.erb b/app/views/pubview/post.html.erb index ea8f512..75f9540 100644 --- a/app/views/pubview/post.html.erb +++ b/app/views/pubview/post.html.erb @@ -34,12 +34,6 @@
- <% if !current_user %> -
-

<%= @promo_strings.sample %> <%= link_to "Start right now!", join_path, class: "lead-button" %>

-
- <% end %> - <% if @post.audio.present? && @post.audio.file.attached? %> <%= render partial: "shared/audio_player", locals: { audio: @post.audio } %> <% end %>