4 Commits

  1. 15
      CHANGELOG.md
  2. 12
      lib/mirage_web/live/link_live/show.html.leex
  3. 2
      lib/mirage_web/live/note_live/show.html.leex
  4. 20
      lib/mirage_web/templates/setting/index.html.eex
  5. 2
      mix.exs

15
CHANGELOG.md

@ -5,6 +5,21 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.95.0](https://git.inhji.de/inhji/mirage/compare/v0.94.7...v0.95.0) (2021-03-29)
### Features:
* when showing a link, also show a list of notes using this link, closes #52
* add user profile to settings
### Bug Fixes:
* correct mf2 author name
## [v0.94.7](https://git.inhji.de/inhji/mirage/compare/v0.94.6...v0.94.7) (2021-03-28)

12
lib/mirage_web/live/link_live/show.html.leex

@ -23,6 +23,18 @@
<p><%= link @link.url, to: @link.url, target: "_blank" %></p>
</div>
<hr>
<section>
<h4>Notes using this</h4>
<%= for note <- @link.notes do %>
<%= live_component @socket, MirageWeb.InboxLive.ItemComponent, note: note, type: :unlinked %>
<% end %>
</section>
<hr>
<%= if @current_user do %>
<div class="buttons">
<%= live_patch "Edit", to: Routes.link_show_path(@socket, :edit, @link), class: "button", class: "button" %>

2
lib/mirage_web/live/note_live/show.html.leex

@ -27,7 +27,7 @@
</section>
<footer>
<a href="/about" class="p-author h-card">By Inhji</a> * <time datetime="<%= @note.inserted_at %>">Created <%= Timex.from_now(@note.inserted_at) %></time> * <time datetime="<%= @note.updated_at %>">Last edited <%= Timex.from_now(@note.updated_at) %></time> * <a href="<%= Routes.note_show_path(@socket, :show, @note) %>" class="u-url u-uid">Permalink</a>
By <a href="/about" class="p-author h-card">Inhji</a> * <time datetime="<%= @note.inserted_at %>">Created <%= Timex.from_now(@note.inserted_at) %></time> * <time datetime="<%= @note.updated_at %>">Last edited <%= Timex.from_now(@note.updated_at) %></time> * <a href="<%= Routes.note_show_path(@socket, :show, @note) %>" class="u-url u-uid">Permalink</a>
</footer>
<hr>

20
lib/mirage_web/templates/setting/index.html.eex

@ -2,8 +2,18 @@
<h1>Settings</h1>
</header>
<div class="width-full bg-content">
<%= for setting <- @settings do %>
<%= link setting.name, to: Routes.setting_path(@conn, :show, setting), class: "button" %>
<% end %>
</div>
<section>
<h2>Site Settings</h2>
<div class="width-full bg-content">
<%= for setting <- @settings do %>
<%= link setting.name, to: Routes.setting_path(@conn, :show, setting), class: "button" %>
<% end %>
</div>
</section>
<section>
<h2>User Settings</h2>
<%= link "Edit User", to: Routes.user_settings_path(@conn, :edit), class: "button" %>
</section>

2
mix.exs

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

Loading…
Cancel
Save