From cbcc4d87a63f07c21c0a037dcde29d7e097cf797 Mon Sep 17 00:00:00 2001 From: Alexandru Date: Tue, 10 Sep 2024 09:42:33 +0300 Subject: [PATCH] mobile fix v2 --- templates/file.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/file.html b/templates/file.html index 842fadb..f5b9adc 100644 --- a/templates/file.html +++ b/templates/file.html @@ -1,6 +1,6 @@ {% extends 'layout.html' %} {% block content %} -
+
{% include 'nav.html' %}

{{file[2]}}

Expires at: {{file[5]|expirein}}

@@ -18,7 +18,7 @@ {% elif file[2].split('.')[-1] in ['txt', "py", "php", "htm", "html", "css", "js", "ts", "cr", "c", "cpp", "rs", "rst"] %} {% set filed = file[1] + '.' + file[2].split('.')[-1] %} -

{{ filed|gettxt|replace('&', '&')|replace('<', '<')|replace('>', '>')|replace('\n', '
')|safe}}

+

{{ filed|gettxt|replace('&', '&')|replace('<', '<')|replace('>', '>')|replace('\n', '
')|safe}}

{% elif file[2].split('.')[-1] in ['md'] %} {% set filed = file[1] + '.' + file[2].split('.')[-1] %}

{{ filed|gettxt|markdown|safe}}