{ "info": { "author": "Valery Melou", "author_email": "valerymelou@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "==================\nDjango Active Link\n==================\n\n.. image:: https://badge.fury.io/py/django-active-link.svg\n :target: https://badge.fury.io/py/django-active-link\n\n.. image:: https://pyup.io/repos/github/valerymelou/django-active-link/shield.svg\n :target: https://pyup.io/repos/github/valerymelou/django-active-link/\n :alt: Updates\n\n.. image:: https://travis-ci.org/valerymelou/django-active-link.svg?branch=master\n :target: https://travis-ci.org/valerymelou/django-active-link\n\n.. image:: https://codecov.io/gh/valerymelou/django-active-link/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/valerymelou/django-active-link\n\nThe simplest way to highlight active links in your Django app.\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-active-link.readthedocs.io.\n\nQuick start\n-----------\n\nInstall Django Active Link::\n\n pip install django-active-link\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'active_link',\n ...\n )\n\nTo use the ``active_link`` template tag you need to load ``active_link_tags`` templatetags library:\n\n.. code-block:: html\n\n {% load active_link_tags %}\n\nTo add an ``active`` CSS class to a link when the request path matches a given view just do something like this.\n\n.. code-block:: html\n\n Menu item\n\nIf you has a sub-menu or tabs and needs they be active and parent too, you can use ``||`` to check this:\n\n.. code-block:: html\n\n Menu Item\n Tab Item\n\nYou can also use a custom CSS class:\n\n.. code-block:: html\n\n Menu item\n\nor:\n\n.. code-block:: html\n\n Menu item\n\nBy default ``active_link`` will not perform a strict match. If you want to add the ``active`` class only in case of a strict match pass the ``strict`` argument to the tag:\n\n.. code-block:: html\n\n Menu item\n\nReplace ``view-name`` with the name of your view (including namespaces).\n\nSettings\n--------\nYou can override the default active class and strict mode with the settings ``ACTIVE_LINK_CSS_CLASS`` and ``ACTIVE_LINK_STRICT``.\n\n===================== ==================================================== =============\nKey Description Default Value\n===================== ==================================================== =============\nACTIVE_LINK_CSS_CLASS Active class to use. `active`\nACTIVE_LINK_STRICT Designates whether to perform a strict match or not. `False`\n===================== ==================================================== =============\n\nFor more usage examples, please check the full documentation at https://django-active-link.readthedocs.io.\n\n**IMPORTANT**: Django Active Link requires that the current request object is available in your template's context. This means you must be using a `RequestContext` when rendering your template, and `django.core.context_processors.request` must be in your `TEMPLATE_CONTEXT_PROCESSORS` setting. See https://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext for more information.\n\nTODO\n----\n\n* Write the documentation\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2017-07-10)\n++++++++++++++++++\n\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/valerymelou/django-active-link", "keywords": "django-active-link", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-active-link", "package_url": "https://pypi.org/project/django-active-link/", "platform": "", "project_url": "https://pypi.org/project/django-active-link/", "project_urls": { "Homepage": "https://github.com/valerymelou/django-active-link" }, "release_url": "https://pypi.org/project/django-active-link/0.1.6/", "requires_dist": null, "requires_python": "", "summary": "The best way to highlight active links in your Django app.", "version": "0.1.6" }, "last_serial": 5319296, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d137842c3d204616bf81fa0e605dcced", "sha256": "394a3181de8e605008573529f6d6f878f97772c19a327d87f5b37ebc6d5e2d99" }, "downloads": -1, "filename": "django-active-link-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d137842c3d204616bf81fa0e605dcced", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5815, "upload_time": "2017-07-10T13:37:58", "url": "https://files.pythonhosted.org/packages/9c/4a/5f6ec8e96ff7324150530bd501c0143809fdad8c13b267a2e4cf5d51385a/django-active-link-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "57f90b44d47b548a09cfed263c086865", "sha256": "bfb8a4879244bb485fe0f0b480574d5d27bb2be62e850170f45f67bb96e68704" }, "downloads": -1, "filename": "django_active_link-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "57f90b44d47b548a09cfed263c086865", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6201, "upload_time": "2017-10-11T22:54:33", "url": "https://files.pythonhosted.org/packages/fc/28/f77ce84e16f31e113d1ede90c5edd5264dde2bfb8b3a471330c3b7b2f659/django_active_link-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "073dfa9d4810ba9db090ab81f2c16275", "sha256": "be3e270f156e952fb81e0216809b1d82e80a30763a98e1592617239bd820005c" }, "downloads": -1, "filename": "django-active-link-0.1.1.tar.gz", "has_sig": false, "md5_digest": "073dfa9d4810ba9db090ab81f2c16275", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6082, "upload_time": "2017-10-11T22:54:30", "url": "https://files.pythonhosted.org/packages/55/4d/b27d3d9f6a935aaa9aca397d0553c2811ef936490831eddf1520be221f56/django-active-link-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "41554212b82029691c5e875c3a0e1c93", "sha256": "a2b1a96de3f72d97f565742f562560240df14670adad45ba482c283b8ce66edc" }, "downloads": -1, "filename": "django_active_link-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "41554212b82029691c5e875c3a0e1c93", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6313, "upload_time": "2018-01-07T12:26:42", "url": "https://files.pythonhosted.org/packages/bc/73/3b7898993a0dc6847babad348b3321e11f37922eb57fa0dc6a87d413845e/django_active_link-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25e7359714ec33d879e3d214aae5e121", "sha256": "754428a6d4ae05ed122f4b14233c8f0fa7047c3425a6f1d7de7153a89472f5de" }, "downloads": -1, "filename": "django-active-link-0.1.2.tar.gz", "has_sig": false, "md5_digest": "25e7359714ec33d879e3d214aae5e121", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6151, "upload_time": "2018-01-07T12:26:39", "url": "https://files.pythonhosted.org/packages/4e/0c/a9dc8fc460d9d7312873e9f5e97e5f58b7f6643d2b963a329ad8f2f50dec/django-active-link-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "2aa34aa7ca29bbe7fba49ce5c4274419", "sha256": "acb6bb47459285a1fca3651abf6ad633ba51df05b91c0d0a94b83d0121f88e0d" }, "downloads": -1, "filename": "django_active_link-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2aa34aa7ca29bbe7fba49ce5c4274419", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6336, "upload_time": "2018-04-07T18:26:28", "url": "https://files.pythonhosted.org/packages/53/7f/c81b3ddadeb9ad6a30a6727fdac956c295908e05eded36480e382cddeedc/django_active_link-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28052edb5e4fdf65a8c13d9a8a1c260d", "sha256": "47d4a3324177834b1bd317ddc923c34f8e333e9207ddd4f249549c823adeba21" }, "downloads": -1, "filename": "django-active-link-0.1.4.tar.gz", "has_sig": false, "md5_digest": "28052edb5e4fdf65a8c13d9a8a1c260d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6113, "upload_time": "2018-04-07T18:26:26", "url": "https://files.pythonhosted.org/packages/15/f3/40e79c81e90ec2eae882dadcc80305ce65d79ea0860c5200920c9dbc13d9/django-active-link-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "f31c1f4a79635d1a59cc4ecfa7b1d967", "sha256": "c7c7eaad645275b8833e235e17a0b54a129af9eb2b1a9a398e9cb96b40a15218" }, "downloads": -1, "filename": "django_active_link-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f31c1f4a79635d1a59cc4ecfa7b1d967", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 6569, "upload_time": "2018-05-25T13:23:59", "url": "https://files.pythonhosted.org/packages/c9/a8/66f44de688888c2b584dd30403af56be97aa338a98fe8e66a7fd5b5995ad/django_active_link-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f94fad4fb2957afef3bd1e4b27bf5501", "sha256": "cc12a220dff9a63be661b69e3690ab674b995246ef15d4fe1967a3fbc973e3c6" }, "downloads": -1, "filename": "django-active-link-0.1.5.tar.gz", "has_sig": false, "md5_digest": "f94fad4fb2957afef3bd1e4b27bf5501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6334, "upload_time": "2018-05-25T13:23:55", "url": "https://files.pythonhosted.org/packages/54/06/507bb760af28a965011ffea88e427364a543051d63448fabcb38aa24f93c/django-active-link-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "e7e991e92a8d44694f5a647d16765b43", "sha256": "f3b4648ffccab9e0a2c9181925feb6dedb239429788e45921c21216d51d9f9f1" }, "downloads": -1, "filename": "django_active_link-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e7e991e92a8d44694f5a647d16765b43", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5608, "upload_time": "2019-05-26T16:42:12", "url": "https://files.pythonhosted.org/packages/b4/41/cf57353b0858a49aba160f66acecccaee366fecaf3d697eb5aaecfba961d/django_active_link-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b656ac041dab4628b729a798dc9c37a2", "sha256": "980ffa0ec289bafe3e334da792b86da5076bfab922318a3c24230454208d8b76" }, "downloads": -1, "filename": "django-active-link-0.1.6.tar.gz", "has_sig": false, "md5_digest": "b656ac041dab4628b729a798dc9c37a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6597, "upload_time": "2019-05-26T16:42:13", "url": "https://files.pythonhosted.org/packages/61/ae/917db60263d2a6fd5883e0a22fb5c1e4cd42b7498b8ed625c494eb51f71f/django-active-link-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e7e991e92a8d44694f5a647d16765b43", "sha256": "f3b4648ffccab9e0a2c9181925feb6dedb239429788e45921c21216d51d9f9f1" }, "downloads": -1, "filename": "django_active_link-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e7e991e92a8d44694f5a647d16765b43", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5608, "upload_time": "2019-05-26T16:42:12", "url": "https://files.pythonhosted.org/packages/b4/41/cf57353b0858a49aba160f66acecccaee366fecaf3d697eb5aaecfba961d/django_active_link-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b656ac041dab4628b729a798dc9c37a2", "sha256": "980ffa0ec289bafe3e334da792b86da5076bfab922318a3c24230454208d8b76" }, "downloads": -1, "filename": "django-active-link-0.1.6.tar.gz", "has_sig": false, "md5_digest": "b656ac041dab4628b729a798dc9c37a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6597, "upload_time": "2019-05-26T16:42:13", "url": "https://files.pythonhosted.org/packages/61/ae/917db60263d2a6fd5883e0a22fb5c1e4cd42b7498b8ed625c494eb51f71f/django-active-link-0.1.6.tar.gz" } ] }