A library that enables you to easily build your own tab navigation based on class based views.
django-tabination is a lightweight (~50 SLOC) Django 1.4+ library that enables you to easily build your own tab navigation based on class based views.
It supports code based creation of tabs directly in your views, conditional displaying/hiding of a tab, translation of the tab labels, tab sorting, multi-level tab navigations and more.
The docs can be found at http://django-tabination.readthedocs.org/.
You can install django-tabination directly from pypi using pip:
$ pip install django-tabination
Currently there is no further configuration needed. For more information about setup and usage, please refer to the docs.
django-tabination uses Semantic Versioning 2.0.0-rc.1.
- [add] Sorting of tabs
- [add] Multilevel navigation
- [add] Added current_tab_id to context by default
- [add] Initial version
To setup a testing environment, you need to install Django and some additional dependencies:
$ pip install Django $ make install
To run the test suite, use
$ make test
If you want to generate a coverage report, use
$ make report
To see a HTML version of the coverage report, there’s
$ make report-html
Finally, to check conformance to the PEP8 coding standard, use
$ make flake8
The flake8 configuration ignores E128 (continuation line under-indented for visual indent) errors and allows a max line length of 99 characters per line.
Copyright 2012 - 2013 Danilo Bargen (http://dbrgn.ch/) and contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/lgpl.html.