Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Paginator to Bet #61

Open
wants to merge 6 commits into
base: view_bets_and_pagination_commits
Choose a base branch
from

Commits on Apr 5, 2017

  1. Update Rubocop

    Allow long strings for "context"
    LeonTenko committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    7b13e42 View commit details
    Browse the repository at this point in the history
  2. Add /lib folder to autoload_paths

    Adding pagination module that will have to be included
    in autoload_paths.
    LeonTenko committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    ca43116 View commit details
    Browse the repository at this point in the history
  3. Create Paginator module

    -Paginator module is responsible for calculating and rendering a
    pagination bar based on the passed parameters.
    -Added rspec for Paginator.
    LeonTenko committed Apr 5, 2017
    Configuration menu
    Copy the full SHA
    c30d7f4 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2017

  1. Add views for Paginator module

    -Add _blocks.html.erb view that renders page blocks;
    -Add _paginator.html.erb view that renders the pagination panel for the
    current page of a given Model.
    LeonTenko committed Apr 7, 2017
    Configuration menu
    Copy the full SHA
    ed870d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    916beb8 View commit details
    Browse the repository at this point in the history
  3. Add Paginator for Bet views

    -Added the paginator helper method to index.html.erb for Bet that
    renders the pagination panel with given parameters;
    -Added display_bets partial that renders all the bets in the bets
    instance variable;
    -Added bet partial for Bet model;
    LeonTenko committed Apr 7, 2017
    Configuration menu
    Copy the full SHA
    5d32877 View commit details
    Browse the repository at this point in the history