Fixed list of donators link not including donorplus badge.

This commit is contained in:
Logan Fick
2017-07-31 15:41:37 -04:00
parent 5f17385343
commit 6aee102114
4 changed files with 7 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
<li>Donator+ ($20 or more)
</ul>
<p>We also have <%= link_to "list of users who donated", users_path(badge: "donor") %> already!</p>
<p>We also have <%= link_to "list of users who donated", users_path(donor: "") %> already!</p>
<h3>Perks for you</h3>
<p>For <i>Donator</i> and <i>Donator+</i></p>

View File

@@ -14,6 +14,8 @@
text = "All '#{params[:role]}' and '#{params[:badge]}' users"
elsif params.include?(:staff)
text = "All staff"
elsif params.include?(:donor)
text = "All donors"
else
text = "All users"
end