mattvanhorn/BJJLife

View on GitHub
app/views/accounts/show.html.haml

Summary

Maintainability
Test Coverage
#account.grid
  = standard_header

  .main
    .row
      %h3.nickname= current_user.username
      %p.stats
        %span.visits #{pluralize(current_user.sign_in_count, 'visit')}
        %span.posts #{pluralize(current_user.posts.size, 'posts').gsub('0','No')}
        %span.comments #{pluralize(current_user.comments.size, 'comment').gsub('0','No')}
      %p
        Last signed in:
        %abbr.timeago{:title => current_user.updated_at.getutc.iso8601}= current_user.updated_at
      %p.teacher Teacher: #{current_user.teacher}
      %p.rank Rank: #{current_user.rank}
      %p.location #{current_user.location}

  .sidebar
    TBD