We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36bc94a commit 1840922Copy full SHA for 1840922
readthedocs/projects/views/private.py
@@ -116,6 +116,7 @@ def get_context_data(self, **kwargs):
116
117
projects = AdminPermission.projects(user=self.request.user, admin=True)
118
n_projects = projects.count()
119
+ template_name = "security-logs.html"
120
if n_projects < 3 and (timezone.now() - projects.first().pub_date).days < 7:
121
template_name = "example-projects.html"
122
elif (
@@ -128,8 +129,6 @@ def get_context_data(self, **kwargs):
128
129
and not projects.filter(addons__analytics_enabled=True).exists()
130
):
131
template_name = "traffic-analytics.html"
- else:
132
- context["promotion"] = "security-logs.html"
133
134
context["promotion"] = f"projects/partials/dashboard/{template_name}"
135
0 commit comments