mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Remove browserconfig.xml (#5280)
* Remove meta-elements * remove url-route
This commit is contained in:
committed by
GitHub
parent
f0212d910d
commit
090358833d
@@ -24,9 +24,7 @@ import time
|
||||
|
||||
from django.contrib.staticfiles import finders
|
||||
from django.http import HttpResponse
|
||||
from django.templatetags.static import static
|
||||
from django.utils.http import http_date
|
||||
from django.views.decorators.cache import cache_page
|
||||
from django.views.decorators.gzip import gzip_page
|
||||
from django.views.decorators.http import condition
|
||||
|
||||
@@ -44,25 +42,6 @@ def _get_source_cache_key():
|
||||
return _source_cache_key
|
||||
|
||||
|
||||
@cache_page(3600)
|
||||
def browserconfig_xml(request):
|
||||
return HttpResponse(
|
||||
"""<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="{}"/>
|
||||
<square310x310logo src="{}"/>
|
||||
<TileColor>#3b1c4a</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>""".format(
|
||||
static('pretixbase/img/icons/mstile-150x150.png'),
|
||||
static('pretixbase/img/icons/mstile-310x310.png'),
|
||||
), content_type='text/xml'
|
||||
)
|
||||
|
||||
|
||||
@gzip_page
|
||||
@condition(etag_func=lambda request, **kwargs: request.GET.get("version"))
|
||||
def theme_css(request, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user