Growstuff/growstuff

View on GitHub
app/views/members/_bio.html.haml

Summary

Maintainability
Test Coverage
%h2 All about #{member.login_name}
%p
  %small
    %a{href: "#content"}
      Skip to main content
- if member.bio.blank?
  - if can? :edit, member
    = link_to "Add a bio to complete your profile.", edit_member_registration_path
  - else
    #{member.login_name} hasn't written a bio yet.
- else
  :markdown
    #{ strip_tags markdownify(member.bio) }