frenzy/lib/frenzy_web/templates/group/index.html.eex

25 lines
553 B
Elixir

<a href="<%= Routes.group_path(@conn, :new) %>" class="btn btn-primary">Add Group</a>
<table class="table table-striped mt-4">
<thead>
<tr>
<th>Name</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for group <- @groups do %>
<tr>
<td>
<a href="/groups/<%= group.id %>"><%= group.title %></a>
</td>
<td>
<%= case Enum.count(group.feeds) do
1 -> "1 feed"
count -> "#{count} feeds"
end %>
</td>
</tr>
<% end %>
</tbody>
</table>