My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
707 B

<article>
<%= link to: Routes.live_path(@conn, MirageWeb.ShowNoteLive, @note) do %>
<header class="width-full bg-content">
<h2 class="title">
<span class="id"><%= "##{@note.id}" %></span> <%= @note.title %>
</h2>
</header>
<% end %>
<section>
<div class="content html width-full bg-content">
<%= raw @note.content_html %>
</div>
</section>
<footer class="width-full bg-content">
<time datetime="<%= @note.inserted_at %>"><%= Timex.from_now(@note.inserted_at) %></time>
<span class="tags">
<%= for topic <- @note.topics do %>
<span class="tag"><%= topic.text %></span>
<% end %>
</span>
</footer class="width-full bg-content">
</article>