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

17 lines
388 B
Elixir
Raw Normal View History

2019-03-21 23:21:56 +00:00
<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>