<commit_before>#book-preview.modal.fade
.container
  %h1 Libros
  .row
    - all_books.each do |book|
      .book-container.col-xs-12.col-sm-6.col-md-5.col-lg-4
        %img.pull-left{src: 'http://placehold.it/150x220'}
        .book-info.col-xs-4.col-sm-6.col-md-6
          .row
            = link_to book.title, book_path(book.slug), class: 'book-title', data: { slug: book.slug }
          .row
            por 
            = raw(authors_links(book))
          - if book.copies > 0 
            .row
              %button.btn.btn-success{:type => "submit"} Pedir prestado
          - else
            .row 
              %button.btn.disabled{:type => "submit"} Copias agotadas
          - if current_user.admin?
            .row
              = link_to icon(:edit), edit_book_path(book.slug)
              = link_to icon(:trash), book.slug, data: { confirm: '¿Quieres borrar este libro?' }, method: :delete
  %hr<commit_msg>Agrega el nuevo marcado de Home adaptado para moviles<commit_after>#book-preview.modal.fade
.container
  %h1 Libros
  .row
    - all_books.each do |book|
      .book-container.col-xs-6.col-sm-6.col-md-4.col-lg-4
        .row 
          .book-info
            .col-xs-6.col-sm-6.col-md-6.col-lg-6
              %img{src: 'http://placehold.it/150x220'}
            .col-xs-6.col-sm-6.col-md-6.col-lg-6
              = link_to book.title, book_path(book.slug), class: 'book-title', data: { slug: book.slug }
              %p
                por  
                = raw(authors_links(book))
              - if book.copies > 0 
                %button.btn.btn-success{:type => "submit"} Pedir prestado
              - else
                %button.btn.disabled{:type => "submit"} Copias agotadas
              - if current_user.admin?
                = link_to icon(:edit), edit_book_path(book.slug)
                = link_to icon(:trash), book.slug, data: { confirm: '¿Quieres borrar este libro?' }, method: :delete
  %hr
{'fraction_non_alphanumeric': 0.14300411522633744, 'fraction_numerical': 0.018518518518518517, 'mean_word_length': 1.6643835616438356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3284691', 'n_tokens_mistral': 686, 'n_tokens_neox': 666, 'n_words': 118}