Check for http protocol before urlize (#3755)

humitos/django/compatibility
Santos Gallegos 2018-03-09 10:44:07 -05:00 committed by Anthony
parent b4ed4dfe01
commit baa6b07e41
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,13 @@
{% block repo %}
{% if project.repo %}
<h3>{% trans "Repository" %}</h3>
<p class="detail-long">{{ project.repo|urlize }}</p>
<p class="detail-long">
{% if project.repo|slice:':4' == 'http' %}
{{ project.repo|urlize }}
{% else %}
{{ project.repo }}
{% endif %}
</p>
{% endif %}
{% endblock %}