Browse Source

Correção na montagem de URLs de domínio

pull/163/head
Sesostris Vieira 2 years ago
parent
commit
d62a518c9c
  1. 2
      sigi/apps/home/templates/home/openmapdetail.html

2
sigi/apps/home/templates/home/openmapdetail.html

@ -42,6 +42,6 @@
</tr> </tr>
{% endif %} {% endif %}
{% if orgao.servico_set.all %} {% if orgao.servico_set.all %}
<tr><th>Serviços</th><td>{% for s in servicos.all %}{% if s.url %}<a href="{{ s.url }}" target="_blank">{{ s }}</a>{% else %}{{ s }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}</td></tr> <tr><th>Serviços</th><td>{% for s in servicos.all %}{% if s.url %}<a href="{% if '//' not in s.url %}//{% endif %}{{ s.url }}" target="_blank">{{ s }}</a>{% else %}{{ s }}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}</td></tr>
{% endif %} {% endif %}
</table> </table>
Loading…
Cancel
Save