- Register/Log in (or callsign/Settings/Log out) now live next to the Map/Path/Rover links in the main header instead of a separate top menu bar - Add on_mount in UserAuth to assign current_scope on LiveView mount, and pass current_scope through to Layouts.app from every LiveView - Drop the old top <ul> from root.html.heex - Password minimum lowered from 12 to 8 characters
23 lines
559 B
Elixir
23 lines
559 B
Elixir
defmodule MicrowavepropWeb.AlgoLive do
|
|
@moduledoc false
|
|
use MicrowavepropWeb, :live_view
|
|
|
|
@external_resource "algo.md"
|
|
@algo_html "algo.md" |> File.read!() |> Microwaveprop.Markdown.to_html!()
|
|
|
|
@impl true
|
|
def mount(_params, _session, socket) do
|
|
{:ok, assign(socket, page_title: "Algorithm", content: @algo_html)}
|
|
end
|
|
|
|
@impl true
|
|
def render(assigns) do
|
|
~H"""
|
|
<Layouts.app flash={@flash} current_scope={@current_scope}>
|
|
<div class="markdown-content">
|
|
{raw(@content)}
|
|
</div>
|
|
</Layouts.app>
|
|
"""
|
|
end
|
|
end
|