{"id":16007363,"url":"https://github.com/pkolt/django-fileicons","last_synced_at":"2025-08-16T23:49:23.247Z","repository":{"id":139652759,"uuid":"3055398","full_name":"pkolt/django-fileicons","owner":"pkolt","description":"Коллекция иконок для списка файлов","archived":false,"fork":false,"pushed_at":"2012-01-17T08:15:22.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T08:45:08.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkolt.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-27T07:33:52.000Z","updated_at":"2013-10-20T08:14:07.000Z","dependencies_parsed_at":"2023-03-11T16:15:18.416Z","dependency_job_id":null,"html_url":"https://github.com/pkolt/django-fileicons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pkolt/django-fileicons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkolt%2Fdjango-fileicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkolt%2Fdjango-fileicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkolt%2Fdjango-fileicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkolt%2Fdjango-fileicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkolt","download_url":"https://codeload.github.com/pkolt/django-fileicons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkolt%2Fdjango-fileicons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270786282,"owners_count":24644562,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08T12:03:02.701Z","updated_at":"2025-08-16T23:49:23.170Z","avatar_url":"https://github.com/pkolt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"================\ndjango-fileicons\n================\n\nВозвращает нужную иконку по типу файла.\n\nИспользование в шаблонах\n========================\n::\n\n    {% load fileicons_filters %}\n\n    {# Возвращает имя файла без расширения #}\n    {{ object.attachment|filename }}\n\n    {# Возвращает URL к иконке файла #}\n    {{ object.attachment|fileicon_url }}\n\n    {# Возвращает иконку файла в виде HTML тега \u003cimg\u003e #}\n    {{ object.attachment|fileicon }}\n\nНастройка приложения\n====================\n\nДобавить значения в settings.py::\n\n    # Шаблон HTML-тега изображения, можно использовать переменные %(url)s, %(name)s.\n    FILEICON_TEMPLATE_IMAGE_TAG = '\u003cimg src=\"%(url)s\" width=\"16\" height=\"16\" class=\"fileicon\"\u003e'\n\nТестирование\n============\n\nВыполнить::\n\n    python manage.py test fileicons --setting=fileicons.tests.settings\n\nБлагодарности\n=============\n\nFile Icons \u003chttp://www.splitbrain.org/projects/file_icons\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkolt%2Fdjango-fileicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkolt%2Fdjango-fileicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkolt%2Fdjango-fileicons/lists"}