Places where we should check for VCS links to be shown

Use a Project Feature to decide if we want to avoid showing VCS links
humitos/vcs/show-links
Manuel Kaufmann 2018-08-20 16:08:05 -03:00
parent 70181a3799
commit 7e0ad106e2
2 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,10 @@ class BaseSphinx(BaseBuilder):
versions = self.project.api_versions() versions = self.project.api_versions()
downloads = api.version(self.version.pk).get()['downloads'] downloads = api.version(self.version.pk).get()['downloads']
# TODO: check for a Project Feature to decide if display VCS links or note
# if not self.project.has_feature(Feature.DONT_SHOW_VCS_LINKS):
# display_github = display_gitlab = display_bitbucket = False
data = { data = {
'current_version': self.version.verbose_name, 'current_version': self.version.verbose_name,
'project': self.project, 'project': self.project,

View File

@ -74,6 +74,7 @@
</dl> </dl>
{% endblock %} {% endblock %}
{# TODO: check for a Project Feature here to decide if we show the VCS links or not #}
{% block vcs %} {% block vcs %}
{% if github_edit_url %} {% if github_edit_url %}