File tree 1 file changed +2
-18
lines changed
readthedocs/restapi/views
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,6 @@ def footer_html(request):
40
40
else :
41
41
path = ""
42
42
43
- host = request .get_host ()
44
- if settings .PRODUCTION_DOMAIN in host and request .user .is_authenticated ():
45
- show_bookmarks = True
46
- try :
47
- bookmark = Bookmark .objects .get (
48
- user = request .user ,
49
- project = project ,
50
- version = version ,
51
- page = page_slug ,
52
- )
53
- except (Bookmark .DoesNotExist , Bookmark .MultipleObjectsReturned , Exception ):
54
- bookmark = None
55
- else :
56
- show_bookmarks = False
57
- bookmark = None
58
-
59
43
if version .type == 'tag' and version .project .has_pdf (version .slug ):
60
44
print_url = 'https://keminglabs.com/print-the-docs/quote?project={project}&version={version}' .format (
61
45
project = project .slug ,
@@ -77,8 +61,8 @@ def footer_html(request):
77
61
show_promo = False
78
62
79
63
context = Context ({
80
- 'show_bookmarks' : show_bookmarks ,
81
- 'bookmark' : bookmark ,
64
+ 'show_bookmarks' : False ,
65
+ 'bookmark' : None ,
82
66
'project' : project ,
83
67
'path' : path ,
84
68
'downloads' : version .get_downloads (pretty = True ),
You can’t perform that action at this time.
0 commit comments