Skip to content

Commit 1976d06

Browse files
authored
GitHub App announcement (#12280)
Show a message in the dashboard to promote GitHub App. Requires: readthedocs/ext-theme#619 Closes: readthedocs/ext-theme#616
1 parent 23c8e4e commit 1976d06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/projects/views/private.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def get_context_data(self, **kwargs):
119119
n_projects < 3 and (timezone.now() - projects.first().pub_date).days < 7
120120
):
121121
template_name = "example-projects.html"
122+
elif n_projects and not settings.RTD_ALLOW_ORGANIZATIONS:
123+
template_name = "github-app.html"
122124
elif n_projects and not projects.filter(external_builds_enabled=True).exists():
123125
template_name = "pull-request-previews.html"
124126
elif n_projects and not projects.filter(addons__analytics_enabled=True).exists():

0 commit comments

Comments
 (0)