planner/lib/planner_web/templates/task/index.html.eex

9 lines
256 B
Elixir

<%= link "new", to: Routes.task_path(@conn, :new), class: "button is-dark" %>
<div class="content">
<ul class="tasks">
<%= for task <- @tasks do %>
<li><%= render "task.html", Map.put(assigns, :task, task) %></li>
<% end %>
</ul>
</div>