{% extends 'base.html' %}
{% block content %}
{% block title %} Tasks {% endblock %}
New Task
{{ task.title }}
{% if task.description != None %} {% set description = task.description %} {% set url_regex = '(https?://[^\s]+)' %} {% set match = re.search(url_regex, description) %} {% if match %} {% set url = match.group(0) %} {% set rest = description[match.end(0):] %}{{ description[:match.start(0)] }}{{ url }}{{ rest }}
{% else %}{{ description }}
{% endif %} {% endif %}Created: {{ createdTime.strftime('%Y-%m-%d %I:%M %p') }}