Skip to content

Commit

Permalink
fix show 0 more error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonxuxu committed Dec 10, 2018
1 parent aad6d1f commit 1d96583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/grids/_people.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<% end %>
<td class="username"><a href="/profile/<%= user.username %>"><%= user.username %></a> <%=user.new_contributor %></td>
</tr>
<% if index == 9 %>
<% if index == 10 %>
<tr class="show-all">
<td><a>Show <%= users.length - 10 %> more <b class="caret"></b></a></td>
<td></td>
Expand All @@ -32,7 +32,7 @@
<p><a class="btn btn-primary" href="/profile/tags/create/<%= current_user.id %>?name=<%= tagname %>">Join this group</a></p>
<% else %>
<p><a class="btn btn-primary disabled" href="">Join this group</a></p>
<p><a data-toggle="modal" data-target="#loginModal"> Login/Sign up </a> to join. </p>
<p><a data-toggle="modal" data-target="#loginModal">Login/Sign Up to join!</a></p>
<% end %>
<script>
(function(){
Expand Down

0 comments on commit 1d96583

Please sign in to comment.