Skip to main content

A library that enables you to easily build your own tab navigation based on class based views.

Project description

Build status

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, multi-level tab navigations and more.

Docs

The docs can be found at http://django-tabination.readthedocs.org/.

Installing

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.

Changelog

v0.2.0 (2013-02-18)

  • [add] Multilevel navigation

v0.1.1 (2012-05-04)

  • [add] Added current_tab_id to context by default

v0.1.0 (2012-04-04)

  • [add] Initial version

Testing

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.

License

Copyright 2012 - 2013 Danilo Bargen (http://dbrgn.ch/).

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-tabination-0.2.0.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file django-tabination-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-tabination-0.2.0.tar.gz
Algorithm Hash digest
SHA256 62f1329af994ce21216d936f9e39aae9d206430a57861664db1c93ba71d7ac67
MD5 772364138a23124f15bb634fb8bb44bf
BLAKE2b-256 1b9659e6b0755754cb1036ca4f9dcb5e57447528a18f9b2f82c7086fc1b22e23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page