Skip to content

Instantly share code, notes, and snippets.

@BrandonMathis
Created May 23, 2019 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrandonMathis/ad1a5616411ed135a5964b5d8e40314e to your computer and use it in GitHub Desktop.
Save BrandonMathis/ad1a5616411ed135a5964b5d8e40314e to your computer and use it in GitHub Desktop.
<!-- ... -->
<%= for user <- @users do %>
<tr>
<td><img src="<%= MyApp.Avatar.url({user.avatar, user}) %>"/></td>
<td><%= user.username %></td>
<td><%= user.email %></td>
<td class="text-right">
<%= link "Show", to: user_path(@conn, :show, user), class: "btn btn-default btn-xs" %>
<%= link "Edit", to: user_path(@conn, :edit, user), class: "btn btn-default btn-xs" %>
<%= link "Delete", to: user_path(@conn, :delete, user), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>
</td>
</tr>
<% end %>
<!-- ... -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment