Commit 040bca2b authored by Michal Čihař's avatar Michal Čihař

Make URLs in whiteboard clickable

Issue #159
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 6ea2c0aa
......@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from django.utils.html import escape
from django.utils.html import escape, urlize
from django.contrib.admin.templatetags.admin_static import static
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
......@@ -564,7 +564,9 @@ def whiteboard_messages(project=None, subproject=None, language=None):
'message.html',
{
'tags': 'info whiteboard',
'message': whiteboard.message
'message': mark_safe(
urlize(whiteboard.message, autoescape=True)
)
}
)
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment