Check for http protocol before urlize (#3755)
parent
b4ed4dfe01
commit
baa6b07e41
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue