28 lines
627 B
Elixir
28 lines
627 B
Elixir
|
<h1>Pipelines</h1>
|
||
|
<a href="<%= Routes.pipeline_path(@conn, :new) %>" class="btn btn-primary">Add Pipeline</a>
|
||
|
|
||
|
<table class="table table-striped mt-4">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Stage Count</th>
|
||
|
<th>Feed Count</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<%= for pipeline <- @pipelines do %>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="/pipelines/<%= pipeline.id %>"><%= pipeline.name %></a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= pipeline.stages |> Enum.count() %>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= pipeline.feeds |> Enum.count() %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|