<%= @note.slug %>

<.link :for={tag <- @note.tags} navigate={Routes.note_index_path(Endpoint, :search, tag)} class="link" > <%= tag %>
<.note_content note={@note} />

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

<.link class="btn btn-primary" navigate={Routes.note_index_path(@socket, :index)}> <%= dgettext("actions", "back") %> <.link :if={is_owner?(@note, @current_user)} class="btn btn-primary" patch={Routes.note_show_path(@socket, :edit, @note.slug)} > <%= dgettext("actions", "edit") %>
<.modal :if={@live_action == :edit} return_to={Routes.note_show_path(@socket, :show, @note.slug)}> <.live_component module={MemexWeb.NoteLive.FormComponent} id={@note.id} current_user={@current_user} title={@page_title} action={@live_action} note={@note} return_to={Routes.note_show_path(@socket, :show, @note.slug)} />