mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Add the new logo
I bought this logo from the excellent logojoy.com site, and am including the source files here to be covered under the project license (GPL).
This commit is contained in:
parent
7b4785bdb9
commit
4ad6813d11
23 changed files with 4561 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
import os
|
||||
|
||||
from django.http import HttpResponse
|
||||
from django.views.generic import View
|
||||
from rest_framework.pagination import PageNumberPagination
|
||||
|
||||
|
||||
|
|
@ -5,3 +9,17 @@ class StandardPagination(PageNumberPagination):
|
|||
page_size = 25
|
||||
page_size_query_param = "page-size"
|
||||
max_page_size = 100000
|
||||
|
||||
|
||||
class FaviconView(View):
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
favicon = os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
"static",
|
||||
"paperless",
|
||||
"img",
|
||||
"favicon.ico"
|
||||
)
|
||||
with open(favicon, "rb") as f:
|
||||
return HttpResponse(f, content_type="image/x-icon")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue