<%= @note.slug %>

<.link :for={tag <- @note.tags} navigate={~p"/notes/#{tag}"} class="link"> <%= tag %>
<.note_content note={@note} />

<%= gettext("Visibility: %{visibility}", visibility: @note.visibility) %>

<.link :if={Notes.is_owner?(@note, @current_user)} class="btn btn-primary" patch={~p"/note/#{@note}/edit"} > <%= dgettext("actions", "edit") %>
<.modal :if={@live_action == :edit} return_to={~p"/note/#{@note}"}> <.live_component module={MemexWeb.NoteLive.FormComponent} id={@note.id} current_user={@current_user} title={@page_title} action={@live_action} note={@note} return_to={~p"/note/#{@note}"} />