mix format
This commit is contained in:
parent
d24ee9e69f
commit
13a6eddf1b
1 changed files with 12 additions and 13 deletions
|
@ -5,9 +5,9 @@
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-2 text-sm leading-6 text-theme-base">
|
<p class="mt-2 text-sm leading-6 text-theme-base">
|
||||||
<%= if @note.published_at do %>
|
<%= if @note.published_at do %>
|
||||||
<span>Published</span>
|
<span>Published</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span>Unpublished</span>
|
<span>Unpublished</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<time class="text-theme-primary font-semibold"><%= pretty_date(@note.published_at) %></time>
|
<time class="text-theme-primary font-semibold"><%= pretty_date(@note.published_at) %></time>
|
||||||
<span>·</span>
|
<span>·</span>
|
||||||
|
@ -58,13 +58,13 @@
|
||||||
|
|
||||||
<aside id="comments" class="flex flex-col gap-6">
|
<aside id="comments" class="flex flex-col gap-6">
|
||||||
<%= for comment <- @note.comments do %>
|
<%= for comment <- @note.comments do %>
|
||||||
<article class="text-theme-base bg-theme-base/10 p-1">
|
<article class="text-theme-base bg-theme-base/10 p-1">
|
||||||
<header class="flex flex-row justify-between">
|
<header class="flex flex-row justify-between">
|
||||||
<strong class="text-theme-primary"><%= comment.author_name %></strong>
|
<strong class="text-theme-primary"><%= comment.author_name %></strong>
|
||||||
<span class="text-theme-dim"><%= from_now(comment.inserted_at) %></span>
|
<span class="text-theme-dim"><%= from_now(comment.inserted_at) %></span>
|
||||||
</header>
|
</header>
|
||||||
<p><%= comment.content %></p>
|
<p><%= comment.content %></p>
|
||||||
</article>
|
</article>
|
||||||
<% end %>
|
<% end %>
|
||||||
</aside>
|
</aside>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -82,5 +82,4 @@
|
||||||
<.button>Submit Comment</.button>
|
<.button>Submit Comment</.button>
|
||||||
</:actions>
|
</:actions>
|
||||||
</.simple_form>
|
</.simple_form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue