defmodule ComfycampWeb.NotesHTML do @moduledoc """ This module contains pages rendered by NotesController. """ use ComfycampWeb, :html def index(assigns) do ~H"""

Заметки

<%= for note <- @notes do %>
<.link href={~p"/notes/#{note}"}>

<%= note.title %>

<%= note.inserted_at %>
<% end %>
""" end def show(assigns) do ~H"""

<%= @note.title %>

<.back navigate={~p"/notes"}>К списку заметок

Создана: <%= @note.inserted_at %>

Обновлена: <%= @note.updated_at %>

<%= raw(@note_body) %>
""" end end