27 lines
570 B
Elixir
27 lines
570 B
Elixir
<h1>Groups</h1>
|
|
<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>
|