Created
February 29, 2012 17:41
-
-
Save trosage/1942846 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
<% if child.code_challenge? && !logged_in? %> | |
<%= badge_image child, :alt => "", :class => "object-image" %> | |
<h4><%= child.title %></h4> | |
<% else %> | |
<%= link_to_unit child do %> | |
<%= badge_image child, :alt => "", :class => "object-image" %> | |
<% if current_user && current_user.has_badge?(child.badge) %> | |
<span class="icon icon-unlocked-badge-small"></span> | |
<% end %> | |
<h4><%= child.title %></h4> | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment