Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="holdsaccounts_div">
- <% @accounts.each do |account|%>
- <div class="accountbox_div">
- <p><%= link_to image_tag(account.profile_picture), account %>
- <% @likesTotal = 0 %>
- <%= link_to account.user_name, account %>
- <% account.images.each do |image| %>
- <% @likesTotal += image.likes.count %>
- <% end %>
- </p>
- <p class="bioprobs_p"> <%= @money = account.images.count %>
- <%=
- if @money == 1
- "Image"
- else
- "Images"
- end
- %>
-
- <%= @likesTotal %>
- <%=
- if @likesTotal == 1
- "Like"
- else
- "Likes"
- end
- %>
- <%= link_to "Edit", edit_account_path(account) %> <%= link_to "Destroy", account, method: :delete, data: { confirm: "Are you sure?" } %></p>
- </div>
- <% end %>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement