Skip to content

Commit

Permalink
fix for featured mappers
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Jul 1, 2019
1 parent dc6c922 commit 8d2bb86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/front_ui/_featured_mappers.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div class="row map-list mx-auto mt-3">
<% mappers.each do |author, count| %>
<% mappers.each do |user, count| %>
<div class="card-deck map col-md-6 col-lg-3 col-xs-12 mb-2 ml-2">
<div class="card card-without-border">
<%= image_tag(profile_image(author[:user]), class: "img-icon card-img-top mx-auto") %>
<%= image_tag(profile_image(user), class: "img-icon card-img-top mx-auto") %>
<div class="card-body text-center" style="margin-left: -18px !important;">
<h5 class="card-title"><a href="/profile/<%= author[:user].login %>">@<%= author[:user].login %></a></h5>
<h5 class="card-title"><a href="/profile/<%= user.login %>">@<%= user.login %></a></h5>
<p class="card-text text-muted">
<%= author[:count]%> maps near <%= author[:location] %>
near <%= user.maps.first.location %>
<br>
</p>
</div>
Expand Down

0 comments on commit 8d2bb86

Please sign in to comment.