{"id":15756813,"url":"https://github.com/garnertb/django-classification-banner","last_synced_at":"2025-03-13T17:34:18.422Z","repository":{"id":48421245,"uuid":"10895567","full_name":"garnertb/django-classification-banner","owner":"garnertb","description":"A django app that adds classification banners to your site.","archived":false,"fork":false,"pushed_at":"2020-03-05T14:17:45.000Z","size":214,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-05T09:02:00.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garnertb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-24T01:09:17.000Z","updated_at":"2016-07-06T03:42:54.000Z","dependencies_parsed_at":"2022-09-08T20:30:17.328Z","dependency_job_id":null,"html_url":"https://github.com/garnertb/django-classification-banner","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Fdjango-classification-banner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Fdjango-classification-banner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Fdjango-classification-banner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garnertb%2Fdjango-classification-banner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garnertb","download_url":"https://codeload.github.com/garnertb/django-classification-banner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221392542,"owners_count":16811664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T09:02:21.897Z","updated_at":"2024-10-25T05:40:29.877Z","avatar_url":"https://github.com/garnertb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-classification-banner\n============================\n\nA django app that adds classification banners to your site.\n\nInstallation\n------------\n\nThe easiest way to install django-classification-banner is directly from PyPi using pip by running the command below:\n\n```pip install django-classification-banner```\n\nOtherwise you can download django-classification-banner and install it directly from source:\n\n```python setup.py install```\n\nProject Configuration\n---------------------\n\nOnce installed you can configure your project to use the\ndjango-classification-banner with the following steps.\n\nAdd ``django_classification_banner`` to ``INSTALLED_APPS`` in your project's\n``settings`` module:\n\n    INSTALLED_APPS = (\n        # other apps\n        'django_classification_banner',\n    )\n\nAdd the classification banner context processor to the ```TEMPLATE_CONTEXT_PROCESSORS``` setting in your project's\n``settings`` module:\n\n    TEMPLATE_CONTEXT_PROCESSORS = (\n        # other context processors\n        'django_classification_banner.context_processors.classification',\n    )\n\nCustomize your site's classification settings in the ``settings`` module:\n\t\n\tCLASSIFICATION_TEXT = 'Unclassified//FOUO'\n\tCLASSIFICATION_TEXT_COLOR = 'black'\n\tCLASSIFICATION_BACKGROUND_COLOR = 'green'\n    CLASSIFICATION_LINK = '/security'\n\nUsage\n-----\n\nOnce installed, you can easily add a classification banner to any template on your site.\n\nFirst load the classification banner in your template:\n\n\t{% load classification_banner %}\n\t\nThen add the banner to your page:\n\n\t{% classification_banner %}\n\n\nA full example:\n\n\t{% load classification_banner %}\n\t\u003chtml\u003e\n\t\t\u003chead\u003e\n    \t\t\u003ctitle\u003eFOO\u003c/title\u003e\n\t\t\u003c/head\u003e\n\t\t\u003cbody\u003e\n\t\t\t{% classification_banner %}\n\t\t\u003c/body\u003e\n\t\u003c/html\u003e\n\nYou can also override your default settings from any template:\n\n    {% load classification_banner %}\n\t\u003chtml\u003e\n\t\t\u003chead\u003e\n    \t\t\u003ctitle\u003eFOO - Confidential\u003c/title\u003e\n\t\t\u003c/head\u003e\n\t\t\u003cbody\u003e\n\t\t\t{% classification_banner classification_text='Confidential' classification_text_color='black' classification_background_color='red'%}\n\t\t\u003c/body\u003e\n\t\u003c/html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarnertb%2Fdjango-classification-banner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarnertb%2Fdjango-classification-banner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarnertb%2Fdjango-classification-banner/lists"}