Places where we should check for VCS links to be shown
Use a Project Feature to decide if we want to avoid showing VCS linkshumitos/vcs/show-links
parent
70181a3799
commit
7e0ad106e2
|
@ -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,
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue