{% extends "layout.html" %} {% block content %}

Server Files:

    {% for note in notes %}
  • Delete

    {% if "youtu.be" in note.strip().lower() or "www.youtube.com/watch?v=" in note.strip().lower() %} {% if "youtu.be" in note.strip() %} {{note}} {% elif "www.youtube.com/watch?v=" in note.strip().lower() %} {{note}} {% endif %} {% elif note.strip().startswith( ("http:", "https:", "ftp:", "file:") ) %} {% if note.strip().endswith( (".jpg", ".jpeg", ".png", ".gif") ) %} {% else %} {{note}} {% endif %} {% elif note.strip() %} {{note}} {% endif %}
  • {% endfor %} {% for file in files %}
  • {{file[0]}} Edit Delete

    {% if file[0].lower().endswith( (".png", ".jpg", ".jpeg") ) %} {{file[0]}} {% elif file[0].lower().endswith( (".mp4", ".webm") ) %} {% else %} {{file[0]}} {% endif %}
  • {% endfor %}
{% endblock content %} {% block scripts %} {% endblock scripts %}