2 Commits

  1. 9
      CHANGELOG.md
  2. 16
      lib/mirage_web/live/note_live/index.html.leex
  3. 2
      mix.exs

9
CHANGELOG.md

@ -5,6 +5,15 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.94.7](https://git.inhji.de/inhji/mirage/compare/v0.94.6...v0.94.7) (2021-03-28)
### Bug Fixes:
* clean up note index
## [v0.94.6](https://git.inhji.de/inhji/mirage/compare/v0.94.5...v0.94.6) (2021-03-28)

16
lib/mirage_web/live/note_live/index.html.leex

@ -40,13 +40,7 @@
<h3><i class="bi bi-pencil"></i> Last Edited</h3>
<%= for note <- @notes.last_edited do %>
<article>
<h4>
<%= link note.title, to: Routes.note_show_path(@socket, :show, note) %>
<time><%= note.updated_at |> Timex.from_now() %></time>
</h4>
<p><%= note.content |> String.slice(0..50) %></p>
</article>
<%= live_component @socket, MirageWeb.InboxLive.ItemComponent, note: note, type: :unlinked %>
<% end %>
</section>
@ -56,12 +50,6 @@
<h3><i class="bi bi-eyeglasses"></i> Most Viewed</h3>
<%= for note <- @notes.most_viewed do %>
<article>
<h4>
<%= link note.title, to: Routes.note_show_path(@socket, :show, note) %>
<time><%= note.updated_at |> Timex.from_now() %></time>
</h4>
<p><%= note.content |> String.slice(0..50) %></p>
</article>
<%= live_component @socket, MirageWeb.InboxLive.ItemComponent, note: note, type: :unlinked %>
<% end %>
</section>

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.94.6"
@version "0.94.7"
def project do
[

Loading…
Cancel
Save