2025-02-21 11:57:59 -05:00
|
|
|
<%= content_for :page_title, t(".title") %>
|
2024-08-27 17:10:31 -04:00
|
|
|
|
2025-04-11 09:28:00 -05:00
|
|
|
<div class="bg-container shadow-border-xs rounded-xl p-4 grow overflow-y-auto">
|
2025-04-18 18:53:10 +05:30
|
|
|
<div class="flex flex-col md:flex-row justify-between gap-4 mb-12 last:mb-0">
|
|
|
|
<div class="w-full md:w-1/3">
|
|
|
|
<div class="md:px-3 flex items-center gap-3">
|
2025-05-26 19:53:25 -05:00
|
|
|
<% if @release_notes[:avatar].present? %>
|
2025-07-01 20:53:36 +03:00
|
|
|
<div class="fg-inverse shrink-0 w-9 h-9">
|
2025-05-26 19:53:25 -05:00
|
|
|
<%= image_tag @release_notes[:avatar], class: "rounded-full w-full h-full object-cover" %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="bg-gray-300 text-gray-600 shrink-0 w-9 h-9 rounded-full flex items-center justify-center text-sm font-medium">
|
|
|
|
<%= @release_notes[:username]&.first&.upcase || "?" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2025-02-21 11:57:59 -05:00
|
|
|
<div>
|
|
|
|
<a class="text-primary font-medium text-sm" href="https://github.com/<%= @release_notes[:username] %>"><%= "@#{@release_notes[:username]}" %></a>
|
2025-05-26 19:53:25 -05:00
|
|
|
<div class="text-secondary text-sm"><%= @release_notes[:published_at]&.strftime("%B %d, %Y") || "Date unavailable" %></div>
|
2024-06-14 22:40:50 +02:00
|
|
|
</div>
|
2024-09-09 16:54:56 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2025-04-18 18:53:10 +05:30
|
|
|
<div class="w-full md:w-2/3 text-secondary text-sm prose prose--github-release-notes">
|
2025-02-21 11:57:59 -05:00
|
|
|
<h2 class="mb-5 text-xl text-primary"><%= @release_notes[:name] %></h2>
|
2025-05-26 19:53:25 -05:00
|
|
|
<%= (@release_notes[:body] || "No release notes available").html_safe %>
|
2025-02-21 11:57:59 -05:00
|
|
|
</div>
|
2024-09-09 16:54:56 -04:00
|
|
|
</div>
|
2024-04-18 07:56:51 -04:00
|
|
|
</div>
|