17 lines
388 B
Elixir
17 lines
388 B
Elixir
|
<a href="<%= Routes.group_path(@conn, :new) %>" class="button">Add Group</a>
|
||
|
|
||
|
<table>
|
||
|
<%= 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 %>
|
||
|
</table>
|