gnowledge/gstudio — pull request #851 by kedar2a (2014-10-03 14:58:36+00:00)
Title: Made pagination.html generic so that anyone/anywhere can use it.

**How to use this mongokit pagination template**

- **In the template**:
- Just include ```ndf/pagination.html``` template into your template.
Example:
```{% include 'ndf/pagination.html' with urlname="data_review_page" first_arg=group_name_tag second_arg="" third_arg="" %}```

parameters used in the ```{% include .... %}```:
- *urlname* - this is the name of your url
- *first_arg*, *second_arg*, *third_arg* - these are sequenced arguments needed by your defined *url* (and then *view*).

- Fill the variables that required by your URL. Leave others as empty ("") shown in the above example.

- For template reference please check ```gnowsys_ndf.ndf.templates.ndf.data_review.html```

- For url reference please check url with ```name="data_review_page"``` in ```gnowsys_ndf.ndf.urls.file```

-----------

- **In the view**:

- ```from mongokit import paginator```

- ```page_info = paginator.Paginator(your_cursor_obj, page_no, 10)```

- While sending response, along with other data variables send "```page_info```".

- For reference please check ```gnowsys_ndf.ndf.views.file.data_review```