Turn URLs into links in layer notes

It's often useful to add a link to another page for more information
when adding a layer note, so turn any included URLs into actual links.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-04-09 11:07:45 +12:00
parent 3a3c9f3d02
commit ead2144d29

View File

@ -62,7 +62,7 @@
<div class="row-fluid"> <div class="row-fluid">
{% for note in layeritem.layernote_set.all %} {% for note in layeritem.layernote_set.all %}
<div class="alert"> <div class="alert">
{{ note.text }} {{ note.text|urlize }}
{% if perms.layerindex.publish_layer or useredit %} {% if perms.layerindex.publish_layer or useredit %}
<br><br> <br><br>
<p> <p>