display note backlinks in contexts

This commit is contained in:
2022-11-26 16:36:30 -05:00
parent ca5b29c914
commit 3dceb17085
9 changed files with 81 additions and 52 deletions

View File

@ -20,7 +20,7 @@
class: "input input-primary h-64 min-h-64",
phx_hook: "MaintainAttrs",
phx_update: "ignore",
placeholder: gettext("content")
placeholder: gettext("use [[note-slug]] to link to a note")
) %>
<%= error_tag(f, :content) %>

View File

@ -1,6 +1,6 @@
defmodule MemexWeb.ContextLive.Show do
use MemexWeb, :live_view
import MemexWeb.Components.ContextContent
alias Memex.{Accounts.User, Contexts, Contexts.Context}
@impl true

View File

@ -5,14 +5,7 @@
<p><%= if @context.tags, do: @context.tags |> Enum.join(", ") %></p>
<textarea
id="show-context-content"
class="input input-primary h-128 min-h-128"
phx-hook="MaintainAttrs"
phx-update="ignore"
readonly
phx-no-format
><%= @context.content %></textarea>
<.context_content context={@context} />
<p class="self-end">
<%= gettext("Visibility: %{visibility}", visibility: @context.visibility) %>