Packages

A few sentences (a paragraph) describing the project.

Current section

Files

Jump to
vtexws lib vtex_ws_web templates app index.html.eex
Raw

lib/vtex_ws_web/templates/app/index.html.eex

<h1>Listing Apps</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Api key</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for app <- @apps do %>
<tr>
<td><%= app.name %></td>
<td><%= app.api_key |> String.slice(0..20) |> (&<>/2).("...") %></td>
<td>
<span><%= link "Show", to: Routes.app_path(@conn, :show, app) %></span>
<span><%= link "Edit", to: Routes.app_path(@conn, :edit, app) %></span>
<span><%= link "Delete", to: Routes.app_path(@conn, :delete, app), method: :delete, data: [confirm: "Are you sure?"] %></span>
</td>
</tr>
<% end %>
</tbody>
</table>
<span><%= link "New App", to: Routes.app_path(@conn, :new) %></span>