<commit_before>%h1= @user.login

= image_tag @user.gravatar_image_url(80)

%p
  = link_to "Send a message to #{@user.login}", :controller => :messages, :action => :new, :recipient => @user.login

.scorecard
  %table
    %tr
      %td
        Member since
        = @user.created_at.strftime("%B %Y")
    %tr
      %td
        = pluralize(@user.books.count, "book")
        listed
    %tr
      %td
        = pluralize(@user.borrowings.count, "book")
        borrowed
    %tr
      %td
        = pluralize(@user.loans.count, "book")
        lent
    %tr
      %td
        = (pluralize(@user.active_borrowings.count, "book"))
        currently borrowed from others
        - if @very_overdue_count > 0
          (
          = @very_overdue_count
          more than one week overdue)
    %tr
      %td
        = (pluralize(@user.active_loans.count, "book"))
        currently lent to others
%table        
  - for book in @user.books
    %tr
      %td
        = link_to image_tag(book.title.image_url), title_path(book.title)
      %td
        %span.book_list_title
          = link_to book.title.title, title_path(book.title)
        %br
          = book.title.subtitle
        %br
        %br
          = link_to book.title.authors.first.name, author_path (book.title.authors.first)<commit_msg>Added Gravatar help text; Caught case for members with no books.<commit_after>%h1= @user.login

= image_tag @user.gravatar_image_url(80)

- if current_user == @user
  .help
    Update your picture here by creating a
    %a{ :href => 'http://www.gravatar.com/' }<
      Gravatar
    using the email address you use for Sutton Bookshare.

%p
  = link_to "Send a message to #{@user.login}", :controller => :messages, :action => :new, :recipient => @user.login

.scorecard
  %table
    %tr
      %td
        Member since
        = @user.created_at.strftime("%B %Y")
    %tr
      %td
        = pluralize(@user.books.count, "book")
        listed
    %tr
      %td
        = pluralize(@user.borrowings.count, "book")
        borrowed
    %tr
      %td
        = pluralize(@user.loans.count, "book")
        lent
    %tr
      %td
        = (pluralize(@user.active_borrowings.count, "book"))
        currently borrowed from others
        - if @very_overdue_count > 0
          (
          = @very_overdue_count
          more than one week overdue)
    %tr
      %td
        = (pluralize(@user.active_loans.count, "book"))
        currently lent to others

%h2 Books

- if @user.books.count > 0
  %table        
    - for book in @user.books
      %tr
        %td
          = link_to image_tag(book.title.image_url), title_path(book.title)
        %td
          %span.book_list_title
            = link_to book.title.title, title_path(book.title)
          %br
            = book.title.subtitle
          %br
          %br
            = link_to book.title.authors.first.name, author_path (book.title.authors.first)
- else
  %p
    = @user.login
    doesn't have any books to lend right now.
{'fraction_non_alphanumeric': 0.11883182275931521, 'fraction_numerical': 0.003356831151393085, 'mean_word_length': 1.9417571569595262, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1056841', 'n_tokens_mistral': 1001, 'n_tokens_neox': 981, 'n_words': 225}