Created
May 23, 2019 15:14
-
-
Save BrandonMathis/ad1a5616411ed135a5964b5d8e40314e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<%= 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