page_live.html.leex 243 B

123456
  1. <section class="phx-hero">
  2. <h1>It works !</h1>
  3. <%= if @repo_started, do: "Repo started", else: "Repo not started" %>
  4. <%= unless @repo_started do %><button phx-click="start_repo">Try to connect to database..</button><% end %>
  5. </section>