HTMLify

home.html
Views: 224 | Author: abh
b'<!DOCTYPE html>\n<html>\n<head>\n    <title>HTMLify your dreams</title>\n    {% include "stylesheet.html" %}\n</head>\n<body>\n    <h1>HTMLify your dreams</h1>\n\t{% include "search-bar.html" %}\n\t{% include "nav-bar.html" %}\n    <h1>Latest Files created on HTMLify</h1>\n    {% for file in files %}\n    <div class="search-result">\n    {{ loop.index }}. <span>{{ file.name }}</span> | <span>Owner: {{ file.owner }}</span> | Views: {{ file.views }} | Comments: {{ file.comments | length }} | <a href="{{ file.path }}">Open</a>{% if session.get("user") and file.owner == session["user"]["username"] %}| <a href="/edit?filepath={{ file.path[file.owner|length + 1:] }}">Edit</a>{% endif %} {{ file.sizef() }}<br>\n    <hr>\n    {% if file.type == "text" %}\n    <p>{{ file.content[:file.content|length%128] }}</p>\n    {% endif %}\n    </div>\n    {% endfor %}\n</body>\n</html>'

Comments