<commit_before>=render "links/header"
.main-container.container
  - flash.each do |name, msg|
    div class=("alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'}")
      span.close data-dismiss="alert"  &times;
      = msg
  .row
    .col-md-12
      - if @links.empty?
        = render "links/noresults"
      - else
        ul.nav.nav-pills.sorting-options
          li.active
            a data-toggle="pill" href="#newest"  Newest
          li
             a data-toggle="pill" href="#popular"  Popular
          li.pull-right
             a data-toggle="pill" href="#resource"  Add resource
        .tab-content
          .tab-pane.active
            - @links.each do |link|
              ul.list-group
                li.list-group-item
                  span.badge
                    #topic.upvote
                      a.upvote data-target="#myModal" data-toggle="modal"
                      span.count 0
                      a.downvote data-target="#myModal" data-toggle="modal"
                  p
                    = link_to link.title, link.url, target: "_blank"
                  p
                    = link_to link.url do
                      = link.description

            .row.visible-lg.visible-md.visible-sm
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                = will_paginate @links, renderer: BootstrapPagination::Rails
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                button.pull-right.btn.btn-primary.btn-lg data-target="#myModal" data-toggle="modal"
                  | Add resource
            .row.hidden-lg.row.hidden-md.row.hidden-sm.text-center
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                ul.pagination
                  li
                    a href='#'
                      | &laquo;
                  - 5.times do |i|
                    li class="#{'active' if i==1}"
                      a href='#'
                        = i + 1
                  li
                    a href='#'
                      | &raquo;
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                button.btn.btn-primary.btn-lg.add-res-bot data-target="#myModal" data-toggle="modal"
                  | Add resource<commit_msg>Add pagination for small bootstrap grid<commit_after>=render "links/header"
.main-container.container
  - flash.each do |name, msg|
    div class=("alert alert-#{name.to_s == 'notice' ? 'success' : 'danger'}")
      span.close data-dismiss="alert"  &times;
      = msg
  .row
    .col-md-12
      - if @links.empty?
        = render "links/noresults"
      - else
        ul.nav.nav-pills.sorting-options
          li.active
            a data-toggle="pill" href="#newest"  Newest
          li
             a data-toggle="pill" href="#popular"  Popular
          li.pull-right
             a data-toggle="pill" href="#resource"  Add resource
        .tab-content
          .tab-pane.active
            - @links.each do |link|
              ul.list-group
                li.list-group-item
                  span.badge
                    #topic.upvote
                      a.upvote data-target="#myModal" data-toggle="modal"
                      span.count 0
                      a.downvote data-target="#myModal" data-toggle="modal"
                  p
                    = link_to link.title, link.url, target: "_blank"
                  p
                    = link_to link.url do
                      = link.description

            .row.visible-lg.visible-md.visible-sm
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                = will_paginate @links, renderer: BootstrapPagination::Rails
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                button.pull-right.btn.btn-primary.btn-lg data-target="#myModal" data-toggle="modal"
                  | Add resource
            .row.hidden-lg.row.hidden-md.row.hidden-sm.text-center
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                = will_paginate @links, renderer: BootstrapPagination::Rails
              .col-xs-12.col-sm-6.col-md-6.col-lg-6
                button.btn.btn-primary.btn-lg.add-res-bot data-target="#myModal" data-toggle="modal"
                  | Add resource
{'fraction_non_alphanumeric': 0.12702573879885606, 'fraction_numerical': 0.011677788369876072, 'mean_word_length': 1.2552391187533585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2112052', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1249, 'n_words': 206}