]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
home page now shows audios
authorAidan Cornelius-Bell <[email protected]>
Mon, 16 Jun 2025 03:59:50 +0000 (13:29 +0930)
committerAidan Cornelius-Bell <[email protected]>
Mon, 16 Jun 2025 03:59:50 +0000 (13:29 +0930)
app/assets/stylesheets/application.css
app/views/pubview/index.html.erb
app/views/pubview/post.html.erb

index 5a616e0264e6fd7205a40cec950cfab95873b695..2d9cbf4ff83e84eb9424b911478b6dbcd2fd0559 100644 (file)
@@ -317,6 +317,7 @@ blockquote {
 
 .home-full-content {
     max-width: 812px;
+    margin-left: -16px;
 }
 
 code {
index e9b869d68512b9edf7a969fdd89a89b7ba1b0ed5..25794af0c85127fdc475e8afeac326c43cf6c4d5 100644 (file)
             </span>
             <span class="dash">&mdash;</span>
             <span class="meta">posted <%= item.published_at.strftime('%d/%m/%y') %>, tagged with <%= raw item.format_tags %></span>
-            <blockquote class="home-full-content full-content">
+            <main class="home-full-content full-content">
+              <% if item.audio.present? && @post.audio.file.attached? %>
+                  <%= render partial: "shared/audio_player", locals: { audio: item.audio } %>
+              <% end %>
               <%= raw item.rendered_content.html_safe %>
-            </blockquote>
+            </main>
           <% else %>
             <span class="post-link">
               <%= link_to item.title, item.url, target: "_blank" %>
index ea8f512e1051d99409f573ecb86d3ebda7de8643..75f95404ac54cfbfb5464cd16240183e3edde93b 100644 (file)
 
 <div class="post">
   <div class="container">
-    <% if !current_user %>
-        <div class="promo">
-            <p class="lead"><%= @promo_strings.sample %> <%= link_to "Start right now!", join_path, class: "lead-button" %></p>
-        </div>
-    <% end %>
-
     <% if @post.audio.present? && @post.audio.file.attached? %>
         <%= render partial: "shared/audio_player", locals: { audio: @post.audio } %>
     <% end %>